/*
 * Chef Jon Chung — Public Stylesheet
 * Design: Modern Korean Warmth
 * ============================================
 */

/* ── Variables ─────────────────────────────── */
:root {
    --red: #8B2500;
    --red-light: #A93A12;
    --red-bg: #FEF5F0;
    --gold: #D4A253;
    --gold-light: #E8C88A;
    --green: #4A6741;
    --green-light: #E8F0E6;
    --bg: #FAF7F2;
    --bg-alt: #F3EDE5;
    --white: #FFFFFF;
    --text: #2C2C2C;
    --text-muted: #6B6B6B;
    --text-light: #999;
    --border: #E2DDD8;
    --shadow-sm: 0 1px 3px rgba(44,44,44,0.06);
    --shadow: 0 3px 12px rgba(44,44,44,0.08);
    --shadow-lg: 0 8px 30px rgba(44,44,44,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --transition: 0.25s ease;
    --container: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red-light); }
img { max-width: 100%; height: auto; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--red-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 37, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--red);
    border: 2px solid var(--red);
}
.btn-outline:hover {
    background: var(--red);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 37, 0, 0.2);
}

.btn-hero {
    background: var(--white);
    color: var(--red);
    padding: 14px 36px;
    font-size: 16px;
    border-radius: var(--radius-lg);
}
.btn-hero:hover {
    color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    background: var(--gold-light);
}

/* ── Header ────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}
.site-logo:hover { color: var(--red); }
.logo-icon { font-size: 28px; }

.site-nav { display: flex; gap: 8px; }

.nav-link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--bg-alt); }
.nav-link.active { color: var(--red); font-weight: 600; }

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ── Hero ──────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #8B2500 0%, #6B1D00 60%, #4A1400 100%);
    color: var(--white);
    padding: 100px 0 110px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content { position: relative; z-index: 2; }

.hero-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 12px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Korean-inspired geometric pattern overlay */
.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image:
        linear-gradient(45deg, transparent 40%, #fff 40%, #fff 42%, transparent 42%),
        linear-gradient(-45deg, transparent 40%, #fff 40%, #fff 42%, transparent 42%);
    background-size: 60px 60px;
    z-index: 1;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
    background: linear-gradient(135deg, #8B2500, #6B1D00);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero-sm { padding: 50px 0 55px; }

.page-hero-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
}

.page-hero-sub {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 8px;
}
.page-hero-sub a { color: rgba(255,255,255,0.7); }
.page-hero-sub a:hover { color: #fff; }

/* ── Sections ──────────────────────────────── */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}
.section-title.center { text-align: center; margin-bottom: 28px; }

.section-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}

/* ── Recipe Grid ───────────────────────────── */
.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.recipe-grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ── Recipe Card ───────────────────────────── */
.recipe-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.recipe-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139, 37, 0, 0.12);
    border-color: rgba(212, 162, 83, 0.4);
}

.card-image-link {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-alt);
}
.card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.recipe-card:hover .card-image-link img { transform: scale(1.05); }

.card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    background: var(--bg-alt);
}

.recipe-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.card-body { padding: 18px 20px 22px; }

.card-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--red); }

.card-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.recipe-meta-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.recipe-meta-item {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Category Pills ────────────────────────── */
.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
}
.category-pill:hover {
    background: var(--red-bg);
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 37, 0, 0.1);
}
.category-pill.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}
.category-pill.active .pill-count { background: rgba(255,255,255,0.25); color: #fff; }

.pill-count {
    background: var(--bg-alt);
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Featured Recipe ───────────────────────── */
.featured-section { background: var(--bg-alt); }

.featured-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.featured-image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}
.featured-image img { width: 100%; height: 100%; object-fit: cover; }

.featured-info {
    padding: 32px 32px 32px 0;
}
.featured-info h3 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
}
.featured-info h3 a { color: var(--text); }
.featured-info h3 a:hover { color: var(--red); }
.featured-info p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.6;
}
.featured-info .recipe-meta-row { margin-bottom: 20px; }

/* ── Recipes Toolbar ───────────────────────── */
.recipes-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.recipes-toolbar .category-pills { justify-content: flex-start; }

