/* ═══════════════════════════════════════════════════════════════════════════
   AnnaCuisine Single Recipe Page - CREATIVE PREMIUM DESIGN v8.0
   A unique, artistic design that delights and inspires visitors
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────────────────────
   CREATIVE ANIMATIONS & KEYFRAMES
   ───────────────────────────────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 113, 78, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 113, 78, 0.4);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. CSS Variables - Artistic Color Palette
   ───────────────────────────────────────────────────────────────────────────── */
:root {
    /* Primary Colors */
    --primary: #D4714E;
    --primary-dark: #B85A3A;
    --primary-light: #E8967A;
    --primary-soft: rgba(212, 113, 78, 0.1);

    /* Backgrounds */
    --bg-body: #FDFBF9;
    --bg-card: #FFFFFF;
    --bg-secondary: #F8F5F2;
    --bg-accent: linear-gradient(135deg, #FFF9F5 0%, #FDF5F0 100%);
    --bg-body-transparent: rgba(253, 251, 248, 0.8);

    /* Text Colors */
    --text-primary: #2C2825;
    --text-secondary: #5D5652;
    --text-muted: #8A8480;
    --text-light: #B5B0AB;

    /* Borders & Shadows */
    --border-light: rgba(0, 0, 0, 0.06);
    --border-medium: rgba(0, 0, 0, 0.1);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.08), 0 24px 64px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 28px rgba(212, 113, 78, 0.15), 0 8px 16px rgba(0, 0, 0, 0.05);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-base: 0.25s var(--ease-out);
    --transition-slow: 0.4s var(--ease-out);
}

/* Dark Mode */
[data-theme="dark"] {
    --primary: #E8967A;
    --primary-dark: #D4714E;
    --primary-light: #F5B8A0;
    --primary-soft: rgba(232, 150, 122, 0.12);

    --bg-body: #141210;
    --bg-card: #1E1C1A;
    --bg-secondary: #252320;
    --bg-accent: linear-gradient(135deg, #1E1C1A 0%, #252320 100%);
    --bg-body-transparent: rgba(20, 18, 16, 0.9);

    --text-primary: #F5F3F1;
    --text-secondary: #D4D0CC;
    --text-muted: #9E9894;
    --text-light: #706A66;

    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);

    --glass-bg: rgba(30, 28, 26, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. Base Styles
   ───────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle artistic background pattern */
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(212, 113, 78, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 113, 78, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Scroll-reveal animation for sections */
.card,
.section,
#related-section .rel-card {
    animation: fadeInUp 0.6s var(--ease-out) backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

#related-section .rel-card:nth-child(1) {
    animation-delay: 0.1s;
}

#related-section .rel-card:nth-child(2) {
    animation-delay: 0.2s;
}

#related-section .rel-card:nth-child(3) {
    animation-delay: 0.3s;
}

#related-section .rel-card:nth-child(4) {
    animation-delay: 0.4s;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3a. Jump Navigation - Premium Floating Glass
   ───────────────────────────────────────────────────────────────────────────── */
.jump-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-xl);
    padding: 0 var(--space-md);
    position: relative;
    z-index: 100;
}

.jump-links {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    background: linear-gradient(135deg, #FFF5F0 0%, #FDE8DF 100%);
    /* Soft Peach Gradient */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid rgba(212, 113, 78, 0.15);
    /* Subtle orange border */
    box-shadow: 0 8px 32px rgba(212, 113, 78, 0.1);
    /* Warm shadow */
}

.jump-label {
    display: none;
    /* Hidden for cleaner look */
}

.jump-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    background: transparent;
}

.jump-link:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 113, 78, 0.15);
}

.jump-icon {
    font-size: 1.1em;
}

.jump-arrow {
    font-size: 0.8em;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.jump-link:hover .jump-arrow {
    transform: translateY(3px);
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. Layout
   ───────────────────────────────────────────────────────────────────────────── */
.recipe-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg) var(--space-3xl);
}

