/* =================================================================
   Fundraiser — hoofd stylesheet
   Light is default, dark via <html data-theme="dark">
   ================================================================= */

:root {
    --green-900: #0d2f1e;
    --green-700: #12603a;
    --green-500: #02a95c;
    --green-400: #23c274;
    --lime:      #d2f34c;

    --bg:          #ffffff;
    --bg-soft:     #f5f7f5;
    --bg-elevated: #ffffff;
    --surface:     #ffffff;
    --border:      #e2e8e4;
    --border-soft: #eef2ef;

    --text:        #17241c;
    --text-soft:   #55665c;
    --text-muted:  #7c8b83;

    --accent:      var(--green-500);
    --accent-text: #ffffff;
    --pill:        var(--lime);
    --pill-text:   #123524;

    --shadow-sm: 0 1px 2px rgba(16, 40, 28, .06), 0 2px 8px rgba(16, 40, 28, .05);
    --shadow-md: 0 4px 12px rgba(16, 40, 28, .08), 0 12px 32px rgba(16, 40, 28, .07);
    --shadow-lg: 0 18px 50px rgba(16, 40, 28, .16);

    --radius:    16px;
    --radius-lg: 24px;
    --wrap:      1180px;
}

html[data-theme="dark"] {
    --bg:          #0e1512;
    --bg-soft:     #141d19;
    --bg-elevated: #18221d;
    --surface:     #18221d;
    --border:      #2a3831;
    --border-soft: #212d27;

    --text:        #e8f0eb;
    --text-soft:   #a9bcb1;
    --text-muted:  #83968b;

    --accent:      var(--green-400);
    --accent-text: #08130d;
    --pill:        var(--lime);
    --pill-text:   #10261a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, .45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .kicker {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head p { color: var(--text-soft); font-size: 1.05rem; }

/* ---------------------------------------------------------------
   Knoppen
   --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
    font-size: .95rem; font-weight: 700; cursor: pointer; white-space: nowrap;
    transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
    font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--pill); color: var(--pill-text); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #c6ea36; }

.btn-dark { background: var(--green-900); color: #fff; }
html[data-theme="dark"] .btn-dark { background: #24352c; color: #fff; }
.btn-dark:hover { background: var(--green-700); }

.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-soft); }

.btn-ghost { background: transparent; color: var(--text-soft); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); }

.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------------------------------------------------------------
   Topbar
   --------------------------------------------------------------- */
.topbar {
    position: sticky; top: 0; z-index: 60;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.topbar-inner { display: flex; align-items: center; gap: 20px; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--green-900); color: var(--lime); font-size: .8rem; font-weight: 800;
}
html[data-theme="dark"] .brand-mark { background: var(--lime); color: var(--green-900); }
.brand-name { font-size: 1.02rem; }

.topnav { display: flex; gap: 22px; margin-left: auto; }
.topnav a { color: var(--text-soft); font-size: .93rem; font-weight: 600; }
.topnav a:hover { color: var(--text); }

.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topnav + .topbar-actions { margin-left: 0; }

.icon-btn {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
    cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--border-soft); transform: rotate(12deg); }
.icon-moon { display: none; }
html[data-theme="dark"] .icon-sun { display: none; }
html[data-theme="dark"] .icon-moon { display: block; }

