/* RecettePainPerdu - Main Stylesheet
 * Color Palette: Gold tones inspired by Offrirmieux
 */

/* ========================================
   CSS Variables
======================================== */
:root {
    /* Gold Color Palette */
    --gold: #b8860b;
    --gold-light: #d4a432;
    --gold-dark: #996515;
    --gold-darker: #7a5012;

    /* Neutrals */
    --white: #ffffff;
    --black: #1a1a1a;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;

    /* Semantic Colors */
    --success: #16a34a;
    --error: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --card-radius: 16px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ========================================
   Reset & Base
======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--gold-dark);
}

/* ========================================
   Layout
======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray-500);
}

.section-footer {
    text-align: center;
    margin-top: 48px;
}

/* ========================================
   Header & Navigation
======================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 32px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input {
    padding: 8px 16px;
    border: 1px solid var(--gray-300);
    border-radius: 100px;
    font-size: 14px;
    width: 180px;
    transition: border-color 0.2s, width 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--gold);
    width: 220px;
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-search {
        width: 100%;
    }

    .search-input {
        width: 100%;
    }
}

/* ========================================
   Buttons
======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-block {
    width: 100%;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: 100px 0;
    text-align: center;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--gold);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray-500);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }
}

/* ========================================
   Categories
======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.categories-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--card-radius);
    padding: 32px 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.category-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.category-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.category-description {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.category-count {
    font-size: 13px;
    color: var(--gold);
    font-weight: 500;
}

/* ========================================
   Recipe Cards
======================================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.recipes-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.recipe-card {
    background: var(--white);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.recipe-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.recipe-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recipe-card-image {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--gray-100);
    overflow: hidden;
}

.recipe-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-card-image img {
    transform: scale(1.05);
}

.recipe-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 64px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.recipe-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-700);
}

.recipe-card-content {
    padding: 20px;
}

.recipe-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.3;
}

.recipe-card-excerpt {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.recipe-card-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ========================================
   Recipe Detail
======================================== */
.recipe-detail {
    padding-bottom: 60px;
}

.recipe-hero {
    background: var(--gray-50);
    padding: 40px 0;
}

.recipe-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.recipe-hero-image {
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.recipe-hero-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.recipe-hero-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    font-size: 80px;
}

.recipe-category-tag {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    text-decoration: none;
}

.recipe-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.2;
    margin-bottom: 24px;
}

.recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.recipe-meta-item {
    text-align: center;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
}

.meta-icon {
    font-size: 24px;
    display: block;
    margin-bottom: 8px;
}

.meta-label {
    font-size: 12px;
    color: var(--gray-500);
    display: block;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
}

.recipe-difficulty {
    font-size: 14px;
}

.difficulty-value {
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
}

.difficulty-facile {
    background: #dcfce7;
    color: var(--success);
}

.difficulty-moyen {
    background: #fef3c7;
    color: var(--warning);
}

.difficulty-difficile {
    background: #fee2e2;
    color: var(--error);
}

@media (max-width: 900px) {
    .recipe-hero-grid {
        grid-template-columns: 1fr;
    }

    .recipe-title {
        font-size: 32px;
    }

    .recipe-meta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Recipe Content */
.recipe-content {
    padding-top: 48px;
}

.recipe-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
}

@media (max-width: 900px) {
    .recipe-content-grid {
        grid-template-columns: 1fr;
    }

    .recipe-sidebar {
        order: -1;
    }
}

.recipe-section {
    margin-bottom: 48px;
}

.recipe-section h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
}

/* Ingredients */
.ingredients-list {
    list-style: none;
}

.ingredient-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.ingredient-quantity {
    font-weight: 600;
    color: var(--gold);
    min-width: 100px;
}

.ingredient-note {
    color: var(--gray-500);
    font-size: 14px;
}

