/**
 * Maya Fresh Harvest Theme - Main Styles
 * Inspired by modern agricultural websites like Dole.com
 */

/* CSS Custom Properties for Theme Colors */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #2E7D32;
    --accent-color: #FF9800;
    --text-color: #333333;
    --light-gray: #F5F5F5;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Header Styles */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: var(--light-gray);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.business-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.business-info span {
    font-size: 0.9rem;
    color: var(--text-color);
}

.business-info a {
    color: var(--primary-color);
    font-weight: 600;
}

.header-search {
    flex-shrink: 0;
}

.header-main {
    padding: 15px 0;
}

.header-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-logo img {
    max-height: 60px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Navigation Styles */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.menu-toggle-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-icon span {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    display: block;
    padding: 10px 0;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.primary-menu a:hover {
    color: var(--primary-color);
}

.header-cta .btn {
    padding: 12px 24px;
    font-weight: 600;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    max-width: 250px;
}

.search-form .search-field {
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    flex: 1;
    outline: none;
}

.search-form .search-submit {
    background: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 8px 15px;
    cursor: pointer;
    transition: var(--transition);
}

.search-form .search-submit:hover {
    background: var(--secondary-color);
}

/* Main Content Area */
.site-main {
    padding: 40px 0;
    min-height: 60vh;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.content-area {
    min-width: 0;
}

/* Post Styles */
.posts-container {
    display: grid;
    gap: 30px;
}

.post-item {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.entry-title {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.entry-summary {
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Sidebar */
.widget-area {
    background: var(--light-gray);
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.widget a:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: var(--white);
    margin-top: 60px;
}

.footer-widgets {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-widgets-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-widget-area .widget-title {
    color: var(--white);
    margin-bottom: 20px;
}

.footer-widget-area .widget {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-widget-area a:hover {
    color: var(--white);
}

.footer-bottom {
    padding: 30px 0;
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.business-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info h4,
.ordering-info h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-info p,
.ordering-info p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.contact-info a,
.ordering-info a {
    color: var(--primary-color);
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--white);
}

.site-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-info a {
    color: rgba(255, 255, 255, 0.8);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    display: block;
    padding: 10px 15px;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
    }
    
    .business-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-top-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .business-info {
        justify-content: center;
    }
    
    .header-main-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .primary-menu.toggled {
        display: flex;
    }
    
    .primary-menu li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .primary-menu li:last-child {
        border-bottom: none;
    }
    
    .primary-menu a {
        padding: 15px 0;
    }
    
    .footer-widgets-row {
        grid-template-columns: 1fr;
    }
    
    .site-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .business-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .site-branding {
        flex-direction: column;
        text-align: center;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .widget-area {
        padding: 20px;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 10px;
    }
}