.recipe-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 1100px) {
    .recipe-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .recipe-sidebar {
        order: 2;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   3b. Recipe Header - Title & Breadcrumb Above Image
   ───────────────────────────────────────────────────────────────────────────── */
.recipe-header {
    padding: var(--space-lg) var(--space-md);
    padding-left: 0;
    margin-left: calc(-1 * var(--space-lg));
    /* Counteract wrapper padding to align with screen edge */
    max-width: calc(100% + var(--space-lg));
    text-align: left;
}

.recipe-header .breadcrumb {
    display: flex;
    justify-content: flex-start;
    /* Aligned to left */
    align-items: center;
    gap: var(--space-xs);
    flex-wrap: wrap;
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
}

.recipe-header .breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.recipe-header .breadcrumb a:hover {
    color: var(--primary);
}

.recipe-header .breadcrumb span {
    color: var(--text-muted);
}

.recipe-header .breadcrumb .current {
    color: var(--text-primary);
    font-weight: 500;
}

.recipe-header .recipe-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .recipe-header {
        padding: var(--space-md) var(--space-sm);
    }

    .recipe-header .breadcrumb {
        font-size: 0.8rem;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. Hero Section - FULL WIDTH DESIGN
   ───────────────────────────────────────────────────────────────────────────── */
.recipe-hero {
    position: relative;
    overflow: visible;
    margin-bottom: 0;
    box-shadow: none;
    /* Show full image without cropping */
    animation: fadeInScale 0.8s var(--ease-out);
    /* Full width - break out of container */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
    margin-bottom: 0;
    /* No max-height - show full image */
}

/* Soft Cream/White Mist Gradient connecting to page background */
/* Soft Mist Gradient connecting to page background (Adaptive) */
.recipe-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, var(--bg-body) 20%, var(--bg-body-transparent, rgba(253, 251, 248, 0.8)) 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Info bar now overlaps hero - no need for ::after smoke effect */

/* Decorative corner accent - REMOVED */
.recipe-hero::before {
    display: none;
}

.recipe-hero img {
    width: 100%;
    height: auto;
    /* Auto height to show full image */
    object-fit: contain;
    /* Show entire image without cropping */
    object-position: center center;
    /* Center the image */
    transition: transform 1s var(--ease-out), filter 0.5s var(--ease-out);
}

.recipe-hero:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.recipe-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(212, 113, 78, 0.05) 0%, transparent 40%),
        linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.4) 25%,
            rgba(0, 0, 0, 0.1) 50%,
            transparent 100%);
    pointer-events: none;
}

/* Floating Category Badge */
.recipe-hero .category-badge {
    position: absolute;
    top: var(--space-lg);
    left: var(--space-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.recipe-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2xl);
    color: #fff;
    z-index: 10;
}

.recipe-hero-content h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-sm);
}

.recipe-hero-content .breadcrumb {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.recipe-hero-content .breadcrumb a,
.recipe-hero-content .breadcrumb span {
    color: rgba(255, 255, 255, 0.9);
}

/* Breadcrumb */
.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-lg);
}

.breadcrumb a {
    color: var(--text-secondary);
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. Quick Info Bar - Full Width Background Stripe
   ───────────────────────────────────────────────────────────────────────────── */
/* Full-width wrapper for Quick Info */
.info-bar-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, #FFF9F5 0%, #FDF5F0 100%);
    border-top: 1px solid rgba(212, 113, 78, 0.1);
    border-bottom: 1px solid rgba(212, 113, 78, 0.1);
    padding: var(--space-lg) 0;
    margin-top: 0;
    /* Start after image, no overlap */
    margin-bottom: 0;
    z-index: 10;
}

[data-theme="dark"] .info-bar-wrapper {
    background: linear-gradient(135deg, #1E1C1A 0%, #252320 100%);
    border-color: var(--border-light);
}

.quick-info,
.info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-sm);
    padding: 0 var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.quick-info .info-item,
.info-bar-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Neutral White Border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

/* Hover Effect */
.quick-info .info-item:hover,
.info-bar-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    /* Neutral Shadow */
    border-color: #fff;
    background: #fff;
}

