/* RecetteDuJour.fr - Complete Design with Recipe Page */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: #F8FAFC;
    color: #1E293B;
    line-height: 1.6;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* SKIP LINK */
.skip-link { position: absolute; top: -100px; left: 0; background: #DC2626; color: #fff; padding: 8px 16px; z-index: 1000; }
.skip-link:focus { top: 0; }

/* HEADER */
.site-header {
    background: #fff;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #DC2626;
}

.logo-icon { font-size: 1.75rem; }
.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a { color: #64748B; font-weight: 500; transition: color 0.2s; }
.nav-menu a:hover { color: #DC2626; }
.nav-toggle, .dropdown, .search-form { display: none; }

/* HERO */
.hero {
    background: linear-gradient(135deg, #DC2626 0%, #F97316 100%);
    padding: 80px 0;
    text-align: center;
}

.hero h1 { color: #fff; font-size: 3rem; margin-bottom: 16px; }
.hero-subtitle { color: rgba(255,255,255,0.9); font-size: 1.25rem; margin-bottom: 32px; }

.hero-stats { display: flex; justify-content: center; gap: 64px; margin-bottom: 40px; }
.stat-number { display: block; font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700; color: #fff; }
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 1px; }

.hero-search {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 100px;
    padding: 6px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 16px 24px;
    font-size: 1rem;
    background: transparent;
    font-family: inherit;
}

.hero-search input:focus { outline: none; }

.hero-search button {
    background: #1E293B;
    color: #fff;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search button:hover { background: #0F172A; }

/* SECTIONS */
.section { padding: 80px 0; }
.section--categories, .section--about { background: #fff; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 { font-size: 2rem; color: #1E293B; }

.see-all {
    color: #DC2626;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.see-all:hover { text-decoration: underline; }

/* RECIPE GRID */
.recipe-grid {
    display: grid;
    gap: 24px;
}

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

/* RECIPE CARD */
.recipe-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.recipe-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recipe-card__image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    background: #F1F5F9;
}

.recipe-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-card__difficulty {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.recipe-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.recipe-card__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1E293B;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.recipe-card__description {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.recipe-card__meta {
    display: flex;
    gap: 16px;
    font-size: 0.8125rem;
    color: #94A3B8;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #F1F5F9;
}

.recipe-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* CATEGORY GRID */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-card {
    background: #F8FAFC;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.category-card:hover {
    background: #DC2626;
    border-color: #DC2626;
}

.category-card:hover .category-icon,
.category-card:hover h3,
.category-card:hover .category-count { color: #fff; }

.category-icon { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.category-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 4px; color: #1E293B; transition: color 0.2s; }
.category-count { font-size: 0.8125rem; color: #64748B; transition: color 0.2s; }

/* ABOUT */
.about-content { max-width: 640px; margin: 0 auto; text-align: center; }
.about-content h2 { font-size: 2rem; margin-bottom: 24px; }
.about-content p { color: #64748B; font-size: 1.0625rem; margin-bottom: 16px; }

/* ======================= */
/* RECIPE PAGE STYLES      */
/* ======================= */

.recipe-page {
    background: #fff;
}

/* Breadcrumb */
.breadcrumb {
    background: #F8FAFC;
    padding: 16px 0;
    font-size: 0.875rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #94A3B8;
}

.breadcrumb a { color: #64748B; }
.breadcrumb a:hover { color: #DC2626; }
.breadcrumb [aria-current="page"] { color: #1E293B; font-weight: 500; }

/* Recipe Header */
.recipe-header {
    background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%);
    padding: 48px 0;
}

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

.recipe-category {
    display: inline-block;
    background: #DC2626;
    color: #fff;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.recipe-header h1 {
    font-size: 2.5rem;
    color: #1E293B;
    margin-bottom: 16px;
    line-height: 1.2;
}

.recipe-description {
    font-size: 1.125rem;
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.7;
}

/* Recipe Meta Grid */
.recipe-meta {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.recipe-meta__item {
    text-align: center;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.recipe-meta__item .icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.recipe-meta__item .label {
    font-size: 0.75rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.recipe-meta__item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

/* Badges */
.recipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge--halal { background: #DCFCE7; color: #166534; }
.badge--pork-free { background: #FEE2E2; color: #991B1B; }
.badge--alcohol-free { background: #FEF3C7; color: #92400E; }

/* Recipe Image */
.recipe-header__image {
    position: relative;
}

.recipe-header__image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.recipe-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FED7AA, #FDBA74);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* Recipe Content */
.recipe-content {
    padding: 64px 0;
}

.recipe-content > .container > .recipe-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    align-items: start;
}

/* Ingredients Card */
.ingredients-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: sticky;
    top: 96px;
}

.ingredients-card h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: #1E293B;
}

.servings-note {
    font-size: 0.875rem;
    color: #64748B;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 2px solid #F1F5F9;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    padding: 12px 0;
    border-bottom: 1px solid #F1F5F9;
}

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

.ingredients-list label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9375rem;
}

.ingredients-list input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #DC2626;
    cursor: pointer;
}

.ingredients-list input:checked + span {
    text-decoration: line-through;
    color: #94A3B8;
}

/* Instructions */
.recipe-instructions {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.recipe-instructions h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    color: #1E293B;
}

.instructions-list {
    list-style: none;
    counter-reset: step;
}

.instructions-list li {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #F1F5F9;
}

.instructions-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #DC2626, #F97316);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.instructions-list p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #475569;
    padding-top: 8px;
}

/* Recipe Tips */
.recipe-tips {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}

.recipe-tips h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: #92400E;
}

.recipe-tips p {
    color: #78350F;
    line-height: 1.7;
}

/* Recipe Actions */
.recipe-actions {
    padding: 32px 0;
    background: #F8FAFC;
}

.recipe-actions .container {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: inherit;
}

.btn--print {
    background: #fff;
    color: #1E293B;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn--print:hover {
    background: #1E293B;
    color: #fff;
}

.btn--share {
    background: #DC2626;
    color: #fff;
}

.btn--share:hover {
    background: #B91C1C;
}

/* Related Recipes */
.section--related {
    background: #F8FAFC;
    padding: 64px 0;
}

.section--related h2 {
    font-size: 1.75rem;
    margin-bottom: 32px;
    text-align: center;
}

/* FOOTER */
.site-footer {
    background: #1E293B;
    color: #fff;
    padding: 64px 0 32px;
}

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

.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { color: #94A3B8; font-size: 0.9375rem; line-height: 1.7; }

.footer-links h3 { font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links a { color: #94A3B8; display: block; padding: 8px 0; font-size: 0.9375rem; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 32px;
    text-align: center;
    color: #64748B;
    font-size: 0.875rem;
}

.halal-notice { color: #22C55E; margin-top: 8px; }

/* PRINT STYLES */
@media print {
    .site-header, .site-footer, .breadcrumb, .recipe-actions, .section--related, .recipe-badges { display: none !important; }
    .recipe-header { background: none !important; padding: 20px 0; }
    .recipe-header__content { grid-template-columns: 1fr; }
    .recipe-content > .container > .recipe-grid { grid-template-columns: 1fr; }
    .ingredients-card, .recipe-instructions { box-shadow: none; border: 1px solid #ddd; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .recipe-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .category-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-header__content { grid-template-columns: 1fr; }
    .recipe-header__image { order: -1; max-width: 500px; margin: 0 auto; }
    .recipe-meta { grid-template-columns: repeat(3, 1fr); }
    .recipe-content > .container > .recipe-grid { grid-template-columns: 1fr; }
    .ingredients-card { position: static; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 2.25rem; }
    .hero-stats { gap: 32px; }
    .stat-number { font-size: 2rem; }
    .section { padding: 60px 0; }
    .section-header { flex-direction: column; gap: 16px; }
    .recipe-grid--3, .recipe-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .nav-menu { display: none; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .recipe-header h1 { font-size: 2rem; }
    .recipe-meta { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.75rem; }
    .hero-search { flex-direction: column; border-radius: 16px; padding: 8px; }
    .hero-search input { text-align: center; padding: 14px; }
    .hero-search button { border-radius: 12px; }
    .recipe-grid--3, .recipe-grid--4 { grid-template-columns: 1fr; gap: 16px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .recipe-header { padding: 32px 0; }
    .recipe-header h1 { font-size: 1.75rem; }
    .recipe-meta { grid-template-columns: 1fr 1fr; gap: 12px; }
    .recipe-meta__item { padding: 12px; }
    .ingredients-card, .recipe-instructions { padding: 24px; }
    .instructions-list li { flex-direction: column; gap: 16px; }
    .recipe-actions .container { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}