.btn-edit { background: var(--green-900); color: var(--lime); padding: 10px 16px; }
html[data-theme="dark"] .btn-edit { background: var(--lime); color: var(--green-900); }
body.editing .btn-edit { background: var(--green-500); color: #fff; }

/* ---------------------------------------------------------------
   Sectie 1 — Hero
   --------------------------------------------------------------- */
.hero {
    position: relative; min-height: min(78vh, 720px);
    display: grid; place-items: center; overflow: hidden;
    text-align: center; color: #fff;
    padding: 90px 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-placeholder {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 22% 28%, rgba(210, 243, 76, .38), transparent 46%),
        radial-gradient(circle at 78% 62%, rgba(35, 194, 116, .42), transparent 52%),
        linear-gradient(140deg, #0d2f1e 0%, #12603a 48%, #0b2419 100%);
}
.hero-placeholder::after {
    content: 'HEADERFOTO — dummy';
    position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
    font-size: .68rem; letter-spacing: .22em; font-weight: 700;
    color: rgba(255, 255, 255, .5);
}
/* de vervaging + donkere sluier over de foto */
.hero-media::after {
    content: ''; position: absolute; inset: -20px;
    backdrop-filter: blur(7px) saturate(1.1);
    background: linear-gradient(180deg, rgba(6, 20, 13, .55) 0%, rgba(6, 20, 13, .62) 55%, rgba(6, 20, 13, .82) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 800px; }
.hero .kicker {
    display: inline-block; padding: 7px 16px; border-radius: 999px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
    font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.2rem); color: rgba(255, 255, 255, .88);
    max-width: 620px; margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero-actions .btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.hero-stats {
    position: relative; z-index: 2; display: flex; gap: 34px; justify-content: center;
    flex-wrap: wrap; margin-top: 46px;
}
.hero-stat { text-align: center; }
.hero-stat b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stat span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, .7); }

.scroll-hint {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
    color: rgba(255, 255, 255, .7); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
    animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

/* ---------------------------------------------------------------
   Sectie 2 — GoFundMe layout
   --------------------------------------------------------------- */
.fund { padding: 56px 0 80px; }
.fund-grid { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: 40px; align-items: start; }

.fund-gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); }
.fund-slides { position: relative; aspect-ratio: 16 / 11; }
.fund-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; }
.fund-slide.active { opacity: 1; }
.fund-slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-dummy {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #dfeee4, #c9e6d5 55%, #eef7ef);
    display: grid; place-items: center; color: #4b6b58; font-weight: 700; letter-spacing: .1em; font-size: .8rem;
}
html[data-theme="dark"] .slide-dummy { background: linear-gradient(135deg, #1b2b23, #223429 55%, #16211b); color: #7f9c8b; }

.fund-nav {
    position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px;
}
.fund-nav button {
    width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: #17241c; display: grid; place-items: center;
    box-shadow: var(--shadow-sm); font-size: 1rem; transition: background .2s ease;
}
.fund-nav button:hover { background: #fff; }
.fund-dots { position: absolute; left: 16px; bottom: 24px; display: flex; gap: 6px; }
.fund-dots span {
    width: 22px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: background .25s ease;
}
.fund-dots span.active { background: #fff; }

.fund-author { display: flex; align-items: center; gap: 10px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
    background: var(--green-700); color: #fff; font-weight: 700; font-size: .82rem; flex: none;
}
.avatar-lg { width: 46px; height: 46px; font-size: 1rem; }
.fund-author strong { font-size: .95rem; }

.protected-badge {
    display: inline-flex; align-items: center; gap: 7px; margin: 18px 0;
    padding: 7px 12px; border-radius: 8px; background: #eaf4fb; color: #14506f;
    font-size: .82rem; font-weight: 600;
}
html[data-theme="dark"] .protected-badge { background: #16303f; color: #9fd2ec; }

.fund-story { border-top: 1px solid var(--border); padding-top: 22px; color: var(--text-soft); font-size: 1.03rem; }
.fund-story h2 { color: var(--text); margin-bottom: 16px; }
.fund-story p { margin-bottom: 1.1em; }

.fund-story-actions { display: flex; gap: 12px; margin-top: 28px; }
.fund-story-actions .btn { flex: 1; }

/* ---- Donatie-kaart rechts ---- */
.fund-side { position: sticky; top: 88px; }
.side-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 26px; box-shadow: var(--shadow-md);
}
.raised-row { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.raised-text b { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; display: block; }
.raised-text b span { font-weight: 500; color: var(--text-muted); font-size: 1rem; }
.raised-text small { color: var(--text-muted); font-size: .86rem; }

.progress-ring { position: relative; width: 66px; height: 66px; flex: none; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .track { stroke: var(--border); }
.progress-ring .bar { stroke: var(--green-500); stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }
.progress-ring em {
    position: absolute; inset: 0; display: grid; place-items: center;
    font-style: normal; font-size: .78rem; font-weight: 700;
}

.side-actions { display: grid; gap: 10px; margin-bottom: 24px; }

.donor-list { display: grid; gap: 2px; }
.donor {
    display: flex; align-items: center; gap: 12px; padding: 9px 0;
}
.donor-info { min-width: 0; }
.donor-info strong { display: block; font-size: .93rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donor-meta { font-size: .84rem; color: var(--text-muted); }
.donor-meta b { color: var(--text); font-weight: 700; }
.donor-tag { color: var(--green-500); font-weight: 600; }

.side-footer { display: flex; gap: 10px; margin-top: 20px; }
.side-footer .btn { flex: 1; }

.side-empty { color: var(--text-muted); font-size: .9rem; padding: 12px 0; }

/* ---- Mobiele GoFundMe-variant ---- */
.fund-mobile-bar { display: none; }

@media (max-width: 980px) {
    .fund-grid { grid-template-columns: 1fr; gap: 26px; }
    .fund-side { position: static; }
    .side-card { padding: 22px; }
    .fund-gallery { border-radius: 20px; }
    .fund-slides { aspect-ratio: 4 / 5; max-height: 62vh; }

    /* zwevende balk onderin, zoals op mobiel bij gofundme */
    .fund-mobile-bar {
        display: block; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 70;
        background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
        box-shadow: var(--shadow-lg); padding: 12px 14px 14px;
        transform: translateY(140%); transition: transform .35s cubic-bezier(.2, .8, .3, 1);
    }
    .fund-mobile-bar.show { transform: translateY(0); }
    .fund-mobile-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .fund-mobile-top .progress-ring { width: 48px; height: 48px; }
    .fund-mobile-top .raised-text b { font-size: 1.15rem; }
    .fund-mobile-top .raised-text small { font-size: .8rem; }
    .fund-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}

@media (max-width: 720px) {
    .topnav { display: none; }
    .brand-name { display: none; }
    .btn-donate-top { display: none; }
    .section { padding: 56px 0; }
    .fund-story-actions { flex-direction: column; }
}

/* ---------------------------------------------------------------
   Sectie 3 — Blog
   --------------------------------------------------------------- */
.blog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.blog-controls { display: flex; gap: 8px; }
.blog-controls button {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--surface); color: var(--text); cursor: pointer; font-size: 1.1rem;
    display: grid; place-items: center; transition: background .2s ease, opacity .2s ease;
}
.blog-controls button:hover { background: var(--bg-soft); }
.blog-controls button[disabled] { opacity: .35; cursor: default; }

.blog-track-wrap { position: relative; }
.blog-track {
    display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 12px; scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.blog-track::-webkit-scrollbar { height: 6px; }
.blog-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.post-card {
    flex: 0 0 330px; scroll-snap-align: start;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border); }
.post-thumb { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-dummy {
    width: 100%; height: 100%; display: grid; place-items: center;
    background: linear-gradient(135deg, #e6f2ea, #d3e9dd); color: #547a65; font-weight: 700; font-size: .75rem; letter-spacing: .1em;
}
html[data-theme="dark"] .thumb-dummy { background: linear-gradient(135deg, #1c2b23, #223229); color: #7ea08c; }
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-date { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 700; }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-card p { color: var(--text-soft); font-size: .93rem; margin: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 12px; }
.tag {
    font-size: .74rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
    background: var(--bg-soft); color: var(--text-soft); border: 1px solid var(--border-soft);
}
.post-more { font-size: .88rem; font-weight: 700; color: var(--accent); }

/* enkele post = brede kaart */
.post-single {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
}
/* vaste verhouding: een staande foto wordt gecentreerd bijgesneden
   in plaats van de hele kaart uit te rekken */
.post-single .post-thumb { position: relative; aspect-ratio: 4 / 3; }
.post-single .post-thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.post-single-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.post-single-body h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.post-single-body p { color: var(--text-soft); font-size: 1.02rem; }
@media (max-width: 860px) {
    .post-single { grid-template-columns: 1fr; }
    .post-single .post-thumb { min-height: 220px; aspect-ratio: 16 / 10; }
    .post-single-body { padding: 26px; }
}

/* ---------------------------------------------------------------
   Sectie 4 — Fotogalerij
   --------------------------------------------------------------- */
.photo-grid {
    columns: 4 240px; column-gap: 16px;
}
.photo-item {
    break-inside: avoid; margin-bottom: 16px; position: relative; cursor: zoom-in;
    border-radius: 14px; overflow: hidden; background: var(--bg-soft);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}
.photo-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.photo-item img { width: 100%; height: auto; }
.photo-item figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .72));
    color: #fff; font-size: .85rem; font-weight: 600;
    opacity: 0; transition: opacity .25s ease;
}
.photo-item:hover figcaption { opacity: 1; }
.photo-dummy { aspect-ratio: var(--ar, 3 / 4); display: grid; place-items: center; color: var(--text-muted); font-size: .78rem; letter-spacing: .1em; font-weight: 700; }

/* modal */
.lightbox {
    position: fixed; inset: 0; z-index: 200; display: none;
    background: rgba(7, 16, 12, .88); backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox-inner { position: relative; max-width: 92vw; max-height: 90vh; }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox-caption { color: #fff; text-align: center; margin-top: 12px; font-size: .92rem; }
.lightbox-close {
    position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: #17241c; border: 0; font-size: 1.3rem; cursor: pointer; line-height: 1;
    display: grid; place-items: center; box-shadow: var(--shadow-md);
}
.lightbox-arrow {
    position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, .16); color: #fff; border: 0; cursor: pointer; font-size: 1.4rem;
    display: grid; place-items: center;
}
.lightbox-arrow:hover { background: rgba(255, 255, 255, .3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------------------------------------------------------------
   Sectie 5 — Hall of Fame
   --------------------------------------------------------------- */
.hof { background: var(--green-900); color: #fff; position: relative; overflow: hidden; }
.hof::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 10%, rgba(210, 243, 76, .16), transparent 45%),
                radial-gradient(circle at 85% 80%, rgba(35, 194, 116, .2), transparent 50%);
}
.hof .wrap { position: relative; z-index: 2; }
.hof .section-head .kicker { color: var(--lime); }
.hof h2 { color: #fff; }
.hof .section-head p { color: rgba(255, 255, 255, .72); }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: end; margin-bottom: 40px; }
.podium-item {
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius-lg); padding: 26px 20px; text-align: center;
    backdrop-filter: blur(6px);
    transition: transform .3s ease, background .3s ease;
}
.podium-item:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .12); }
.podium-1 { order: 2; padding: 38px 20px; background: rgba(210, 243, 76, .14); border-color: rgba(210, 243, 76, .38); }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-rank {
    width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
    font-weight: 800; font-size: .95rem; background: rgba(255, 255, 255, .16);
}
.podium-1 .podium-rank { background: var(--lime); color: var(--green-900); }
.podium-avatar {
    width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center;
    font-size: 1.4rem; font-weight: 800; background: rgba(255, 255, 255, .14); color: #fff;
}
.podium-1 .podium-avatar { width: 76px; height: 76px; font-size: 1.7rem; }
.podium-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.podium-amount { font-size: 1.5rem; font-weight: 800; color: var(--lime); letter-spacing: -.02em; }
.podium-1 .podium-amount { font-size: 1.9rem; }
.podium-when { font-size: .8rem; color: rgba(255, 255, 255, .55); margin-top: 4px; }

.hof-list { display: grid; gap: 10px; }
.hof-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 20px;
    background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px;
    transition: background .2s ease;
}
.hof-row:hover { background: rgba(255, 255, 255, .1); }
.hof-rank { width: 28px; font-weight: 800; color: rgba(255, 255, 255, .45); font-size: .9rem; }
.hof-name { font-weight: 600; flex: 1; }
.hof-amount { font-weight: 800; color: var(--lime); }
.hof-empty { color: rgba(255, 255, 255, .6); }

.hof-cta { text-align: center; margin-top: 44px; }

@media (max-width: 760px) {
    .podium { grid-template-columns: 1fr; }
    .podium-1, .podium-2, .podium-3 { order: 0; }
    .photo-grid { columns: 2 150px; }
}

/* ---------------------------------------------------------------
   Blogpost detailpagina
   --------------------------------------------------------------- */
.post-hero { padding: 50px 0 30px; }
.post-hero .back { color: var(--text-muted); font-size: .9rem; font-weight: 600; }
.post-hero h1 { margin: 18px 0 12px; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.post-hero-meta { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .9rem; flex-wrap: wrap; }
/* Coverfoto: altijd een liggende banner, ook als het origineel staand is.
   De hele foto blijft bewaard - klikken opent hem volledig in de lightbox. */
.post-cover {
    position: relative; border-radius: var(--radius-lg); overflow: hidden; margin: 32px 0;
    background: var(--bg-soft); aspect-ratio: 16 / 10; cursor: zoom-in;
}
.post-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.post-cover .zoom-hint {
    position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 6px;
    padding: 7px 13px; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgba(12, 24, 18, .62); color: #fff; backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .25s ease;
}
.post-cover:hover .zoom-hint { opacity: 1; }
@media (max-width: 700px) {
    .post-cover { aspect-ratio: 4 / 3; }
    .post-cover .zoom-hint { opacity: 1; }
}

.article { max-width: 760px; margin: 0 auto; font-size: 1.09rem; line-height: 1.75; color: var(--text-soft); }
.article h2 { color: var(--text); margin: 1.6em 0 .5em; font-size: 1.7rem; }
.article h3 { color: var(--text); margin: 1.4em 0 .4em; }
.article img { border-radius: 14px; margin: 1.4em 0; }

/* Staande foto's in de tekst zweven mee, zodat de tekst eromheen loopt
   en de post niet één lange kolom foto's wordt. */
.article img.is-portrait {
    float: right; width: min(45%, 300px); height: auto;
    margin: .3em 0 1.2em 1.8em; shape-outside: margin-box;
}
.article img.is-portrait.align-left {
    float: left; margin: .3em 1.8em 1.2em 0;
}
.article::after { content: ''; display: block; clear: both; }

@media (max-width: 640px) {
    .article img.is-portrait,
    .article img.is-portrait.align-left { float: none; width: 100%; margin: 1.4em 0; }
}
.article blockquote {
    margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent);
    font-size: 1.15rem; color: var(--text); font-style: italic;
}
.article ul, .article ol { padding-left: 22px; }
.article a { color: var(--accent); text-decoration: underline; }

/* Fotoraster onder de post: gelijke vierkanten met een gecentreerde uitsnede,
   zodat staande en liggende foto's naast elkaar rustig ogen. */
.post-photos { max-width: 900px; margin: 46px auto 0; }
.post-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.post-photos-grid .photo-item { aspect-ratio: 1 / 1; }
.post-photos-grid .photo-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); }

/* ---------------------------------------------------------------
   Donatieformulier
   --------------------------------------------------------------- */
.donate-page { padding: 46px 0 90px; }
.donate-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .donate-grid { grid-template-columns: 1fr; } }

.form-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px; box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
label.field-label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.input, textarea.input {
    width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 1rem; font-family: inherit;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.help { font-size: .84rem; color: var(--text-muted); margin-top: 6px; }

.tier-list { display: grid; gap: 10px; margin-bottom: 8px; }
.tier {
    display: flex; align-items: center; gap: 14px; padding: 15px 18px; cursor: pointer;
    border: 2px solid var(--border); border-radius: 14px; background: var(--bg);
    transition: border-color .2s ease, background .2s ease, transform .15s ease;
}
.tier:hover { border-color: var(--text-muted); }
.tier input { position: absolute; opacity: 0; pointer-events: none; }
.tier.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.tier-mark {
    width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); flex: none;
    display: grid; place-items: center; transition: border-color .2s ease;
}
.tier.selected .tier-mark { border-color: var(--accent); }
.tier.selected .tier-mark::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.tier-text { flex: 1; }
.tier-text strong { display: block; font-size: 1rem; }
.tier-text span { font-size: .86rem; color: var(--text-muted); }
.tier-amount { font-weight: 800; font-size: 1.05rem; }

.custom-amount { margin-top: 12px; }
.amount-input-wrap { position: relative; }
.amount-input-wrap::before {
    content: '€'; position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    font-weight: 700; color: var(--text-muted);
}
.amount-input-wrap .input { padding-left: 32px; }

.switch-row {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin: 22px 0;
    border: 1px solid var(--border); border-radius: 14px; background: var(--bg-soft); cursor: pointer;
}
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
    position: absolute; inset: 0; background: var(--border); border-radius: 999px; transition: background .2s ease;
}
.switch .slider::before {
    content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s ease; box-shadow: var(--shadow-sm);
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch-text strong { display: block; font-size: .95rem; }
.switch-text span { font-size: .85rem; color: var(--text-muted); }

.donate-summary {
    position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm);
}
.summary-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; margin: 8px 0 4px; }
.summary-note { font-size: .88rem; color: var(--text-muted); }
.summary-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.summary-list li { display: flex; gap: 10px; font-size: .9rem; color: var(--text-soft); }
.summary-list svg { flex: none; color: var(--accent); margin-top: 3px; }

