* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2d5016;
    --primary-light: #4a7c24;
    --secondary: #f4a261;
    --accent: #e76f51;
    --bg: #fafaf9;
    --card-bg: #ffffff;
    --text: #2a2a2a;
    --text-light: #6b6b6b;
    --border: #e5e5e5;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.site-header {
    background: white;
    border-bottom: 2px solid var(--border);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M30 10 L35 25 L50 25 L38 35 L43 50 L30 40 L17 50 L22 35 L10 25 L25 25 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 60px;
    z-index: 100;
    border-bottom: 3px solid var(--secondary);
}

.filter-container {
    max-width: 1400px;
    margin: 0 auto;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-label::before {
    content: '';
    width: 4px;
    height: 16px;
    background: var(--secondary);
    border-radius: 2px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
}

.filter-btn:hover {
    border-color: var(--primary-light);
    background: var(--primary-light);
    color: white;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.clear-filters {
    margin-top: 1rem;
    padding: 0.6rem 1.5rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.clear-filters:hover {
    background: #d35c43;
    transform: translateY(-1px);
}

/* Recipes Container */
.recipes-container {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.results-info {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 500;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.recipe-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: var(--secondary);
}

.recipe-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.recipe-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2), transparent);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.recipe-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.tag {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag.meal-type {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag.country {
    background: #fff3e0;
    color: #e65100;
}

.tag.ingredient {
    background: #f3e5f5;
    color: #7b1fa2;
}

.tag.difficulty {
    background: #e3f2fd;
    color: #1565c0;
}

.tag.dietary {
    background: #fce4ec;
    color: #c2185b;
}

.modification-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mod-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: #fff9e6;
    color: #8b6914;
    border-radius: 50px;
    border: 1px solid #f4d88a;
    font-weight: 500;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.hidden {
    display: none;
}

/* Single Recipe Page */
.recipe-single {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.recipe-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.recipe-emoji-large {
    font-size: 6rem;
    margin-bottom: 1rem;
}

.recipe-single h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.recipe-description-large {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.meta-card {
    background: var(--bg);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.meta-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.meta-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}

.recipe-taxonomy {
    margin: 2rem 0;
    text-align: left;
}

.taxonomy-group {
    margin-bottom: 0.75rem;
}

.taxonomy-group strong {
    color: var(--primary);
    margin-right: 0.5rem;
}

.modification-info {
    background: #fff9e6;
    border: 2px solid #f4d88a;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.modification-info h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.mod-options {
    margin-top: 1rem;
}

.mod-option {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
}

.recipe-body {
    line-height: 1.8;
}

.recipe-body h2 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.recipe-body h3 {
    color: var(--primary-light);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.recipe-body ul,
.recipe-body ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.recipe-body li {
    margin-bottom: 0.5rem;
}

.recipe-body strong {
    color: var(--primary);
}

.recipe-body em {
    color: var(--accent);
    font-style: italic;
}

.recipe-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.back-link:hover {
    gap: 0.75rem;
}

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-copyright {
    opacity: 0.8;
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        padding: 1.5rem 1rem;
        top: 50px;
    }

    .recipe-single h1 {
        font-size: 2rem;
    }

    .recipe-emoji-large {
        font-size: 4rem;
    }

    .main-nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}
