/* Recipe Page Styles - Love & Lemons Aesthetic */

/* Prevent horizontal scroll on mobile */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

:root {
    --recipe-primary: #7eb77f;
    --recipe-secondary: #f4a261;
    --recipe-accent: #e76f51;
    --recipe-dark: #2c3e50;
    --recipe-light: #f8f9fa;
    --recipe-border: #e0e0e0;
    --recipe-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Recipe Page Container */
.recipe-page-container {
    padding: 40px 20px;
    background: var(--recipe-light);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Recipe Card Styling */
.recipe-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--recipe-shadow);
    margin-bottom: 60px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 220px; /* Prevent overlap with sticky carousel */
    position: relative;
    display: block;
    visibility: visible;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Recipe Header */
.recipe-header {
    padding: 30px;
}

.recipe-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.recipe-category,
.recipe-difficulty {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.recipe-category {
    background: #e8f5e9;
    color: #2e7d32;
}

.recipe-difficulty {
    background: #fff3e0;
    color: #e65100;
}

.recipe-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--recipe-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.recipe-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Quick Info Section */
.recipe-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.info-item {
    text-align: center;
    padding: 15px;
    background: var(--recipe-light);
    border-radius: 8px;
}

.info-item .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 5px;
}

.info-item .label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 4px;
}

.info-item .value {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--recipe-dark);
}

/* Recipe Hero Image */
.recipe-hero {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.recipe-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-hero img {
    transform: scale(1.05);
}

/* Recipe Content */
.recipe-content {
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .recipe-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Ingredients Section */
.ingredients-section h3,
.instructions-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--recipe-dark);
    margin-bottom: 20px;
}

.ingredients-list {
    list-style: none;
    padding: 0;
}

.ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--recipe-border);
    display: flex;
    align-items: center;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredients-list input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--recipe-primary);
}

.ingredients-list label {
    cursor: pointer;
    flex: 1;
    transition: color 0.2s ease;
}

.ingredients-list input[type="checkbox"]:checked + label {
    text-decoration: line-through;
    color: #999;
}

/* Instructions Section */
.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.instructions-list li {
    counter-increment: step-counter;
    padding: 20px 0 20px 60px;
    position: relative;
    line-height: 1.6;
    color: #444;
}

.instructions-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 20px;
    width: 40px;
    height: 40px;
    background: var(--recipe-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.instructions-list li:not(:last-child) {
    border-bottom: 1px solid var(--recipe-border);
    padding-bottom: 25px;
}

/* Nutrition Section */
.nutrition-section {
    padding: 25px 30px;
    background: #f0f7f0;
    border-radius: 8px;
    margin: 30px;
}

.nutrition-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--recipe-dark);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.nutrition-item {
    text-align: center;
    padding: 10px;
}

.nutrition-item .value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--recipe-primary);
}

.nutrition-item .label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Video Embed Section */
.video-section {
    padding: 30px;
    background: var(--recipe-light);
}

.video-section h4 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Source Attribution */
.recipe-source {
    padding: 20px 30px;
    background: #fff9e6;
    border-top: 2px solid var(--recipe-secondary);
    font-size: 0.95rem;
}

.recipe-source a {
    color: var(--recipe-accent);
    text-decoration: none;
    font-weight: 600;
}

.recipe-source a:hover {
    text-decoration: underline;
}

/* Comment Section Placeholder */
.comment-section {
    padding: 40px 30px;
    border-top: 2px solid var(--recipe-border);
}