[data-theme="dark"] .quick-info .info-item,
[data-theme="dark"] .info-bar-item {
    background: rgba(30, 28, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .quick-info .info-item:hover,
[data-theme="dark"] .info-bar-item:hover {
    background: #2A2826;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Keep text colors visible on hover */
.quick-info .info-item:hover .label,
.info-bar-item:hover .label {
    color: var(--text-muted);
}

.quick-info .info-item:hover .value,
.info-bar-item:hover .value {
    color: var(--text-primary);
}

.quick-info .info-item:hover .icon,
.info-bar-item:hover .icon {
    color: var(--primary);
}

/* Icons */
.quick-info .info-item .icon,
.info-bar-item .icon {
    font-size: 1.25rem;
    /* Smaller icon */
    margin-bottom: var(--space-xs);
    display: block;
    color: var(--primary);
}

/* Labels */
.quick-info .info-item .label,
.info-bar-item .label {
    font-size: 0.6rem;
    /* Smaller label */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    opacity: 1;
    margin-bottom: 2px;
    font-weight: 600;
    text-align: center;
}

/* Values */
.quick-info .info-item .value,
.info-bar-item .value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
    /* Smaller value */
    font-family: var(--font-display);
    line-height: 1.2;
    text-align: center;
}

/* Info Content Container */
.quick-info .info-item .info-content,
.info-bar-item .info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. Action Buttons Bar - Full Width Background Stripe
   ───────────────────────────────────────────────────────────────────────────── */
/* Full-width wrapper for Action Buttons */
.action-buttons-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 245, 242, 0.95) 100%);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-md) 0;
    margin-bottom: var(--space-xl);
    z-index: 10;
}

[data-theme="dark"] .action-buttons-wrapper {
    background: linear-gradient(135deg, rgba(30, 28, 26, 0.95) 0%, rgba(37, 35, 32, 0.95) 100%);
    border-bottom-color: var(--border-light);
}

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    position: relative;
    z-index: 10;
}

.action-buttons .btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 48px;
    font-family: var(--font-body);
}

.action-buttons .btn:hover {
    color: var(--primary);
}

[data-theme="dark"] .action-buttons .btn {
    background: rgba(30, 28, 26, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

[data-theme="dark"] .action-buttons .btn:hover {
    background: #2A2826;
    border-color: var(--primary);
    color: var(--primary);
}

/* Specific buttons adjustment */
.action-buttons .btn span {
    display: inline-flex;
}

/* Primary Button (Cooking Mode) - Keep glass but accent border */
.action-buttons .btn-primary {
    color: var(--primary) !important;
}

[data-theme="dark"] .action-buttons .btn-primary {
    background: rgba(30, 28, 26, 0.95) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

[data-theme="dark"] .action-buttons .btn-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

.action-buttons .btn-primary:hover {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* Dark Mode Button */
.action-buttons #btn-dark {
    margin-left: auto;
    /* Push to right if space permits */
}

/* ─────────────────────────────────────────────────────────────────────────────
   6a. Modals - Shopping List & Cooking Mode
   ───────────────────────────────────────────────────────────────────────────── */
/* Common Modal Styles */
.shopping-modal,
.cooking-mode-modal,
#shopping-modal,
#cooking-mode {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-lg);
    overflow-y: auto;
}

.shopping-modal.active,
.cooking-mode-modal.active,
#shopping-modal.active,
#cooking-mode.active,
#shopping-modal[style*="flex"],
#cooking-mode[style*="block"] {
    display: flex !important;
}

/* Modal Content Box */
.shopping-content,
#cooking-mode>div {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.3s ease;
}

/* Modal Headers */
.shopping-content h3,
#cooking-mode h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Shopping List Items */
.shopping-list,
#shopping-list {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.shopping-list li,
#shopping-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    font-size: 1rem;
}

.shopping-list li:last-child,
#shopping-list li:last-child {
    border-bottom: none;
}

/* Cooking Mode Steps */
#cm-steps {
    max-height: 50vh;
    overflow-y: auto;
    margin: var(--space-lg) 0;
}

.cooking-step {
    padding: var(--space-md);
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-md);
    background: transparent;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.cooking-step.active {
    background: var(--primary-soft);
    border-left-color: var(--primary);
    color: var(--text-primary);
}

.cooking-step strong {
    color: var(--primary);
}

