/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    --primary-color: #D4756E;
    --secondary-color: #F4A261;
    --accent-color: #E76F51;
    --dark: #2D3142;
    --light: #F8F9FA;
    --cream: #FFF8F0;
    --text-dark: #2D3142;
    --text-light: #6B7280;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.16);

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--cream);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition-base);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-base);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* ===================================
   Hero Section with Featured Video
   =================================== */
.hero-video {
    position: relative;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8E0 100%);
    margin-top: 72px;
    padding: 80px 0;
}

.hero-video-content {
    animation: fadeInUp 1s ease;
}

.hero-text {
    text-align: center;
    margin-bottom: 60px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.featured-video {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.featured-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}

.featured-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.featured-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.featured-info {
    padding: 32px;
    text-align: center;
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.featured-year {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(212, 117, 110, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.featured-recipe-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.featured-recipe-link:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* ===================================
   Filter Section
   =================================== */
.filter-section {
    padding: 80px 0 40px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--dark);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.filter-btn:hover {
    background: var(--cream);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.filter-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
}

/* ===================================
   Recipe Grid
   =================================== */
.recipes-grid {
    padding: 40px 0 80px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.recipe-card,
.video-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    opacity: 1;
    transform: scale(1);
}

.recipe-card.hidden,
.video-card.hidden {
    display: none;
}

.recipe-card:hover,
.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-link,
.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* Video embed styling */
.video-embed {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio for videos */
    background: #000;
    overflow: hidden;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Image card styling */
.card-image {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    background: var(--light);
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.recipe-card:hover .card-image img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 117, 110, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.recipe-card:hover .card-overlay {
    opacity: 1;
}

.view-recipe {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 32px;
    border: 2px solid white;
    border-radius: 50px;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.recipe-card:hover .view-recipe {
    transform: translateY(0);
}

/* Recipe link for video cards */
.recipe-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    margin-top: 8px;
}

.card-link-wrapper:hover .recipe-link {
    color: var(--accent-color);
}

/* Prevent iframe from blocking clicks */
.card-link-wrapper .video-embed {
    pointer-events: none;
}

.card-link-wrapper .video-embed iframe {
    pointer-events: auto;
}

.card-content {
    padding: 24px;
}

.card-year {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(212, 117, 110, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.card-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===================================
   About Section
   =================================== */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    font-size: 1.1rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
    .navbar .container {
        padding: 16px 24px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero-video {
        margin-top: 64px;
        padding: 60px 0;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .featured-badge {
        top: 12px;
        left: 12px;
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .featured-info {
        padding: 24px;
    }

    .featured-title {
        font-size: 1.5rem;
    }

    .filter-section {
        padding: 60px 0 30px;
    }

    .recipes-grid {
        padding: 30px 0 60px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-video {
        padding: 40px 0;
    }

    .hero-text {
        margin-bottom: 30px;
    }

    .featured-info {
        padding: 20px;
    }

    .featured-title {
        font-size: 1.3rem;
    }

    .filter-buttons {
        gap: 8px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .card-content {
        padding: 20px;
    }

    .card-title {
        font-size: 1.3rem;
    }
}