/* Steps */
.steps-list {
    list-style: none;
    counter-reset: step;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.step-title {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
}

.step-instruction {
    color: var(--gray-700);
    line-height: 1.7;
}

.step-tip {
    margin-top: 12px;
    padding: 12px;
    background: var(--gray-50);
    border-radius: 8px;
    font-size: 14px;
    color: var(--gold-dark);
}

/* Tips */
.tips-list {
    list-style: none;
}

.tip-item {
    padding: 12px 16px;
    background: var(--gray-50);
    border-left: 4px solid var(--gold);
    margin-bottom: 12px;
    border-radius: 0 8px 8px 0;
}

/* Equipment */
.equipment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
}

.equipment-item {
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: 100px;
    font-size: 14px;
}

/* FAQ */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    cursor: pointer;
    background: var(--gray-50);
}

.faq-question:hover {
    background: var(--gray-100);
}

.faq-answer {
    padding: 16px 20px;
    color: var(--gray-600);
}

/* Sidebar */
.sidebar-card {
    background: var(--gray-50);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--black);
}

.nutrition-list {
    display: grid;
    gap: 12px;
}

.nutrition-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-200);
}

.nutrition-item dt {
    color: var(--gray-600);
}

.nutrition-item dd {
    font-weight: 600;
}

/* ========================================
   Breadcrumb
======================================== */
.breadcrumb {
    background: var(--gray-50);
    padding: 16px 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
}

.breadcrumb-list li::after {
    content: '›';
    margin-left: 8px;
    color: var(--gray-400);
}

.breadcrumb-list li:last-child::after {
    display: none;
}

.breadcrumb-list a {
    color: var(--gray-500);
}

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

/* ========================================
   Page Header
======================================== */
.page-header {
    background: linear-gradient(135deg, var(--gray-50), var(--white));
    padding: 60px 0;
    text-align: center;
}

.page-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
}

.page-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.page-subtitle {
    font-size: 18px;
    color: var(--gray-500);
}

.page-count {
    font-size: 14px;
    color: var(--gold);
    margin-top: 12px;
}

/* ========================================
   Search
======================================== */
.search-form-large {
    display: flex;
    gap: 12px;
    max-width: 600px;
    margin: 24px auto 0;
}

.search-input-large {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 100px;
    transition: border-color 0.2s;
}

.search-input-large:focus {
    outline: none;
    border-color: var(--gold);
}

.results-count {
    margin-bottom: 24px;
    color: var(--gray-500);
}

.search-suggestions {
    text-align: center;
}

.suggestions-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.suggestion-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gray-100);
    border-radius: 100px;
    color: var(--gray-700);
    font-size: 14px;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: var(--gold);
    color: var(--white);
}

/* ========================================
   Pagination
======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
}

.pagination-link {
    padding: 12px 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: all 0.2s;
}

.pagination-link:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination-info {
    color: var(--gray-500);
    font-size: 14px;
}

/* ========================================
   Empty State
======================================== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
}

.empty-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 24px;
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--black);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--gray-500);
    margin-bottom: 24px;
}

/* ========================================
   Error Pages
======================================== */
.error-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.error-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.error-icon {
    font-size: 80px;
    display: block;
    margin-bottom: 16px;
}

.error-title {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 12px;
}

.error-subtitle {
    font-size: 28px;
    color: var(--black);
    margin-bottom: 16px;
}

.error-text {
    color: var(--gray-500);
    margin-bottom: 32px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================
   Content Pages
======================================== */
.content-page {
    max-width: 800px;
    margin: 0 auto;
}

.prose {
    color: var(--gray-700);
    line-height: 1.8;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--black);
    margin-top: 40px;
    margin-bottom: 16px;
}

.prose h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-top: 32px;
    margin-bottom: 12px;
}

.prose p {
    margin-bottom: 16px;
}

.prose ul, .prose ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 8px;
}

.prose .lead {
    font-size: 18px;
    color: var(--gray-600);
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--black), var(--gray-800));
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 16px;
}

.cta-text {
    color: var(--gray-400);
    margin-bottom: 32px;
}

.cta-search {
    display: flex;
    gap: 12px;
}

.cta-search .search-input-large {
    background: var(--white);
}

/* ========================================
   Footer
======================================== */
.footer {
    background: var(--black);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.footer-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
    text-align: center;
    font-size: 14px;
}

/* ========================================
   Flash Messages
======================================== */
.flash-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.flash {
    padding: 16px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: #dcfce7;
    color: var(--success);
}

