/* =============================================================================
   FINAL PREMIUM RECIPE DESIGN - FIXED CLASS NAMES
   ============================================================================= */

:root {
    --primary: #1a1a1a;
    --secondary: #8b4513;
    --accent: #cd853f;
    --gold: #d4af37;
    --sage: #a8b5a1;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #999;
    --bg-cream: #faf9f7;
    --border: #e8e6e3;
    --butter: #f6e6d3;
    --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,.1);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-elegant: 'Libre Baskerville', Georgia, serif;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: #fff;
    padding-top: 75px;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    margin: 0 0 1.5rem;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    margin: 0 0 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: var(--accent);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb - Minimal */
.breadcrumb-compact {
    background: #fff;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-minimal {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.813rem;
    font-weight: 500;
}

.breadcrumb-minimal li {
    display: flex;
    align-items: center;
}

.breadcrumb-minimal li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-minimal a {
    color: var(--text-light);
}

.breadcrumb-minimal .active {
    color: var(--text);
    font-weight: 600;
}

/* Hero Premium */
.hero-premium {
    background: linear-gradient(180deg, var(--bg-cream) 0%, #fff 100%);
    padding: 3.5rem 0;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.category-pill {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    font-size: 0.813rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-heading {
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-intro {
    font-size: 1.125rem;
    line-height: 1.8;
    padding: 1.75rem;
    background: var(--butter);
    border-left: 5px solid var(--gold);
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.hero-intro p {
    margin: 0;
    color: var(--text-light);
}

.hero-metadata {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-top: 2rem;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.by-line {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.author-title {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

.rating-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stars-row {
    display: flex;
    gap: 0.25rem;
    color: var(--gold);
    font-size: 1.125rem;
}

.rating-info {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.publish-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.main-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pin-btn-hero {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.pin-btn-hero:hover {
    background: #e60023;
    transform: scale(1.05);
}

/* Fixed Action Bar - NOT Sticky */
.action-bar-fixed {
    background: #fff;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 3rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: var(--font-sans);
}

.btn-action:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-action.btn-primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-color: var(--secondary);
    color: #fff;
}

.btn-action.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* Main Content */
.content-wrapper {
    padding: 4rem 0;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 4rem;
}

.article-content {
    max-width: 900px;
}

.lead-section {
    margin-bottom: 3rem;
}

.lead-text {
    font-size: 1.188rem;
    line-height: 1.9;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(246, 230, 211, 0.25));
    border-left: 6px solid var(--gold);
    border-radius: 0 16px 16px 0;
    font-weight: 500;
}

.content-section {
    margin: 3.5rem 0;
}

.content-heading {
    position: relative;
    padding-bottom: 0.75rem;
    margin-bottom: 1.75rem;
}

.content-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pin-btn-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.gallery-item:hover .pin-btn-overlay {
    opacity: 1;
}

.pin-btn-overlay:hover {
    background: #e60023;
}

/* Kitchen & Pairing Items */
.kitchen-list, .pairings-list {
    display: grid;
    gap: 1.5rem;
}

.kitchen-dot-item, .pairing-dot-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
}

.kitchen-dot, .pairing-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    margin-top: 6px;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
}

.kitchen-content h5, .pairing-content h5 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
}

.kitchen-content p, .pairing-content p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.7;
}

.feature-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 4rem 0;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

.pin-btn-large {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s;
}

.feature-image:hover .pin-btn-large {
    opacity: 1;
}

.pin-btn-large:hover {
    background: #e60023;
    transform: scale(1.05);
}

/* Recipe Card Premium */
.recipe-card-premium {
    background: #fff;
    border-radius: 24px;
    padding: 3.5rem 3rem;
    box-shadow: var(--shadow-lg);
    border-top: 8px solid var(--gold);
    margin: 4rem 0;
}

.card-top {
    text-align: center;
    padding-bottom: 2.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 2px solid var(--border);
}

.card-title {
    font-size: clamp(1.875rem, 4vw, 3rem);
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1.063rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    padding: 2.5rem;
    background: var(--bg-cream);
    border-radius: 16px;
    margin-bottom: 2.5rem;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: translateY(-3px);
}

.stat-box svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-name {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-num {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary);
}

.recipe-metadata {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--butter);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    font-size: 0.938rem;
    font-family: var(--font-sans);
}

.recipe-metadata strong {
    color: var(--secondary);
    font-weight: 700;
}

.card-block {
    margin: 3rem 0;
}

.block-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}

.hint-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Ingredients - FIXED CLASS NAMES */
.ingredients-fancy {
    list-style: none;
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 16px;
}

/* THIS IS THE KEY FIX - Match the HTML class names exactly */
.ingredient-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.875rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-sans);
}

.ingredient-item:hover {
    border-color: var(--secondary);
    transform: translateX(6px);
    box-shadow: var(--shadow-sm);
}

.ingredient-item.completed {
    background: #f0f9f4;
    border-color: var(--sage);
}

