/* ============================================
   RECIPE PAGE STYLES - PROFESSIONAL COOKBOOK
   Clean, elegant, publishable
   ============================================ */

/* --- Recipe Page Base --- */
.recipe-page {
    background: #faf9f7;
    color: #2a2a2a;
}

/* --- Recipe Hero --- */
.recipe-hero {
    position: relative;
    height: 60vh;
    min-height: 450px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
}

.recipe-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.recipe-hero .hero-content {
    position: relative;
    z-index: 10;
    padding: var(--space-xl) var(--space-lg);
    max-width: 900px;
}

.recipe-breadcrumb {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.recipe-breadcrumb a {
    color: var(--color-gold);
    transition: color 0.3s ease;
}

.recipe-breadcrumb a:hover {
    color: var(--color-gold-light);
}

.recipe-breadcrumb .separator {
    margin: 0 0.5rem;
    opacity: 0.5;
}

.recipe-title {
    margin-bottom: var(--space-sm);
}

.title-english {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.title-chinese {
    display: block;
    font-family: var(--font-chinese);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-gold);
    margin-top: 0.5rem;
    font-weight: 400;
}

.recipe-subtitle {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-style: italic;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    line-height: 1.6;
}

/* --- Quick Info Bar --- */
.recipe-quick-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    padding: var(--space-lg);
    background: white;
    border-bottom: 1px solid #e8e5e0;
    margin-bottom: var(--space-lg);
}

.info-item {
    text-align: center;
    padding: 0 var(--space-md);
    border-right: 1px solid #e8e5e0;
}

.info-item:last-child {
    border-right: none;
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 0.25rem;
}

.info-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #2a2a2a;
}

.info-value.difficulty-3 {
    color: var(--color-gold);
}

/* --- Recipe Layout --- */
.recipe-content {
    padding: var(--space-lg) 0 var(--space-xl);
}

.recipe-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
    align-items: start;
}

/* --- Main Recipe Column --- */
.recipe-main {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.recipe-section {
    padding: var(--space-lg);
    border-bottom: 1px solid #e8e5e0;
}

.recipe-section:last-child {
    border-bottom: none;
}

.recipe-section h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: #2a2a2a;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-gold);
}

/* --- Origin Story --- */
.origin-story .origin-location {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.origin-story p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: var(--space-sm);
    color: #444;
}

.did-you-know {
    background: #f8f6f3;
    border-left: 4px solid var(--color-gold);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-style: italic;
}

.did-you-know p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

/* --- Ingredients --- */
.ingredient-group {
    margin-bottom: var(--space-lg);
}

.ingredient-group:last-child {
    margin-bottom: 0;
}

.ingredient-group h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #2a2a2a;
    margin-bottom: var(--space-sm);
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e8e5e0;
}

.ingredient-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-list li {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--space-sm);
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0ede8;
    align-items: baseline;
}

.ingredient-list li:last-child {
    border-bottom: none;
}

.amount {
    font-weight: 600;
    color: #2a2a2a;
    font-size: 0.95rem;
}

.ingredient {
    color: #2a2a2a;
    font-size: 1rem;
}

.note {
    grid-column: 2;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin-top: 0.25rem;
}

.note.critical {
    color: var(--chinese-primary);
    font-weight: 500;
    font-style: normal;
}

/* --- Instructions --- */
.instruction-phase {
    margin-bottom: var(--space-xl);
}

.instruction-phase:last-child {
    margin-bottom: 0;
}

.instruction-phase h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--color-gold);
    margin-bottom: var(--space-sm);
}

.phase-intro {
    font-style: italic;
    color: #666;
    margin-bottom: var(--space-md);
}

.instruction-list {
    padding-left: 0;
    margin: 0;
    counter-reset: step-counter;
    list-style: none;
}

.instruction-list li {
    counter-increment: step-counter;
    margin-bottom: var(--space-md);
    padding-left: 3.5rem;
    position: relative;
}

.instruction-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-gold);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
}

.step-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #2a2a2a;
    margin: 0;
}

.chef-tip {
    background: #f8f6f3;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-sm);
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
}

.chef-tip strong {
    color: var(--color-gold);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chef-tip.critical {
    background: #fff5f5;
    border-left: 3px solid var(--chinese-primary);
}

.chef-tip.critical strong {
    color: var(--chinese-primary);
}

/* --- Elevation Section --- */
.elevation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.elevation-list li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid #f0ede8;
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
}

.elevation-list li:last-child {
    border-bottom: none;
}

.elevation-list strong {
    color: var(--color-gold);
}

/* --- Variations --- */
.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.variation-card {
    background: #f8f6f3;
    padding: var(--space-md);
    border-radius: 8px;
}

.variation-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
}

.variation-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* --- Sidebar --- */
.recipe-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: white;
    border-radius: 8px;
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #2a2a2a;
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-gold);
}

.term-list {
    margin: 0;
}

.term-list dt {
    font-weight: 600;
    color: #2a2a2a;
    margin-top: var(--space-sm);
    font-size: 0.95rem;
}

.term-list dt:first-child {
    margin-top: 0;
}

.term-list dd {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

.print-btn {
    width: 100%;
    padding: var(--space-sm);
    background: var(--color-gold);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.print-btn:hover {
    background: var(--color-gold-deep);
}

/* --- Recipe Footer --- */
.recipe-footer {
    background: #2a2a2a;
    color: white;
    padding: var(--space-lg) 0;
    text-align: center;
}

.recipe-footer .footer-nav {
    margin-bottom: var(--space-sm);
}

.recipe-footer .footer-nav a {
    color: var(--color-gold);
    font-size: 0.9rem;
}

.recipe-footer .footer-dedication {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* --- Print Styles --- */
@media print {
    .navbar,
    .recipe-sidebar,
    .recipe-footer {
        display: none;
    }
    
    .recipe-hero {
        height: auto;
        min-height: 0;
        padding: var(--space-md);
        background: white !important;
    }
    
    .hero-image,
    .hero-overlay {
        display: none;
    }
    
    .recipe-hero .hero-content {
        padding: 0;
    }
    
    .recipe-title .title-english {
        color: #2a2a2a;
    }
    
    .recipe-subtitle {
        color: #666;
    }
    
    .recipe-layout {
        display: block;
    }
    
    .recipe-content {
        padding: 0;
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .recipe-layout {
        grid-template-columns: 1fr;
    }
    
    .recipe-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
}

@media (max-width: 768px) {
    .recipe-hero {
        height: 50vh;
        min-height: 350px;
    }
    
    .recipe-hero .hero-content {
        padding: var(--space-lg);
    }
    
    .recipe-quick-info {
        gap: var(--space-sm);
        padding: var(--space-md);
    }
    
    .info-item {
        padding: 0 var(--space-sm);
    }
    
    .recipe-section {
        padding: var(--space-md);
    }
    
    .ingredient-list li {
        grid-template-columns: 100px 1fr;
    }
    
    .instruction-list li {
        padding-left: 3rem;
    }
    
    .instruction-list li::before {
        width: 2rem;
        height: 2rem;
        font-size: 0.9rem;
    }
    
    .recipe-sidebar {
        grid-template-columns: 1fr;
    }
    
    .variations-grid {
        grid-template-columns: 1fr;
    }
}