.search-form {
    display: flex;
    gap: 0;
}
.search-input {
    padding: 8px 14px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: var(--white);
    color: var(--text);
    width: 200px;
}
.search-input:focus { outline: none; border-color: var(--red); }
.search-btn {
    padding: 8px 16px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.search-btn:hover { background: var(--red-light); }

.search-results-info {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Single Recipe Page ────────────────────── */
.recipe-header {
    background: var(--bg-alt);
    padding: 40px 0;
}

.recipe-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.recipe-breadcrumb a { color: var(--text-muted); }
.recipe-breadcrumb a:hover { color: var(--red); }
.breadcrumb-sep { margin: 0 6px; opacity: 0.5; }

.recipe-page-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 12px;
}

.recipe-page-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.recipe-meta-bar {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.meta-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}
.meta-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

/* Video */
.video-wrapper {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}
.video-wrapper iframe { width: 100%; height: 100%; }

.recipe-video-section {
    padding: 40px 0 0;
}

/* Ingredients & Steps */
.recipe-content-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.recipe-ingredients {
    position: sticky;
    top: 88px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.recipe-ingredients h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

.ingredients-list {
    list-style: none;
}
.ingredients-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.ingredients-list li:last-child { border-bottom: none; }

.ingredient-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    line-height: 1.5;
}
.ingredient-check input[type="checkbox"] {
    margin-top: 4px;
    width: 16px;
    height: 16px;
    accent-color: var(--green);
    flex-shrink: 0;
}
.ingredient-check input:checked + span {
    text-decoration: line-through;
    color: var(--text-light);
}

.recipe-steps h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 20px;
}

.steps-list {
    list-style: none;
    counter-reset: none;
}

.steps-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.steps-list li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.step-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.step-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    padding-top: 6px;
}

/* ── Blog Grid ─────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(139, 37, 0, 0.12);
    border-color: rgba(212, 162, 83, 0.4);
}

.blog-card-image { aspect-ratio: 16 / 9; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }

.blog-date {
    font-size: 13px;
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.read-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--red);
}
.read-more:hover { color: var(--red-light); }

/* ── Blog Post Page ────────────────────────── */
.blog-container { max-width: 720px; }

.blog-post-header { margin-bottom: 32px; }
.blog-post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    margin: 8px 0 12px;
    line-height: 1.2;
}
.blog-post-date {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
}

.back-link-public {
    font-size: 14px;
    color: var(--text-muted);
}
.back-link-public:hover { color: var(--red); }

.blog-post-hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}
.blog-video { margin-bottom: 32px; }

/* Prose (blog body) */
.prose {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}
.prose p { margin-bottom: 20px; }
.prose p:last-child { margin-bottom: 0; }

/* ── About Page ────────────────────────────── */
.about-content { margin-bottom: 48px; }

.about-social {
    border-top: 2px solid var(--gold);
    padding-top: 32px;
}
.about-social h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 16px;
}

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-link {
    display: inline-flex;
    padding: 10px 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: all var(--transition);
}
.social-link:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* ── Contact Page ──────────────────────────── */
.contact-form {
    max-width: 520px;
}

.contact-form .form-group { margin-bottom: 20px; }

.contact-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: var(--font);
    font-size: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(139, 37, 0, 0.1);
}
.contact-form textarea { resize: vertical; }

.contact-success {
    text-align: center;
    padding: 40px 0;
}
.success-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.contact-success h2 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 8px;
}
.contact-success p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.contact-errors {
    background: #FDEDEC;
    color: #C0392B;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

/* ── Empty State ───────────────────────────── */
.empty-public {
    text-align: center;
    padding: 60px 20px;
}
.empty-public span { font-size: 48px; display: block; margin-bottom: 12px; }
.empty-public h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 8px;
}
.empty-public p { color: var(--text-muted); margin-bottom: 16px; }

