/* =============================================================================
   LUXURY MAGAZINE-STYLE RECIPE DESIGN
   Fonts: Cormorant Garamond + Montserrat
   ============================================================================= */

:root {
    --primary: #1a1a1a;
    --secondary: #8b4513;
    --accent: #cd853f;
    --text: #2c2c2c;
    --text-light: #5a5a5a;
    --text-muted: #8a8a8a;
    --bg-cream: #faf9f7;
    --bg-white: #ffffff;
    --border: #e8e6e3;
    --butter: #f6e6d3;
    --sage: #a8b5a1;
    --gold: #d4af37;
    --shadow-sm: 0 2px 12px rgba(0,0,0,.06);
    --shadow-md: 0 6px 24px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.12);
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Montserrat', -apple-system, sans-serif;
}

/* Reset & Base */
*, *::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: var(--bg-white);
    padding-top: 80px;
}

/* Typography */
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.5rem, 6vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

p {
    margin: 0 0 1.5rem;
    line-height: 1.8;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Breadcrumb */
.recipe-breadcrumb {
    background: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '→';
    margin: 0 0.75rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-light);
}

.breadcrumb-list .active {
    color: var(--text);
    font-weight: 600;
}

/* Hero Section */
.recipe-hero {
    background: linear-gradient(to bottom, var(--bg-cream), var(--bg-white));
    padding: 4rem 0 5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.recipe-category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-title {
    margin-bottom: 2rem;
    font-weight: 900;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
    padding: 2rem;
    background: var(--butter);
    border-left: 5px solid var(--gold);
    border-radius: 0 1rem 1rem 0;
    margin: 2rem 0;
}

.hero-description p {
    margin: 0;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    margin-top: 2.5rem;
}

.author-card-mini {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-thumb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}

.author-info-mini {
    display: flex;
    flex-direction: column;
}

.author-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.author-name-mini {
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
}

.rating-badge {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stars-mini {
    display: flex;
    gap: 0.25rem;
    color: var(--gold);
    font-size: 1.25rem;
}

.rating-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.publish-time {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Image */
.hero-image-container {
    position: relative;
}

.hero-image {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1 / 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pin-image-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    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 ease;
}

.pin-image-btn:hover {
    background: #e60023;
    transform: scale(1.05);
}

/* Quick Actions */
.quick-actions {
    background: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.actions-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.action-btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--bg-white);
    border: 2px solid var(--border);
    border-radius: 3rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn-modern:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.action-btn-modern.primary {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-color: var(--secondary);
    color: white;
}

.action-btn-modern.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content Layout */
.main-content {
    padding: 5rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
}

/* Article */
.recipe-main {
    max-width: 900px;
}

.article-intro {
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.9;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(246, 230, 211, 0.3));
    border-left: 6px solid var(--gold);
    border-radius: 0 1.5rem 1.5rem 0;
    font-weight: 500;
}

.article-section {
    margin: 4rem 0;
}

.section-heading {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--gold), transparent);
}

/* Process Images */
.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.process-image {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 1 / 1;
}

.process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pin-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    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 ease;
}

.process-image:hover .pin-overlay {
    opacity: 1;
}

.pin-overlay:hover {
    background: #e60023;
}

/* Kitchen & Pairing Items */
.kitchen-items, .pairing-items {
    display: grid;
    gap: 1.5rem;
}

/* Final Showcase */
.final-showcase {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 4rem 0;
    max-width: 800px;
}

.final-showcase img {
    width: 100%;
    height: auto;
    display: block;
}

.pin-overlay-large {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    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 ease;
}

.final-showcase:hover .pin-overlay-large {
    opacity: 1;
}

.pin-overlay-large:hover {
    background: #e60023;
    transform: scale(1.05);
}

/* Recipe Card Modern */
.recipe-card-modern {
    background: var(--bg-white);
    border-radius: 2rem;
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 6px solid var(--gold);
    margin: 4rem 0;
}

.card-header-modern {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.card-header-modern h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Recipe Stats Bar */
.recipe-stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 2.5rem;
    background: var(--bg-cream);
    border-radius: 1.5rem;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.stat-item svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--primary);
}