.ingredient-checkbox {
    width: 32px;
    height: 32px;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.ingredient-item.completed .ingredient-checkbox {
    background: var(--sage);
    border-color: var(--sage);
}

.ingredient-text {
    font-size: 1.063rem;
    font-weight: 500;
    color: var(--text);
}

.ingredient-item.completed .ingredient-text {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

.checkmark {
    color: #fff;
    font-weight: 900;
    font-size: 1rem;
    opacity: 0;
}

.ingredient-item.completed .checkmark {
    opacity: 1;
}

/* Instructions - FIXED CLASS NAMES */
.instructions-fancy {
    list-style: none;
    counter-reset: instr;
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 16px;
}

/* THIS IS THE KEY FIX - Match the HTML class names exactly */
.instruction-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    counter-increment: instr;
}

.instruction-item:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.instruction-item.completed {
    background: #f0f9f4;
    border-color: var(--sage);
}

.step-number-badge {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-serif);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    flex-shrink: 0;
}

.instruction-item.completed .step-number-badge {
    background: var(--sage);
}

.step-content {
    padding-top: 0.25rem;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}

.instruction-item.completed .step-title {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

.step-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-family: var(--font-sans);
}

.instruction-item.completed .step-description {
    text-decoration: line-through;
    opacity: 0.6;
}

.step-checkbox {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.instruction-item.completed .step-checkbox {
    background: var(--sage);
    border-color: var(--sage);
}

/* Nutrition Panel */
.nutrition-panel {
    padding: 3rem;
    background: linear-gradient(135deg, var(--sage), #95a78e);
    color: #fff;
    border-radius: 16px;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.nutrition-title {
    color: #fff;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
}

.nut-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.nut-name {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--font-sans);
}

.nut-amount {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-serif);
}

/* Notes & Tips */
.notes-panel, .tips-panel {
    padding: 2.5rem;
    background: var(--butter);
    border-radius: 16px;
    margin: 3rem 0;
    border-left: 6px solid var(--gold);
}

.notes-heading, .tips-heading {
    color: var(--secondary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.notes-panel ul, .tips-panel ul {
    padding-left: 1.5rem;
}

.notes-panel li, .tips-panel li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text);
    font-family: var(--font-sans);
}

/* FAQ */
.faq-area {
    margin: 5rem 0;
}

.faq-accordion .accordion-item {
    margin-bottom: 1.25rem;
    background: #fff;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-accordion .accordion-button {
    width: 100%;
    background: #fff;
    border: none;
    padding: 1.75rem 2rem;
    text-align: left;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-serif);
    transition: all 0.3s;
}

.faq-accordion .accordion-button:hover {
    background: var(--bg-cream);
    color: var(--secondary);
}

.faq-accordion .accordion-button::after {
    content: '+';
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    transition: transform 0.3s;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--bg-cream);
    color: var(--secondary);
}

.faq-accordion .accordion-button:not(.collapsed)::after {
    transform: rotate(45deg);
}

.faq-accordion .accordion-body {
    padding: 0 2rem 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    font-family: var(--font-sans);
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.author-widget {
    background: #fff;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 2rem;
    border-top: 5px solid var(--gold);
}

.author-circle {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 5px solid var(--gold);
    box-shadow: var(--shadow-md);
    margin: 0 auto 1.5rem;
    object-fit: cover;
    display: block;
}

.author-widget-name {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.author-widget-bio {
    font-size: 0.938rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: var(--font-sans);
}

.author-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--bg-cream);
    border-radius: 50%;
    color: var(--secondary);
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-4px);
}

.related-widget {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.widget-heading {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.related-recipe-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-cream);
    border-radius: 8px;
    transition: transform 0.2s;
}

.related-recipe-item:hover {
    transform: translateX(4px);
}

.related-image-placeholder {
    flex-shrink: 0;
}

.related-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.related-content h5 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.related-content h5 a {
    color: var(--text);
}

.related-rating {
    font-size: 0.875rem;
    color: var(--gold);
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-layout {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar-sticky {
        position: static;
        top: auto;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero-premium {
        padding: 2.5rem 0;
    }
    .hero-metadata {
    flex-direction: column;
    align-items: flex-start;
}

.action-buttons {
    flex-direction: column;
}

.btn-action {
    width: 100%;
    justify-content: center;
}

.recipe-card-premium {
    padding: 2.5rem 1.5rem;
}

.stats-grid {
    grid-template-columns: 1fr;
}

.instruction-item {
    grid-template-columns: auto 1fr;
}

.step-checkbox {
    display: none;
}
}
@media print {
.breadcrumb-compact,
.action-bar-fixed,
.sidebar-sticky,
.pin-btn-hero,
.pin-btn-overlay,
.pin-btn-large {
display: none !important;
}
body {
    padding-top: 0;
}
}
/* Newsletter & Footer Font Fix */
.newsletter-section,
.newsletter-section *,
.footer,
.footer * {
font-family: var(--font-elegant) !important;
}