/* Cooking Mode - Single Step Display */
.cm-progress-container {
    width: 100%;
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.cm-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 0.4s ease;
}

.cm-step-counter {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cm-current-step {
    font-size: 1.4rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: center;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary);
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cooking Mode Modal Enhanced */
#cooking-mode>div {
    max-width: 700px;
    width: 95%;
}

#cm-steps {
    margin-bottom: var(--space-xl);
}

/* Mobile adjustments for cooking mode */
@media (max-width: 640px) {
    .cm-current-step {
        font-size: 1.1rem;
        padding: var(--space-lg);
        min-height: 100px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. Content Cards
   ───────────────────────────────────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.card-header,
.section-title,
.card>.card-header,
#ingredients-card .card-header,
#nutrition-card .card-header,
#faq-card .card-header,
div.card .card-header {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: calc(-1 * var(--space-md)) calc(-1 * var(--space-md)) var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: #EDE9E5;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .section-title,
[data-theme="dark"] .card>.card-header,
[data-theme="dark"] #ingredients-card .card-header,
[data-theme="dark"] #nutrition-card .card-header,
[data-theme="dark"] #faq-card .card-header,
[data-theme="dark"] div.card .card-header {
    background: #252320;
    color: var(--text-primary);
    border-bottom-color: var(--border-light);
}

.card-header::before,
.section-title::before {
    display: none;
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. Ingredients
   ───────────────────────────────────────────────────────────────────────────── */
.ing-list {
    list-style: none;
    display: grid;
    gap: var(--space-xs);
}

.ing-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    cursor: pointer;
}

.ing-item:hover {
    background-color: var(--bg-secondary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   7a. Servings Scaler - NEW
   ───────────────────────────────────────────────────────────────────────────── */
.servings-scaler {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    padding: var(--space-sm) var(--space-md);
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.scaler-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.scaler-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 2px;
    border: 1px solid var(--border-medium);
}

[data-theme="dark"] .scaler-controls {
    background: #2A2826;
    border-color: var(--border-light);
}

.scaler-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scaler-btn:hover {
    background: var(--primary-soft);
}

.scaler-btn:active {
    transform: scale(0.9);
}

#servings-input {
    width: 40px;
    text-align: center;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
    background: transparent;
    -moz-appearance: textfield;
}

#servings-input::-webkit-inner-spin-button,
#servings-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ing-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-xs);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition-fast);
    margin-top: 2px;
}

.ing-item input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.ing-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 45%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -55%) rotate(45deg);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. Preparation Steps - Premium Design
   ───────────────────────────────────────────────────────────────────────────── */
.steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step-counter;
    position: relative;
}

/* Connecting line between steps */
.steps-list::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 40px;
    bottom: 40px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-soft), var(--border-light), var(--primary-soft));
    border-radius: 2px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--ease-out);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(212, 113, 78, 0.15);
    transform: translateX(4px);
}

.step-item:last-child {
    margin-bottom: 0;
}

/* Step Number - Circle Badge */
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-display);
    box-shadow: 0 4px 12px rgba(212, 113, 78, 0.35);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Step Content */
.step-content {
    flex: 1;
    min-width: 0;
    padding-top: var(--space-xs);
}

.step-content p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Timer Button - Refined Style */
.step-timer-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-md);
    background: var(--primary-soft);
    border: 1px solid rgba(212, 113, 78, 0.2);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: var(--space-md);
}

.step-timer-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 113, 78, 0.3);
}

/* Group Title within Steps */
.steps-list .group-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    padding: var(--space-md) 0 var(--space-sm);
    margin-top: var(--space-md);
    border-bottom: 2px solid var(--primary-soft);
    margin-bottom: var(--space-sm);
}

/* Mobile Responsive Steps */
@media (max-width: 768px) {
    .steps-list::before {
        left: 20px;
    }

    .step-item {
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .step-num {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.95rem;
    }

    .step-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .step-timer-btn {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

.ing-item input[type="checkbox"]:checked+label {
    text-decoration: line-through;
    color: var(--text-muted);
}

.ing-item label {
    font-size: 1rem;
    line-height: 1.6;
    cursor: pointer;
    flex: 1;
    color: var(--text-primary);
}

/* ─────────────────────────────────────────────────────────────────────────────
   8. Preparation Steps
   ───────────────────────────────────────────────────────────────────────────── */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
}

.step-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--space-md);
}