.notice { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .93rem; }
.notice-error { background: #fdecec; color: #8f2020; border: 1px solid #f4bcbc; }
.notice-ok { background: #e8f8ef; color: #146b40; border: 1px solid #a9e3c4; }
html[data-theme="dark"] .notice-error { background: #3a1c1c; color: #ffb3b3; border-color: #5c2b2b; }
html[data-theme="dark"] .notice-ok { background: #143026; color: #9be6bf; border-color: #235c40; }

/* bedankscherm */
.thanks { max-width: 620px; margin: 60px auto; text-align: center; }
.thanks-icon {
    width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 2.4rem;
    animation: pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.thanks p { color: var(--text-soft); }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---------------------------------------------------------------
   Bewerkmodus
   --------------------------------------------------------------- */
.edit-bar {
    position: sticky; top: 68px; z-index: 55;
    display: flex; align-items: center; gap: 10px;
    background: var(--green-900); color: var(--lime);
    padding: 10px 20px; font-size: .88rem; font-weight: 600;
}
.edit-bar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.edit-status { margin-left: auto; opacity: .85; font-weight: 500; }

body.editing .editable {
    outline: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent);
    outline-offset: 4px; border-radius: 4px; cursor: text; transition: outline-color .2s ease, background .2s ease;
}
body.editing .editable:hover { outline-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
body.editing .editable:focus { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
body.editing .hero .editable:hover, body.editing .hof .editable:hover { background: rgba(255, 255, 255, .12); }
.editable.saved { animation: flashSaved 1s ease; }
@keyframes flashSaved { 0%, 30% { background: color-mix(in srgb, var(--green-400) 35%, transparent); } }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-text { margin: 0; color: var(--text-muted); font-size: .9rem; }
.footer-links { display: flex; gap: 18px; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.footer-links a:hover { color: var(--accent); }

body { padding-bottom: env(safe-area-inset-bottom); }
@media (max-width: 980px) { .site-footer { padding-bottom: 120px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
}