/* Recipe Meta */
.recipe-meta-modern {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: var(--butter);
    border-radius: 1rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.recipe-meta-modern span {
    font-weight: 500;
}

.recipe-meta-modern strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Card Sections */
.ingredients-section, .instructions-section {
    margin: 3rem 0;
}

.card-section-title {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.tip-text {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.5rem;
}

/* Ingredients Modern */
.ingredients-modern {
    list-style: none;
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 1.5rem;
}

.ingredient-modern-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ingredient-modern-item:hover {
    border-color: var(--secondary);
    transform: translateX(8px);
    box-shadow: var(--shadow-sm);
}

.ingredient-modern-item.checked {
    background: #f0f9f4;
    border-color: var(--sage);
}

.ingredient-checkbox-modern {
    width: 32px;
    height: 32px;
    border: 3px solid var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ingredient-modern-item.checked .ingredient-checkbox-modern {
    background: var(--sage);
    border-color: var(--sage);
}

.ingredient-text-modern {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
}

.ingredient-modern-item.checked .ingredient-text-modern {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.6;
}

.checkmark-modern {
    color: white;
    font-weight: 900;
    font-size: 1rem;
    opacity: 0;
}

.ingredient-modern-item.checked .checkmark-modern {
    opacity: 1;
}

/* Instructions Modern */
.instructions-modern {
    list-style: none;
    counter-reset: step;
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: 1.5rem;
}

.instruction-modern-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    padding: 2rem;
    margin-bottom: 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    counter-increment: step;
}

.instruction-modern-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.instruction-modern-item.completed {
    background: #f0f9f4;
    border-color: var(--sage);
}

.step-number-modern {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    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-modern-item.completed .step-number-modern {
    background: var(--sage);
}

.step-number-modern::before {
    content: counter(step);
}

.step-content-modern {
    padding-top: 0.25rem;
}

.step-title-modern {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-family: var(--font-serif);
}

.instruction-modern-item.completed .step-title-modern {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

.step-text-modern {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.instruction-modern-item.completed .step-text-modern {
    text-decoration: line-through;
    opacity: 0.6;
}

/* Nutrition Modern */
.nutrition-modern {
    padding: 3rem;
    background: linear-gradient(135deg, var(--sage), #95a78e);
    color: white;
    border-radius: 1.5rem;
    margin: 3rem 0;
    box-shadow: var(--shadow-lg);
}

.nutrition-modern h4 {
    color: white;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-serif);
}

.nutrition-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.nutrition-col {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.nut-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.nut-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-serif);
}

/* Notes & Tips Modern */
.notes-modern, .tips-modern {
    padding: 2.5rem;
    background: var(--butter);
    border-radius: 1.5rem;
    margin: 3rem 0;
    border-left: 6px solid var(--gold);
}

.notes-modern h4, .tips-modern h4 {
    color: var(--secondary);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

.notes-modern ul, .tips-modern ul {
    padding-left: 1.5rem;
}

.notes-modern li, .tips-modern li {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text);
}

/* FAQ Section */
.faq-section {
    margin: 5rem 0;
}

.faq-list {
    max-width: 900px;
}

.faq-item {
    margin-bottom: 1.5rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    background: white;
    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 ease;
}

.faq-question:hover {
    background: var(--bg-cream);
    color: var(--secondary);
}

.faq-question::after {
    content: '+';
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.faq-question.active {
    background: var(--bg-cream);
    color: var(--secondary);
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 2rem 2rem;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Sidebar */
.recipe-sidebar {
    position: sticky;
    top: 180px;
    height: fit-content;
}

.author-card-sidebar {
    background: white;
    padding: 2.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 2rem;
    border-top: 5px solid var(--gold);
}

.author-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid var(--gold);
    box-shadow: var(--shadow-md);
    margin: 0 auto 1.5rem;
    object-fit: cover;
}

.author-name-large {
    font-size: 1.75rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

.author-bio-text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.author-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    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 ease;
}

.social-link:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-4px);
}

.related-sidebar {
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-serif);
}

/* Responsive */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 1fr 320px;
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .content-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .recipe-sidebar {
        position: static;
        top: auto;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .recipe-hero {
        padding: 2rem 0 3rem;
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .quick-actions {
        top: 70px;
    }
    
    .actions-bar {
        flex-direction: column;
    }
    
    .action-btn-modern {
        width: 100%;
        justify-content: center;
    }
    
    .recipe-card-modern {
        padding: 2rem 1.5rem;
    }
    
    .recipe-stats-bar {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

@media print {
    .recipe-breadcrumb,
    .quick-actions,
    .recipe-sidebar,
    .pin-image-btn,
    .pin-overlay,
    .pin-overlay-large {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
}