.step-item::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: -24px;
    width: 2px;
    background: var(--border-light);
}

.step-item:last-child::before {
    display: none;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-display);
    z-index: 2;
}

.step-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.step-timer-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-soft);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.step-timer-btn:hover {
    background: var(--primary);
    color: white;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9. Related Recipes Section - CREATIVE PREMIUM DESIGN
   ───────────────────────────────────────────────────────────────────────────── */
#related-section {
    margin-top: var(--space-3xl);
    padding: var(--space-3xl) 0;
    position: relative;
    background: var(--bg-accent);
    border-radius: var(--radius-xl);
    margin-left: calc(-1 * var(--space-lg));
    margin-right: calc(-1 * var(--space-lg));
    padding-left: var(--space-xl);
    padding-right: var(--space-xl);
}

/* Decorative top border with gradient */
#related-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    border-radius: 2px;
}

/* Artistic floating dots decoration */
#related-section::after {
    content: '✦ ✦ ✦';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-body);
    padding: 0 var(--space-md);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.5em;
}

#related-section .section-title,
#related-section .title,
#related-section h3 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    border: none;
    padding: 0;
}

#related-section .section-title::before,
#related-section .title::before,
#related-section h3::before {
    display: none;
}

#related-section .section-title::after,
#related-section .title::after,
#related-section h3::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--primary-light));
    margin: var(--space-md) auto 0;
    border-radius: 2px;
}

/* Related Cards Grid */
#related-section .cards,
#related-section .box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1200px) {

    #related-section .cards,
    #related-section .box {
        grid-template-columns: repeat(3, 1fr);
    }

    #related-section {
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
    }
}

@media (max-width: 900px) {

    #related-section .cards,
    #related-section .box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {

    #related-section .cards,
    #related-section .box {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    #related-section {
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* Related Recipe Card - CREATIVE DESIGN */
.rel-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.5s var(--ease-out);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.rel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 2px;
    background: linear-gradient(135deg, var(--primary-light), transparent, var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.rel-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.rel-card:hover::before {
    opacity: 1;
}

/* Card Image Container */
.rel-card .rel-thumb-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.rel-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.rel-card:hover .rel-thumb {
    transform: scale(1.08);
}

/* Time Badge on Card */
.rel-card .time-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .rel-card .time-badge {
    background: rgba(30, 28, 26, 0.9);
    color: var(--text-primary);
}

/* Card Body */
.rel-body {
    padding: var(--space-lg);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.rel-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.rel-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
    position: relative;
}

.rel-title a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out);
}

.rel-card:hover .rel-title a {
    color: var(--primary);
}

.rel-card:hover .rel-title a::after {
    width: 100%;
}

/* ─────────────────────────────────────────────────────────────────────────────
   9.5. Nutrition Section - Premium Design
   ───────────────────────────────────────────────────────────────────────────── */
#nutrition-card {
    background: var(--bg-card) !important;
}

#nutrition-card .card-body {
    padding: var(--space-md) !important;
}

#nutrition-card .nutrition-grid,
.nutrition-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)) !important;
    gap: var(--space-md) !important;
    margin-top: var(--space-md);
}

#nutrition-card .nutrition-item,
.nutrition-item {
    position: relative !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] #nutrition-card .nutrition-item,
