/* ==========================================================================
   Afscheidsbericht.nl - huisstijl (donker thema)
   ========================================================================== */
:root {
    --bg: #232b40;
    --bg-2: #2f3a56;        /* basiskleur */
    --bg-3: #384366;
    --panel: #2a3350;
    --panel-2: #323d5e;
    --line: #40496b;
    --text: #eef1f8;
    --muted: #a8b0c9;
    --muted-2: #7f88a6;
    --accent: #c9a86a;      /* warm goud, ingetogen */
    --accent-soft: rgba(201, 168, 106, 0.15);
    --danger: #e0736f;
    --success: #7bc4a4;
    --info: #6f9bd8;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --serif: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.1rem; border-radius: var(--radius-sm);
    border: 1px solid transparent; background: var(--bg-3); color: var(--text);
    font: inherit; font-weight: 500; cursor: pointer; transition: .15s ease;
    text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--line); text-decoration: none; }
.btn-primary { background: var(--accent); color: #2a2410; border-color: var(--accent); }
.btn-primary:hover { background: #d8ba81; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(224, 115, 111, .12); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { background: var(--panel-2); }
.btn-sm { padding: .35rem .7rem; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Forms ---------- */
label { display: block; font-size: .9rem; color: var(--muted); margin: 0 0 .35rem; font-weight: 500; }
.field { margin-bottom: 1.25rem; }
.field .hint { font-size: .8rem; color: var(--muted-2); margin-top: .35rem; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=datetime-local], input[type=number], input[type=color], textarea, select {
    width: 100%; padding: .65rem .8rem; background: var(--bg); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit;
    transition: border-color .15s ease;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
input[type=color] { padding: .2rem; height: 44px; cursor: pointer; }
textarea { resize: vertical; min-height: 110px; }
.checkbox { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem; }
.checkbox input { width: auto; margin-top: .25rem; }
.checkbox label { margin: 0; color: var(--text); font-weight: 400; }
.error { color: var(--danger); font-size: .85rem; margin-top: .35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Alerts ---------- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .92rem; font-weight: 500; }
.alert-success { background: rgba(123, 196, 164, .14); border: 1px solid rgba(123, 196, 164, .45); color: var(--success); }
.alert-error { background: rgba(224, 115, 111, .14); border: 1px solid rgba(224, 115, 111, .45); color: var(--danger); }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.badge-published { background: rgba(123, 196, 164, .18); color: var(--success); }
.badge-draft { background: rgba(127, 136, 166, .2); color: var(--muted); }
.badge-scheduled { background: rgba(111, 155, 216, .18); color: var(--info); }
.badge-expired { background: rgba(224, 115, 111, .18); color: var(--danger); }
.badge-pending { background: var(--accent-soft); color: var(--accent); }

/* ---------- Cards / panels ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.panel + .panel { margin-top: 1.5rem; }

/* ---------- Tables ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- Utility ---------- */
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap { gap: 1rem; }
.gap-sm { gap: .5rem; }
.mt { margin-top: 1.5rem; }
.mb { margin-bottom: 1.5rem; }
.text-right { text-align: right; }
.pagination { display: flex; gap: .3rem; margin-top: 1.5rem; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { padding: .4rem .7rem; border-radius: 6px; background: var(--panel-2); font-size: .85rem; }
.pagination .active span { background: var(--accent); color: #2a2410; }

/* ---------- Gate / gecentreerde kaart (login, wachtwoord, verlopen) ---------- */
.gate {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem;
    background:
        radial-gradient(900px 500px at 50% -10%, rgba(201,168,106,.10), transparent 60%),
        linear-gradient(180deg, #232b40 0%, #1c2338 100%);
}
.gate-box {
    max-width: 420px; width: 100%; text-align: center;
    background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 2.75rem 2.25rem; box-shadow: var(--shadow);
}
.gate-box .brandmark {
    width: 54px; height: 54px; margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--accent-soft); color: var(--accent);
    font-size: 1.5rem; border: 1px solid rgba(201,168,106,.35);
}
.gate-box .icon { font-size: 2.5rem; margin-bottom: 1rem; }
.gate-box h1 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: .2rem; }
.gate-box > p { color: var(--muted); }
.gate-box .lead { color: var(--muted); font-size: .95rem; margin-bottom: 0; }
