/* SEO-Optimized CSS for AgriRice.com */
/* Performance and accessibility enhancements */

/* Breadcrumbs styling */
.agririce-breadcrumbs-wrapper {
    padding: 10px 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.seo-breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.seo-breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

.seo-breadcrumbs li {
    display: flex;
    align-items: center;
}

.seo-breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin: 0 8px;
    color: #6c757d;
}

.seo-breadcrumbs a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.2s ease;
}

.seo-breadcrumbs a:hover {
    color: #1e7e34;
    text-decoration: underline;
}

.seo-breadcrumbs li:last-child span {
    color: #495057;
    font-weight: 500;
}

/* Enhanced focus states for accessibility */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* Improved heading hierarchy for SEO */
h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c5530;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 0.875rem;
    color: #2c5530;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #2c5530;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #2c5530;
    font-weight: 500;
}

h5 {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #2c5530;
    font-weight: 500;
}

h6 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #2c5530;
    font-weight: 500;
}

/* Enhanced content readability */
.entry-content {
    line-height: 1.6;
    color: #333;
    font-size: 16px;
}

.entry-content p {
    margin-bottom: 1.2rem;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.2rem;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

/* Enhanced image optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 14px;
    color: #6c757d;
    text-align: center;
    padding: 8px;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* SEO-friendly table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 14px;
}

th, td {
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c5530;
}

/* Enhanced form styling for better UX */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
input[type="search"] {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 16px;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus,
input[type="search"]:focus {
    border-color: #28a745;
    outline: none;
}

/* Loading performance indicators */
.lazy-loading {
    background-color: #f8f9fa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Skip navigation for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #2c5530;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    left: 6px;
    top: 6px;
}

/* Enhanced mobile responsiveness for SEO */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .seo-breadcrumbs ol {
        flex-wrap: wrap;
    }
    
    .entry-content {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Print styles for better content accessibility */
@media print {
    .seo-breadcrumbs,
    .sidebar,
    .header-extras,
    .social-share {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    p, li {
        page-break-inside: avoid;
    }
}

/* Schema.org microdata styling */
[itemscope] {
    position: relative;
}

/* Enhanced search form styling */
.search-form {
    position: relative;
    max-width: 400px;
}

.search-form input[type="search"] {
    padding-right: 50px;
}

.search-form .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #28a745;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.search-form .search-submit:hover {
    background: #1e7e34;
}