[data-theme="dark"] .nutrition-item {
    background: linear-gradient(145deg, #252320 0%, #1E1C1A 100%) !important;
    border-color: var(--border-light) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

#nutrition-card .nutrition-item:hover,
.nutrition-item:hover {
    transform: translateY(-5px) scale(1.02) !important;
    box-shadow: 0 8px 20px rgba(212, 113, 78, 0.15) !important;
    border-color: var(--primary) !important;
}

#nutrition-card .nutrition-item .label,
.nutrition-item .label,
.nutrition-item>div:first-child {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #888 !important;
    margin-bottom: var(--space-sm) !important;
    display: block !important;
}

#nutrition-card .nutrition-item .value,
.nutrition-item .value,
.nutrition-item>div:last-child {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    font-family: var(--font-display) !important;
    line-height: 1.2 !important;
    display: block !important;
}

#nutrition-card .nutrition-note,
.nutrition-note {
    margin-top: var(--space-lg) !important;
    padding: var(--space-md) !important;
    background: linear-gradient(135deg, rgba(212, 113, 78, 0.08) 0%, rgba(212, 113, 78, 0.03) 100%) !important;
    border-radius: var(--radius-md) !important;
    border-left: 4px solid var(--primary) !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] #nutrition-card .nutrition-note,
[data-theme="dark"] .nutrition-note {
    background: rgba(232, 150, 122, 0.05) !important;
    border-left-color: var(--primary) !important;
    color: var(--text-secondary) !important;
}

.nutrition-note p {
    margin: 0 !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   10. Sidebar Widgets
   ───────────────────────────────────────────────────────────────────────────── */
.recipe-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.sidebar-widget-header {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Suggested Recipes in Sidebar */
.suggested-recipe {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
    margin-bottom: var(--space-sm);
}

.suggested-recipe:hover {
    background-color: var(--bg-secondary);
}

.suggested-recipe img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.suggested-recipe-info {
    flex: 1;
    min-width: 0;
}

.suggested-recipe-title {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    margin-bottom: var(--space-xs);
}

.suggested-recipe:hover .suggested-recipe-title {
    color: var(--primary);
}

.suggested-recipe-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────────────────
   11. Buttons
   ───────────────────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.btn:hover {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    box-shadow: var(--shadow-hover);
}

/* ─────────────────────────────────────────────────────────────────────────────
   12. Nutrition Grid
   ───────────────────────────────────────────────────────────────────────────── */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-md);
}

.nutrition-item {
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    text-align: center;
}

.nutrition-item .value {
    display: block;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
}

.nutrition-item .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────────────────────────────────────────
   13. Action Buttons Bar
   ───────────────────────────────────────────────────────────────────────────── */
.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    padding: var(--space-sm);
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    position: sticky;
    top: var(--space-md);
    z-index: 90;
}

/* ─────────────────────────────────────────────────────────────────────────────
   14. Print Styles
   ───────────────────────────────────────────────────────────────────────────── */
@media print {

    .recipe-sidebar,
    .action-buttons,
    .no-print,
    #related-section {
        display: none !important;
    }

    .recipe-layout {
        display: block;
    }

    .recipe-wrapper {
        padding: 0;
        max-width: 100%;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   15. FAQ Accordion - Collapsible Questions
   ───────────────────────────────────────────────────────────────────────────── */
.faq-item {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-card);
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
    user-select: none;
}

.faq-q:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

/* Arrow indicator */
.faq-q::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform var(--transition-base);
    flex-shrink: 0;
    margin-left: var(--space-md);
}

.faq-item.active .faq-q::after {
    content: '−';
}

/* Answer - Hidden by default */
.faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 var(--space-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    transition: all 0.4s var(--ease-out);
    background: var(--bg-card);
}

.faq-item.active .faq-a {
    max-height: 500px;
    padding: var(--space-md) var(--space-lg) var(--space-lg);
}

.faq-a p {
    margin: 0;
    margin-bottom: var(--space-sm);
}

