/* ── LaCucina Recepten – main.css ── */

:root {
    --cream: #faf7f2;
    --ink: #1a1410;
    --muted: #7a6f65;
    --terracotta: #c4613a;
    --terracotta-light: #e8876a;
    --sage: #7a8c6e;
    --gold: #c9a84c;
    --border: #e8e0d5;
    --card-bg: #ffffff;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--ink);
    min-height: 100vh;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terracotta); }

/* ── HEADER ── */
.site-header {
    background: var(--ink);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    border-bottom: 2px solid var(--terracotta);
}
.site-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: .03em;
}
.site-logo a span { color: var(--terracotta); }

.site-nav a, .nav-menu a {
    color: #ccc;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-left: 2rem;
    transition: color .2s;
}
.site-nav a:hover, .nav-menu a:hover { color: var(--terracotta-light); }
.nav-menu { list-style: none; display: flex; }
.nav-menu li { display: inline; }

/* ── HERO ── */
.hero {
    background: var(--ink);
    color: var(--cream);
    padding: 4rem 2rem 3.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(196,97,58,.18) 0%, transparent 70%);
    pointer-events: none;
}
.hero-eyebrow {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--terracotta-light);
    font-weight: 500;
    margin-bottom: 1rem;
}
.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}
.hero h1 em { color: var(--terracotta-light); font-style: italic; }
.hero p { color: #b0a89e; font-size: 1rem; max-width: 480px; margin: 0 auto; line-height: 1.7; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }

/* ── ARCHIEF GRID ── */
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.archive-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; transition: box-shadow .2s; }
.archive-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.1); }
.archive-card-link { text-decoration: none; color: inherit; display: block; }
.archive-card-img { width: 100%; height: 200px; object-fit: cover; }
.archive-card-placeholder { background: linear-gradient(160deg, #c4613a, #2c1608); display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.archive-card-body { padding: 1.2rem; }
.archive-card-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; margin-bottom: .4rem; }
.archive-card-excerpt { font-size: .85rem; color: var(--muted); line-height: 1.5; margin-bottom: .6rem; }
.archive-card-meta { font-size: .75rem; color: var(--muted); }

/* ── RECEPTKAART ── */
.recipe-card { background: var(--card-bg); border-radius: 2px; box-shadow: 0 2px 24px rgba(0,0,0,.07); overflow: hidden; border: 1px solid var(--border); }
.recipe-header-img { width: 100%; height: 380px; object-fit: cover; }
.recipe-image-placeholder { width: 100%; height: 380px; background: linear-gradient(160deg, #c4613a 0%, #8b3a1e 50%, #2c1608 100%); display: flex; align-items: center; justify-content: center; font-size: 6rem; }

.recipe-meta-bar { display: flex; border-bottom: 1px solid var(--border); }
.meta-item { flex: 1; text-align: center; padding: .9rem .5rem; border-right: 1px solid var(--border); }
.meta-item:last-child { border-right: none; }
.meta-label { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: .2rem; }
.meta-value { font-size: .95rem; font-weight: 600; color: var(--ink); }

.recipe-body { padding: 2rem 2.5rem; }
.recipe-title { font-family: 'Playfair Display', serif; font-size: 2rem; line-height: 1.2; margin-bottom: .5rem; }
.recipe-subtitle { color: var(--muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.recipe-tags { margin-bottom: 1rem; }
.tag { display: inline-block; background: var(--cream); border: 1px solid var(--border); border-radius: 2px; font-size: .7rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; padding: .25rem .6rem; color: var(--sage); margin: 0 .3rem .3rem 0; }

/* ── PERSONENSCALER ── */
.scaler-section {
    background: linear-gradient(135deg, #fdf5ec, #faf0e6);
    border: 1px solid #e8d8c8;
    border-radius: 2px;
    padding: 1.4rem 1.6rem;
    margin: 1.8rem 0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.scaler-label { font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); flex-shrink: 0; }
.scaler-controls { display: flex; align-items: center; gap: .6rem; }
.scaler-btn {
    width: 36px; height: 36px;
    border: 2px solid var(--terracotta);
    background: transparent;
    color: var(--terracotta);
    border-radius: 2px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .15s;
    line-height: 1;
}
.scaler-btn:hover { background: var(--terracotta); color: white; }
.scaler-count { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 700; min-width: 2.5rem; text-align: center; color: var(--terracotta); }
.scaler-unit { font-size: .85rem; color: var(--muted); }
.scaler-note { font-size: .78rem; color: var(--muted); flex: 1; font-style: italic; }

/* ── INGREDIËNTEN ── */
h2.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    margin: 2rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--terracotta);
    display: flex;
    align-items: baseline;
    gap: .6rem;
}
.section-icon { font-size: 1rem; }

.ingredients-list { list-style: none; }
.ingredients-list li { display: flex; align-items: baseline; gap: .8rem; padding: .55rem 0; border-bottom: 1px dashed #ede5da; font-size: .92rem; }
.ingredients-list li:last-child { border-bottom: none; }
.ing-amount { font-weight: 700; color: var(--terracotta); min-width: 5rem; text-align: right; font-size: .95rem; transition: all .3s; }
.ing-amount.updated { animation: flash .4s ease; }
@keyframes flash { 0%,100% { color: var(--terracotta); } 50% { color: var(--gold); transform: scale(1.15); } }
.ing-name { color: var(--ink); flex: 1; }
.ing-note { color: var(--muted); font-size: .8rem; font-style: italic; }

/* ── BEREIDINGSWIJZE ── */
.recipe-content ol { padding-left: 0; list-style: none; counter-reset: steps; }
.recipe-content ol li {
    counter-increment: steps;
    display: flex;
    gap: 1.2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .92rem;
    line-height: 1.75;
    color: #3a3028;
}
.recipe-content ol li:last-child { border-bottom: none; }
.recipe-content ol li::before {
    content: counter(steps);
    flex-shrink: 0;
    width: 28px; height: 28px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    margin-top: .1rem;
}
.recipe-content p { margin-bottom: .8rem; font-size: .92rem; line-height: 1.75; }

/* ── ZIJBALK ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 2px; overflow: hidden; box-shadow: 0 1px 12px rgba(0,0,0,.05); }
.sidebar-card-header { background: var(--ink); color: var(--cream); padding: .75rem 1.2rem; font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 500; }
.sidebar-card-body { padding: 1.2rem; }

.recipe-list { list-style: none; }
.recipe-list li { padding: .7rem 0; border-bottom: 1px dashed var(--border); }
.recipe-list li:last-child { border-bottom: none; }
.recipe-list a { text-decoration: none; color: inherit; display: block; }
.recipe-list a:hover .rl-title { color: var(--terracotta); }
.rl-title { font-family: 'Playfair Display', serif; font-size: .95rem; display: block; margin-bottom: .15rem; }
.rl-meta { font-size: .75rem; color: var(--muted); }

.nutrition-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.nutr-item { text-align: center; background: var(--cream); padding: .7rem .4rem; border-radius: 2px; }
.nutr-val { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--terracotta); display: block; }
.nutr-label { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.tips-list { list-style: none; }
.tips-list li { font-size: .85rem; line-height: 1.65; padding: .4rem 0; color: #4a3f35; }
.tips-list li::before { content: '✦ '; color: var(--gold); font-size: .7rem; }

/* ── FOOTER ── */
.site-footer { background: var(--ink); color: #6b6058; text-align: center; padding: 2rem; font-size: .8rem; margin-top: 3rem; border-top: 2px solid var(--terracotta); }
.site-footer span { color: var(--terracotta-light); }

/* ── PAGINERING ── */
.page-numbers { display: inline-block; padding: .4rem .8rem; margin: .2rem; border: 1px solid var(--border); color: var(--ink); text-decoration: none; }
.page-numbers.current { background: var(--terracotta); color: white; border-color: var(--terracotta); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .layout { grid-template-columns: 1fr; }
    .site-nav { display: none; } /* vereenvoudigd voor mobile */
    .recipe-body { padding: 1.2rem; }
}