/* ── Pagination ────────────────────────────── */
.pagination-public {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
}
.pagination-info {
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Footer ────────────────────────────────── */
.site-footer {
    background: var(--text);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-icon { font-size: 32px; }

.footer-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    display: block;
    margin-top: 4px;
}

.footer-tagline {
    font-size: 14px;
    margin-top: 6px;
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    padding: 3px 0;
    transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    opacity: 0.5;
}

/* Korean-inspired decorative pattern at footer edge */
.footer-pattern {
    height: 4px;
    background: linear-gradient(90deg,
        var(--red) 0%, var(--red) 33%,
        var(--gold) 33%, var(--gold) 66%,
        var(--green) 66%, var(--green) 100%
    );
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
    .mobile-menu-btn { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 16px 24px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }
    .site-nav.open { display: flex; }

    .hero { padding: 60px 0 70px; }
    .hero-title { font-size: 36px; }

    .featured-card {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .featured-info { padding: 24px; }

    .recipe-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }

    .recipe-content-grid {
        grid-template-columns: 1fr;
    }
    .recipe-ingredients {
        position: static;
    }

    .recipes-toolbar {
        flex-direction: column;
    }
    .search-input { width: 100%; flex: 1; }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    .footer-links { gap: 40px; }

    .section { padding: 40px 0; }
}

@media (max-width: 480px) {
    .recipe-meta-bar { gap: 20px; }
    .footer-links { flex-direction: column; gap: 24px; }
}

/* ── Nav Search ────────────────────────────── */
.nav-search {
    display: flex;
    margin-left: 8px;
}
.nav-search-input {
    padding: 6px 12px;
    font-family: var(--font);
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    width: 160px;
    transition: all var(--transition);
}
.nav-search-input:focus {
    outline: none;
    border-color: var(--red);
    width: 220px;
    box-shadow: 0 0 0 3px rgba(139,37,0,0.08);
}

/* ── Allergen Warning ──────────────────────── */
.allergen-warning {
    margin-top: 20px;
    padding: 12px 16px;
    background: #FFF3CD;
    border: 1px solid #FFECB5;
    border-radius: var(--radius);
    font-size: 14px;
    color: #664D03;
    line-height: 1.5;
}

/* ── Recipe Actions ────────────────────────── */
.recipe-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

/* ── Photo Gallery ─────────────────────────── */
.recipe-gallery-section { padding: 32px 0 0; }
.section-title-sm {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.recipe-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.gallery-photo {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    transition: transform var(--transition);
}
.gallery-photo:hover { transform: scale(1.02); }
.gallery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Rating Stars ──────────────────────────── */
.rating-section {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}
.rating-section h2 {
    font-family: var(--font-display);
    font-size: 22px;
    margin-bottom: 8px;
}
.rating-prompt { color: var(--text-muted); margin-bottom: 16px; }
.rating-thanks { color: var(--green); font-weight: 600; margin-bottom: 12px; }

.stars-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 28px;
}
.star { color: var(--border); }
.star-filled { color: var(--gold); }

.rating-avg {
    font-size: 14px;
    color: var(--text-muted);
    margin-left: 8px;
}
.rating-count { font-size: 12px; color: var(--text-light); }

/* Star input (interactive) */
.rating-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.stars-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 4px;
}
.stars-input input { display: none; }
.star-label {
    font-size: 36px;
    color: var(--border);
    cursor: pointer;
    transition: color 0.15s;
}
.stars-input input:checked ~ .star-label,
.stars-input .star-label:hover,
.stars-input .star-label:hover ~ .star-label {
    color: var(--gold);
}

/* ── Newsletter (Footer) ──────────────────── */
.footer-newsletter {
    padding: 28px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 8px 0;
}
.footer-newsletter h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 4px;
}
.footer-newsletter p {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 14px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 520px;
}
.newsletter-input {
    flex: 1;
    min-width: 140px;
    padding: 10px 14px;
    font-family: var(--font);
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: var(--white);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
}
.newsletter-btn {
    padding: 10px 24px;
    white-space: nowrap;
}

