/*
Theme Name: EkoKuhinja
Description: Eco-friendly seasonal recipe platform with bilingual support
Version: 1.0
Author: EkoKuhinja Team
Text Domain: ekokuhinja
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: hsl(80, 31%, 19%);
    background-color: hsl(0, 0%, 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles - Matching Original */
.site-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    color: hsl(80, 67%, 16%);
}

.site-title a {
    color: hsl(80, 67%, 16%);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.site-title::before {
    content: "🌿";
    margin-right: 0.5rem;
    font-size: 1.5rem;
}

.site-description {
    display: none;
}

/* Navigation - Matching Original */
.main-navigation {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid hsl(80, 67%, 16%);
    color: hsl(80, 67%, 16%);
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.875rem;
}

.menu, .default-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.menu li, .default-menu li {
    margin-left: 2rem;
}

.menu a, .default-menu a {
    color: hsl(80, 31%, 19%);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

.menu a:hover, .default-menu a:hover {
    color: hsl(80, 67%, 16%);
}

.menu a.active, .default-menu a.active {
    color: hsl(80, 67%, 16%);
    font-weight: 500;
}

.menu a.active::after, .default-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: hsl(76, 49%, 44%);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .menu-toggle {
        display: none;
        margin-top: 1rem;
    }
    
    .menu, .default-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }
    
    .menu li, .default-menu li {
        margin: 0;
        border-top: 1px solid #4A7C59;
    }
    
    .menu a, .default-menu a {
        padding: 1rem 0;
    }
}

/* Main Content */
.site-content {
    min-height: 60vh;
    padding: 2rem 0;
}

/* Hero Section - Matching Original */
.hero {
    background: hsl(48, 33%, 96%);
    padding: 4rem 1rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 700;
    color: hsl(80, 67%, 16%);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    color: hsl(80, 31%, 19%);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.hero-search {
    max-width: 32rem;
    margin: 0 auto 3rem;
    position: relative;
}

.hero form {
    display: flex;
    position: relative;
}

.hero input {
    width: 100%;
    padding: 1rem 4rem 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid hsl(80, 67%, 16%);
    border-radius: 50px;
    outline: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hero input:focus {
    border-color: hsl(76, 49%, 44%);
}

.hero button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    color: hsl(80, 31%, 19%);
    transition: all 0.3s ease;
}

.hero button:hover {
    background: hsl(76, 49%, 44%);
    color: white;
}

/* Sections */
section {
    margin-bottom: 3rem;
}

section h2 {
    font-size: 2rem;
    color: #2D5016;
    margin-bottom: 2rem;
    text-align: center;
}

/* Recipe Grid - Matching Original */
.recipe-grid, .posts-grid {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.recipe-card, .post-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid hsl(0, 0%, 94%);
}

.recipe-card:hover, .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.recipe-card img, .post-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.recipe-content, .post-content {
    padding: 1.5rem;
}

.recipe-card h3, .post-card h3 {
    margin-bottom: 0.75rem;
    color: hsl(80, 67%, 16%);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.recipe-card h3 a, .post-card h3 a {
    text-decoration: none;
    color: inherit;
}

.recipe-card h3 a:hover, .post-card h3 a:hover {
    color: hsl(76, 49%, 44%);
}

.recipe-description, .post-excerpt {
    color: hsl(80, 31%, 19%);
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.recipe-meta, .post-meta {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: hsl(0, 0%, 45%);
}

.recipe-meta span, .post-meta span {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

.featured-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: hsl(37, 66%, 67%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Categories Grid */
.categories-grid, .default-categories {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h4 {
    color: #2D5016;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.category-card h4 a {
    text-decoration: none;
    color: inherit;
}

.category-card h4 a:hover {
    color: #4A7C59;
}

.category-card p {
    color: #666;
    margin-bottom: 1rem;
}

.count {
    background: #8FBC8F;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 3rem;
    background: #F0F8E8;
    border-radius: 8px;
}

.no-content h3 {
    color: #2D5016;
    margin-bottom: 1rem;
}

.no-content p {
    color: #666;
    margin-bottom: 1rem;
}

.no-content a {
    background: #2D5016;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
}

.no-content a:hover {
    background: #4A7C59;
}

/* Footer - Matching Original */
.site-footer {
    background: hsl(80, 67%, 16%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: hsl(76, 49%, 44%);
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: hsl(76, 49%, 44%);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    display: none;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: hsl(76, 49%, 44%);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Form Styles */
.form-table {
    width: 100%;
    margin-top: 1rem;
}

.form-table th {
    text-align: left;
    padding: 1rem;
    background: #f9f9f9;
    width: 200px;
}

.form-table td {
    padding: 1rem;
}

.form-table input, .form-table select, .form-table textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Section Spacing */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: hsl(80, 67%, 16%);
    text-align: center;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .menu-toggle {
        display: none;
        align-self: flex-end;
        margin-top: -3rem;
    }
    
    .menu, .default-menu ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        padding: 1rem;
        margin-top: 1rem;
    }
    
    .menu.active, .default-menu ul.active {
        display: flex;
    }
    
    .menu li, .default-menu li {
        margin: 0;
        border-bottom: 1px solid hsl(0, 0%, 94%);
    }
    
    .menu li:last-child, .default-menu li:last-child {
        border-bottom: none;
    }
    
    .menu a, .default-menu a {
        padding: 1rem 0;
        display: none;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    .recipe-grid, .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .categories-grid, .default-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* Utility Classes */
.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}