.flash-error {
    background: #fee2e2;
    color: var(--error);
}

.flash-warning {
    background: #fef3c7;
    color: var(--warning);
}

.flash-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.flash-close:hover {
    opacity: 1;
}

/* ========================================
   Popular Searches / Tags
======================================== */
.popular-searches {
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 100%);
}

.popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.popular-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 140px;
}

.popular-tag:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tag-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tag-text {
    font-weight: 600;
    color: var(--gray-800);
    font-size: 0.95rem;
    text-align: center;
}

/* ========================================
   SEO Content Section
======================================== */
.seo-content {
    background: var(--gray-50);
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (max-width: 768px) {
    .seo-content-grid {
        grid-template-columns: 1fr;
    }
}

.seo-block {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.seo-block h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.seo-block p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.seo-block p:last-child {
    margin-bottom: 0;
}

.seo-block strong {
    color: var(--gray-700);
}

/* ========================================
   CTA Suggestions
======================================== */
.cta-suggestions {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.cta-suggestions span {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.cta-suggestions a {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--white);
    font-size: 0.85rem;
    transition: background 0.2s ease;
}

.cta-suggestions a:hover {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* ========================================
   Category Description
======================================== */
.category-description {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0.5rem 0;
    line-height: 1.4;
}

/* ========================================
   Category SEO Content
======================================== */
.category-seo-content {
    background: var(--gray-50);
}

.seo-content-block {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 800px;
    margin: 0 auto;
}

.seo-content-block h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
}

.seo-content-block p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content-block p:last-child {
    margin-bottom: 0;
}

.seo-content-block strong {
    color: var(--gray-700);
}

/* ========================================
   Other Categories Section
======================================== */
.other-categories {
    text-align: center;
}

.categories-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 25px;
    color: var(--gray-700);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.category-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* ========================================
   Recipe Card Excerpt
======================================== */
.recipe-card-excerpt {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Recipe Date
======================================== */
.recipe-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.recipe-date .date-icon {
    font-size: 1rem;
}

.recipe-date .date-updated {
    color: var(--gray-400);
}

/* ========================================
   Recipe Variations
======================================== */
.recipe-variations .variations-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variation-item {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #fef9e7 0%, #fff8e1 100%);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================================
   Recipe Storage
======================================== */
.recipe-storage .storage-info {
    padding: 1.5rem;
    background: #e8f5e9;
    border-radius: 12px;
    border: 1px solid #c8e6c9;
}

.recipe-storage .storage-info p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* ========================================
   Recipe Mistakes to Avoid
======================================== */
.recipe-mistakes .mistakes-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mistake-item {
    padding: 1rem 1.25rem;
    background: #fff3e0;
    border-left: 4px solid var(--warning);
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

/* ========================================
   Sidebar Enhancements
======================================== */
.jump-card {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.jump-card .btn-primary {
    background: var(--white);
    color: var(--gold-dark);
}

.jump-card .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.jump-card .btn-outline:hover {
    background: var(--white);
    color: var(--gold-dark);
}

.nutrition-note {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wine-card, .serving-card {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}

.wine-card p, .serving-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

.actions-card {
    position: sticky;
    top: 100px;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.share-label {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gray-100);
    transition: transform 0.2s ease, background 0.2s ease;
    font-size: 1rem;
}

.share-btn:hover {
    transform: scale(1.1);
    background: var(--gray-200);
}

/* ========================================
   FAQ Enhancements
======================================== */
.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow);
}

.faq-item[open] {
    border-color: var(--gold);
}

.faq-question {
    padding: 1rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gray-50);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--gold);
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 1rem 1.25rem;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .header, .footer, .nav-search, .breadcrumb, .related-section, .sidebar-card button, .jump-card, .share-buttons, .actions-card {
        display: none !important;
    }

    .recipe-hero-grid {
        grid-template-columns: 1fr;
    }

    .recipe-content-grid {
        grid-template-columns: 1fr;
    }

    .recipe-sidebar {
        page-break-inside: avoid;
    }

    .recipe-section {
        page-break-inside: avoid;
    }
}