/* ── Print Styles ──────────────────────────── */
@media print {
    .site-header, .site-footer, .recipe-actions,
    .rating-section, .recipe-gallery-section,
    .recipe-video-section, .section-alt,
    .nav-search, .recipe-breadcrumb,
    .btn, .mobile-menu-btn { display: none !important; }

    .site-main { margin: 0; padding: 0; }

    .recipe-header {
        background: none !important;
        padding: 0 !important;
    }

    .recipe-page-title { font-size: 24px; }

    .recipe-content-grid {
        grid-template-columns: 1fr !important;
    }

    .recipe-ingredients {
        position: static !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }

    .steps-list li { page-break-inside: avoid; }
    .step-number {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .allergen-warning {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body { font-size: 12pt; }
}

/* ── Responsive additions ──────────────────── */
@media (max-width: 768px) {
    .nav-search { margin-left: 0; margin-top: 8px; width: 100%; }
    .nav-search-input { width: 100%; }
    .nav-search-input:focus { width: 100%; }
    .recipe-gallery { grid-template-columns: repeat(2, 1fr); }
    .newsletter-form { flex-direction: column; }
    .newsletter-input { min-width: 100%; }
}

/* ── Lightbox ──────────────────────────────── */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    cursor: default;
    animation: lightboxFadeIn 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition);
    line-height: 1;
}
.lightbox-close:hover { opacity: 1; }

@keyframes lightboxFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* ── Dietary Tags ──────────────────────────── */
.dietary-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.dietary-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--green-light);
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    border: 1px solid #C8DCC4;
}

/* ── Ingredient Hover Effect ───────────────── */
.ingredients-list li {
    transition: all var(--transition);
    border-radius: 6px;
    margin: 0 -8px;
    padding: 6px 8px !important;
    border-left: 3px solid transparent;
}
.ingredients-list li:hover {
    background: linear-gradient(90deg, rgba(212, 162, 83, 0.12) 0%, rgba(212, 162, 83, 0.04) 100%);
    border-left-color: var(--gold);
}

/* ── Recipe Card Hover Enhancement ─────────── */
.recipe-card {
    position: relative;
    border-bottom: 3px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.recipe-card:hover {
    border-bottom-color: var(--gold);
}

.blog-card {
    position: relative;
    border-bottom: 3px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.blog-card:hover {
    border-bottom-color: var(--gold);
}

/* ── Steps Hover ───────────────────────────── */
.steps-list li {
    transition: all var(--transition);
    border-radius: var(--radius);
    margin: 0 -12px;
    padding-left: 12px !important;
    padding-right: 12px !important;
    border-left: 3px solid transparent;
}
.steps-list li:hover {
    background: linear-gradient(90deg, rgba(139, 37, 0, 0.05) 0%, transparent 100%);
    border-left-color: var(--red);
}
.steps-list li:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(139, 37, 0, 0.3);
}
.step-number {
    transition: transform var(--transition), box-shadow var(--transition);
}

/* ── Featured Card Hover ───────────────────── */
.featured-card {
    transition: box-shadow 0.3s ease;
}
.featured-card:hover {
    box-shadow: 0 8px 32px rgba(139, 37, 0, 0.12);
}

/* ── Nav Link Hover ────────────────────────── */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background: var(--gold);
    transition: all 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    left: 8px;
    right: 8px;
}

/* ── Card Title Hover ──────────────────────── */
.card-title a {
    transition: color var(--transition);
    background-image: linear-gradient(var(--gold-light), var(--gold-light));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color var(--transition);
}
.card-title a:hover {
    color: var(--red);
    background-size: 100% 2px;
}

/* ── Social Link Hover ─────────────────────── */
.social-link:hover {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 37, 0, 0.2);
}

/* ── Footer Link Hover ─────────────────────── */
.footer-col a:hover {
    color: var(--gold);
    padding-left: 4px;
}
.footer-col a {
    transition: color var(--transition), padding-left var(--transition);
}

/* ── Read More Link ────────────────────────── */
.read-more {
    position: relative;
    padding-bottom: 2px;
}
.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}
.read-more:hover::after {
    width: 100%;
}

/* ── Search Button Hover ───────────────────── */
.search-btn:hover {
    background: var(--red-light);
    box-shadow: 0 2px 8px rgba(139, 37, 0, 0.2);
}