.faq-a p:last-child {
    margin-bottom: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   16. MOBILE RESPONSIVE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Tablet: 768px - 1024px */
@media (max-width: 1024px) {
    .recipe-wrapper {
        padding: var(--space-lg) var(--space-md);
    }

    .recipe-hero {
        aspect-ratio: 16/10;
        border-radius: var(--radius-lg);
    }

    .recipe-hero-content {
        padding: var(--space-lg);
    }

    .recipe-hero-content h1 {
        font-size: 1.75rem;
    }

    .quick-info,
    .info-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile: 768px and below */
@media (max-width: 768px) {
    :root {
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
        --space-3xl: 2.5rem;
    }

    .recipe-wrapper {
        padding: var(--space-md) var(--space-sm);
    }

    .recipe-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .recipe-sidebar {
        order: 2;
        position: static;
    }

    /* Hero */
    .recipe-hero {
        aspect-ratio: 4/3;
        border-radius: var(--radius-md);
        margin-bottom: var(--space-lg);
    }

    .recipe-hero::before {
        width: 80px;
        height: 80px;
    }

    .recipe-hero-content {
        padding: var(--space-md);
    }

    .recipe-hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }

    .breadcrumb {
        font-size: 0.75rem;
        flex-wrap: wrap;
    }

    /* Quick Info */
    .quick-info,
    .info-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .quick-info .info-item,
    .info-bar-item {
        padding: var(--space-md);
    }

    .quick-info .info-item .icon,
    .info-bar-item .icon {
        font-size: 1.2rem;
    }

    .quick-info .info-item .value,
    .info-bar-item .value {
        font-size: 0.95rem;
    }

    /* Cards */
    .card {
        padding: var(--space-md);
        border-radius: var(--radius-md);
        margin-bottom: var(--space-md);
    }

    .card-header,
    .section-title {
        font-size: 1.15rem;
    }

    /* Ingredients */
    .ing-item {
        padding: var(--space-xs);
    }

    .ing-item label {
        font-size: 0.95rem;
    }

    /* Steps */
    .step-item {
        padding-left: 2.5rem;
    }

    .step-num {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .step-item::before {
        left: 14px;
        top: 32px;
        bottom: -16px;
    }

    .step-content p {
        font-size: 0.95rem;
    }

    /* Action Buttons */
    .action-buttons {
        position: static;
        width: 100%;
        border-radius: var(--radius-md);
        padding: var(--space-xs);
        gap: var(--space-xs);
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .action-buttons .btn {
        flex-shrink: 0;
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    /* FAQ */
    .faq-q {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.95rem;
    }

    .faq-item.active .faq-a {
        padding: var(--space-sm) var(--space-md) var(--space-md);
    }

    /* Related Section */
    #related-section {
        padding: var(--space-xl) var(--space-md);
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
        border-radius: var(--radius-md);
    }

    #related-section .section-title,
    #related-section .title,
    #related-section h3 {
        font-size: 1.35rem;
    }

    .rel-body {
        padding: var(--space-md);
    }

    .rel-title {
        font-size: 0.95rem;
    }
}

/* Small Mobile: 480px and below */
@media (max-width: 480px) {
    .recipe-wrapper {
        padding: var(--space-sm);
    }

    .recipe-hero {
        aspect-ratio: 1/1;
        border-radius: var(--radius-sm);
    }

    .recipe-hero-content h1 {
        font-size: 1.25rem;
    }

    .quick-info,
    .info-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-info .info-item,
    .info-bar-item {
        padding: var(--space-sm);
    }

    .quick-info .info-item .label,
    .info-bar-item .label {
        font-size: 0.6rem;
    }

    .quick-info .info-item .value,
    .info-bar-item .value {
        font-size: 0.85rem;
    }

    .card {
        padding: var(--space-sm);
    }

    .card-header,
    .section-title {
        font-size: 1.05rem;
        padding-bottom: var(--space-sm);
        margin-bottom: var(--space-md);
    }

    .step-item {
        padding-left: 2rem;
    }

    .step-num {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .action-buttons {
        justify-content: flex-start;
    }

    .action-buttons .btn span {
        display: none;
    }

    /* Sidebar widgets stack */
    .sidebar-widget {
        padding: var(--space-md);
    }

    /* Suggested recipes in sidebar */
    .suggested-recipe img {
        width: 60px;
        height: 60px;
    }

    .suggested-recipe-title {
        font-size: 0.85rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   17. RELATED RECIPES GRID - "Vous aimerez aussi"
   ═══════════════════════════════════════════════════════════════════════════ */

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.related-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover img {
    transform: scale(1.05);
}

.related-card-body {
    padding: var(--space-md);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.related-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.related-card-title:hover {
    color: var(--primary);
}

/* Tablet */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .related-card img {
        height: 150px;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .related-card {
        flex-direction: row;
        height: auto;
    }

    .related-card img {
        width: 120px;
        height: 100px;
        flex-shrink: 0;
    }

    .related-card-body {
        padding: var(--space-sm) var(--space-md);
    }

    .related-card-title {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
}