.comment-header {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

/* Print Styles */
@media print {
    .navbar,
    .recipe-page-header,
    .comment-section,
    footer {
        display: none;
    }
    
    .recipe-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .recipe-content {
        grid-template-columns: 1fr;
    }
    
    .ingredients-list input[type="checkbox"] {
        display: none;
    }
}

/* Hover Effects */
.recipe-card a {
    color: var(--recipe-primary);
    transition: color 0.2s ease;
}

.recipe-card a:hover {
    color: var(--recipe-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-header h2 {
        font-size: 2rem;
    }
    
    .recipe-quick-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .recipe-hero {
        height: 250px;
    }
    
    .recipe-content {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .recipe-header {
        padding: 20px;
    }
    
    .recipe-header h2 {
        font-size: 1.6rem;
    }
    
    .recipe-quick-info {
        grid-template-columns: 1fr;
    }
    
    .recipe-page-container {
        padding: 80px 5px 10px 5px;
        overflow: visible;
        min-height: auto;
    }
    
    .recipe-card {
        border-radius: 8px;
        margin-bottom: 30px;
        scroll-margin-top: 150px;
        display: block !important;
        visibility: visible !important;
        position: relative !important;
        opacity: 1 !important;
        z-index: 1;
        margin-top: 20px;
    }
    
    .recipe-carousel {
        top: 60px !important;
        padding: 10px 5px 15px;
        position: sticky !important;
        max-height: 200px;
    }
    
    .carousel-card {
        flex: 0 0 180px;
    }
    
    .recipe-carousel .section-header {
        font-size: 1.1rem;
    }
    
    /* Ensure loveandlemons layout works on mobile */
    .loveandlemons-layout {
        display: block !important;
        visibility: visible !important;
    }
    
    .loveandlemons-hero,
    .loveandlemons-columns {
        display: block !important;
        visibility: visible !important;
    }
}

/* ============================================
   LOVE AND LEMONS REDESIGN - Typography System
   ============================================ */

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Typography Classes */
.recipe-card__title {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-4xl, 2.369rem);
    font-weight: 700;
    color: var(--gray-900, #1a1a1a);
    line-height: 1.2;
    margin-bottom: var(--space-3, 12px);
}

.recipe-hero__overlay .recipe-card__title {
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.recipe-card__description {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-lg, 1.125rem);
    font-weight: 400;
    color: var(--gray-600, #666);
    line-height: 1.6;
    margin-bottom: var(--space-4, 16px);
    max-width: 65ch;
}

.recipe-hero__overlay .recipe-card__description {
    color: rgba(255,255,255,0.95);
}

.recipe-card__section-header {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-2xl, 1.777rem);
    font-weight: 600;
    color: var(--green-600, #7eb77f);
    line-height: 1.3;
    margin-bottom: var(--space-4, 16px);
    padding-bottom: var(--space-2, 8px);
    border-bottom: 3px solid var(--green-300, #b8dbb9);
}

.recipe-card__subsection-header {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-xl, 1.333rem);
    font-weight: 600;
    color: var(--gray-800, #333);
    margin-bottom: var(--space-3, 12px);
}

.recipe-card__body-text {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base, 1rem);
    font-weight: 400;
    color: var(--gray-700, #4a4a4a);
    line-height: 1.7;
}

.recipe-card__small-text {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 400;
    color: var(--gray-500, #888);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 220px; /* Account for sticky carousel height + buffer */
}

/* Page Title/Subtitle */
.page-title {
    text-align: center;
    margin: 60px 0 20px;
}

.page-subtitle {
    text-align: center;
    margin-bottom: 40px;
}

/* ============================================
   HORIZONTAL SCROLLING CAROUSEL
   ============================================ */

.recipe-carousel {
    position: sticky;
    top: 80px;
    z-index: 900;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 85%, rgba(255,255,255,0.95) 100%);
    margin-bottom: 60px;
    padding: 20px 20px 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

.recipe-carousel.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Minimized/Collapsed state - like devsite-collapsible-section */
.recipe-carousel.minimized {
    padding: 0;
}

/* Section header with toggle chevron - devsite style */
.recipe-carousel .section-header {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.2s ease;
}

.recipe-carousel .section-header:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.recipe-carousel .section-header::after {
    content: '△ Collapse';
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--green-600, #7eb77f);
    transition: all 0.3s ease;
    margin-left: 8px;
    padding: 4px 10px;
    background: rgba(129, 199, 132, 0.15);
    border-radius: 12px;
}

.recipe-carousel .section-header:hover::after {
    background: rgba(129, 199, 132, 0.3);
}

.recipe-carousel.minimized .section-header {
    padding: 12px 20px;
    margin: 0;
    font-size: 1rem;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e9 50%, #f5f5f5 100%);
    border-bottom: 2px solid var(--green-500, #81c784);
    position: relative;
    z-index: 901;
    cursor: pointer;
    pointer-events: all;
}

.recipe-carousel.minimized .section-header::after {
    content: '🍄 Explore All Dishes';
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--green-800, #2e7d32);
    background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
    padding: 6px 14px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

.recipe-carousel.minimized .section-header:hover::after {
    background: linear-gradient(135deg, #a5d6a7 0%, #81c784 100%);
    transform: scale(1.02);
}

.recipe-carousel.minimized .carousel-container {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-out, opacity 0.2s ease-out;
}

.recipe-carousel.minimized .carousel-dots {
    display: none;
}

/* Active recipe indicator in minimized state - appears below header */
.active-recipe-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(to right, #fff8e1, #fffde7);
    border-bottom: 2px solid #ffc107;
    font-size: 0.95rem;
    color: var(--gray-800, #424242);
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 900;
    pointer-events: none;
}

/* Show indicator when visible class is added */
.active-recipe-indicator.visible {
    display: flex !important;
}

.active-recipe-indicator img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #ffc107;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.active-recipe-indicator span {
    font-weight: 600;
    color: var(--green-800, #2e7d32);
}

/* Ensure carousel stays sticky at all times */
.recipe-carousel {
    position: sticky !important;
    top: 80px !important;
    z-index: 900 !important;
}

/* Smooth expand animation */
.recipe-carousel .carousel-container {
    max-height: 400px;
    opacity: 1;
    transition: max-height 0.3s ease-in, opacity 0.2s ease-in;
}

.recipe-carousel.scrolled {
    padding: 8px 20px 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.recipe-carousel.scrolled .section-header {
    font-size: var(--text-sm, 0.875rem);
    margin-bottom: var(--space-2, 8px);
}

.recipe-carousel.scrolled .carousel-card {
    flex: 0 0 280px;
}

.recipe-carousel.scrolled .carousel-card img {
    height: 90px;
}

.recipe-carousel.scrolled .carousel-card h3 {
    font-size: 0.8rem;
    padding: 8px;
}

.recipe-carousel.scrolled .carousel-badges {
    display: none;
}

.recipe-carousel.scrolled .carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 1rem;
}

/* Sticky Hero Image Effect */
.sticky-hero {
    position: sticky;
    top: 0;
    z-index: 50;
}

.sticky-hero img {
    position: sticky;
    top: 0;
}

.recipe-carousel .section-header {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: var(--text-3xl, 2rem);
    font-weight: 700;
    color: var(--gray-900, #1a1a1a);
    margin-bottom: var(--space-6, 24px);
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4, 16px);
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    gap: var(--space-4, 16px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: var(--space-2, 8px) 0;
    flex: 1;
}

.carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.carousel-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 3px solid transparent;
}

.carousel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.carousel-card.active {
    border-color: var(--green-600, #2d7a3e);
    box-shadow: 0 4px 16px rgba(45, 122, 62, 0.3);
}

.carousel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.carousel-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base, 1rem);
    font-weight: 600;
    color: var(--gray-900, #1a1a1a);
    padding: var(--space-3, 12px) var(--space-3, 12px) var(--space-2, 8px);
    margin: 0;
    line-height: 1.3;
}

.carousel-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2, 8px);
    padding: 0 var(--space-3, 12px) var(--space-3, 12px);
}

/* Carousel Navigation Arrows */
.carousel-nav {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--green-600, #7eb77f);
    color: white;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(126,183,127,0.3);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--green-700, #6ba56c);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(126,183,127,0.4);
}

.carousel-nav:active {
    transform: scale(0.95);
}

.carousel-nav:focus {
    outline: 2px solid var(--green-400, #9cd29d);
    outline-offset: 2px;
}

/* Pagination Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-2, 8px);
    margin-top: var(--space-4, 16px);
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-300, #d1d1d1);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--green-600, #7eb77f);
    width: 24px;
    border-radius: 5px;
}

.carousel-dots .dot:hover {
    background: var(--green-500, #8ec48f);
}

/* Mobile: Hide arrows, show only track */
@media (max-width: 768px) {
    .carousel-nav {
        display: none;
    }
    
    .carousel-card {
        flex: 0 0 220px;
    }
    
    .carousel-track {
        padding-left: var(--space-4, 16px);
        padding-right: var(--space-4, 16px);
    }
    
    .recipe-carousel {
        top: 60px !important;
        position: sticky !important;
        padding: 12px 10px 20px;
        margin-bottom: 30px;
        max-height: 250px;
    }
    
    .recipe-carousel .section-header {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .recipe-page-container {
        padding: 80px 10px 20px 10px;
    }
    
    /* Ensure recipe cards show below carousel */
    .recipe-card {
        position: relative;
        z-index: 1;
        margin-top: 20px;
    }
}

/* ============================================
   LOVE AND LEMONS LAYOUT - Hero Section
   ============================================ */

.loveandlemons-layout {
    /* Applied to .recipe-card to activate new layout */
}

.loveandlemons-hero {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    margin-bottom: var(--space-6, 24px);
}

.recipe-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.recipe-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6, 24px);
}

.recipe-hero__content {
    text-align: center;
    max-width: 800px;
}

.btn-jump-to-recipe {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base, 1rem);
    font-weight: 600;
    color: white;
    background: var(--green-600, #7eb77f);
    padding: var(--space-3, 12px) var(--space-6, 24px);
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: var(--space-4, 16px);
}

.btn-jump-to-recipe:hover {
    background: var(--green-700, #6ba56c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126,183,127,0.3);
}

/* Badge Container */
.loveandlemons-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3, 12px);
    justify-content: center;
    margin-bottom: var(--space-6, 24px);
}

/* ============================================
   TWO-COLUMN LAYOUT - Sidebar + Instructions
   ============================================ */

.loveandlemons-columns {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-8, 32px);
    padding: var(--space-6, 24px);
}

.ingredients-sidebar {
    background: var(--gray-50, #f9f9f9);
    padding: var(--space-6, 24px);
    border-radius: 12px;
    position: sticky;
    top: 180px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.instructions-column {
    /* Flexible width */
}

/* Tablet/Mobile: Stacked Layout */
@media (max-width: 1023px) {
    .loveandlemons-columns {
        grid-template-columns: 1fr;
    }
    
    .ingredients-sidebar {
        position: static;
        max-height: none;
    }
    
    .loveandlemons-hero {
        height: 350px;
    }
}

@media (max-width: 767px) {
    .loveandlemons-hero {
        height: 250px;
    }
    
    .recipe-card__title {
        font-size: var(--text-2xl, 1.777rem);
    }
    
    /* Fix hero overlay text on mobile */
    .recipe-hero__overlay {
        padding: 15px;
    }
    
    .recipe-hero__overlay .recipe-card__title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .recipe-hero__overlay .recipe-card__description {
        font-size: 0.85rem;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 10px;
    }
    
    .btn-jump-to-recipe {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .loveandlemons-columns {
        padding: var(--space-4, 16px);
        gap: var(--space-6, 24px);
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .recipe-card {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .loveandlemons-layout {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

/* ============================================
   RECIPE SCALING SYSTEM
   ============================================ */

.recipe-scaling-controls {
    margin-bottom: var(--space-4, 16px);
    padding: var(--space-3, 12px);
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-200, #e5e5e5);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.scaling-label {
    display: block;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--gray-700, #4a4a4a);
    margin-bottom: var(--space-2, 8px);
}

.serving-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-2, 8px);
    width: 100%;
    max-width: 100%;
}

.serving-btn {
    padding: var(--space-2, 8px) var(--space-3, 12px);
    border: 2px solid var(--gray-300, #d1d1d1);
    background: white;
    border-radius: 6px;
    font-size: var(--text-sm, 0.875rem);
    font-weight: 600;
    color: var(--gray-700, #4a4a4a);
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.serving-btn:hover {
    border-color: var(--green-400, #9cd29d);
    background: var(--green-50, #f0f8f0);
    color: var(--green-700, #6ba56c);
}

.serving-btn.active {
    border-color: var(--green-600, #7eb77f);
    background: var(--green-600, #7eb77f);
    color: white;
}

.serving-btn:focus {
    outline: 2px solid var(--green-400, #9cd29d);
    outline-offset: 2px;
}

.quantity {
    display: inline-block;
    transition: all 0.3s ease;
}

.quantity-updated {
    color: var(--green-600, #7eb77f);
    font-weight: 700;
    transform: scale(1.1);
}

@media (max-width: 767px) {
    .serving-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Additional mobile-specific fixes */
    .recipe-scaling-controls {
        padding: var(--space-2, 8px);
    }
    
    .serving-btn {
        padding: var(--space-2, 8px);
        font-size: 0.75rem;
    }
    
    /* Ensure all recipe content respects mobile viewport */
    .recipe-content,
    .ingredients-section,
    .instructions-section {
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .ingredients-list,
    .instructions-list {
        padding-left: 0;
        padding-right: 0;
    }
}

/* ============================================
   RECIPE FOOTER
   ============================================ */

.loveandlemons-footer {
    padding: var(--space-6, 24px);
    border-top: 1px solid var(--gray-200, #e5e5e5);
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .recipe-hero__overlay,
    .btn-jump-to-recipe,
    .recipe-rating,
    .recipe-scaling-controls,
    .carousel-container,
    .carousel-dots,
    .navbar {
        display: none !important;
    }
    
    .loveandlemons-columns {
        grid-template-columns: 1fr !important;
    }
    
    .ingredients-sidebar {
        position: static !important;
        page-break-inside: avoid;
    }
    
    .instruction-step {
        page-break-inside: avoid;
    }
    
    .recipe-card__title {
        font-size: 24pt;
        color: black;
    }
    
    .recipe-card__section-header {
        font-size: 18pt;
        color: black;
        border-bottom: 2px solid black;
    }
    
    .recipe-card__body-text {
        font-size: 12pt;
        color: black;
    }
}
/* ============================================
   RECIPE FEEDBACK (LIKE/DISLIKE)
   ============================================ */

.recipe-feedback {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    align-items: center;
}

.feedback-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
}

.feedback-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.feedback-btn svg {
    transition: all 0.3s ease;
}

.like-btn:hover {
    border-color: #4caf50;
    color: #4caf50;
}

.like-btn:hover svg {
    stroke: #4caf50;
}

.like-btn.active {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

.like-btn.active svg {
    fill: white;
    stroke: white;
}

.dislike-btn:hover {
    border-color: #f44336;
    color: #f44336;
}

.dislike-btn:hover svg {
    stroke: #f44336;
}

.dislike-btn.active {
    background: #f44336;
    border-color: #f44336;
    color: white;
}

.dislike-btn.active svg {
    fill: white;
    stroke: white;
}

.like-count, .dislike-count {
    min-width: 20px;
    text-align: center;
}