/* Kringo-huisstijl: één vaste look in zwart en goud. Pas kleuren alleen hier aan. */
:root {
  --bg: #0b0a09;
  --surface: #17140f;
  --surface-2: #1f1b14;
  --line: #2c261d;
  --fg: #f4eee3;
  --muted: #a69b88;
  --accent: #d9a955;
  --accent-soft: #2a2216;
  --on-gold: #1a1308;
  --danger: #e2735f;
  --ok: #8fc48a;
  --gold: linear-gradient(135deg, #f3d594 0%, #d9a955 45%, #a8792f 100%);
  --font-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Kop en voet ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 10, 9, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.01em;
  background: var(--gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav { display: flex; gap: 8px; align-items: center; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-radius: 999px; }
.nav a:hover { color: var(--fg); }
.nav a.cta { background: var(--gold); color: var(--on-gold); padding: 8px 14px; }

.site-footer { margin-top: auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding-block: 20px calc(20px + env(safe-area-inset-bottom, 0px)); }

main { flex: 1; }

/* ---------- Teksten ---------- */
.eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.hero { padding-block: 28px 8px; }
.hero h1 { font-weight: 800; font-size: clamp(30px, 8vw, 46px); line-height: 1.05; margin: 8px 0 10px; }
.gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); margin: 0; max-width: 60ch; }
.notice { display: inline-block; margin-top: 12px; font-size: 13px; background: var(--accent-soft); color: var(--fg); padding: 5px 12px; border-radius: 999px; }

/* ---------- Filters ---------- */
.filters { position: sticky; top: 57px; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 12px; }
.filter-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row + .filter-row { margin-top: 8px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--fg);
  cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--gold); border-color: transparent; color: var(--on-gold); font-weight: 600; }
.chip.small { font-size: 13px; padding: 5px 11px; }
.select {
  font: inherit; font-size: 14px; color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 12px;
}
.link-button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); cursor: pointer; }

/* ---------- Lijst en kaarten ---------- */
.list-section { padding-block: 18px 40px; }
.count { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.groups { display: grid; gap: 26px; }
.day-label { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--accent); margin: 0 0 10px; }
.cards { display: grid; gap: 12px; }
.card {
  display: grid; grid-template-columns: 76px 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: border-color 0.15s;
}
.card:hover { border-color: #4a3e2b; }
.stub {
  background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 6px; position: relative; text-align: center;
}
.stub::after { content: ""; position: absolute; right: -1px; top: 10px; bottom: 10px; border-right: 2px dashed var(--surface); }
.stub .dow, .stub .mon { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.stub .day { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--accent); font-variant-numeric: tabular-nums; }
.card-body { padding: 14px 16px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card-body h3 { font-weight: 600; font-size: 17px; line-height: 1.25; }
.meta { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--fg); }
.tag.pending { background: transparent; border: 1.5px dashed var(--muted); color: var(--muted); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.pill { font-size: 13px; font-weight: 700; color: var(--accent); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--fg); font-family: var(--font-display); margin-bottom: 4px; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  padding: 12px 20px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--gold); color: var(--on-gold);
}
.btn.outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.quiet { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn.danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn.sm { font-size: 14px; padding: 8px 14px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- Evenementpagina ---------- */
.detail { padding-block: 22px 40px; display: grid; gap: 20px; }
.back { font-size: 14px; color: var(--muted); text-decoration: none; }
.detail h1 { font-weight: 800; font-size: clamp(28px, 7vw, 40px); line-height: 1.1; }
.facts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--surface); padding: 12px 16px; display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.fact dt { color: var(--muted); font-size: 14px; }
.fact dd { margin: 0; font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.description { color: var(--fg); max-width: 62ch; margin: 0; white-space: pre-line; }
.source { font-size: 13px; color: var(--muted); }

/* ---------- Formulieren ---------- */
.form { display: grid; gap: 18px; padding-block: 18px 48px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 15px; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .textarea {
  font: inherit; color: var(--fg); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; width: 100%;
}
.input:focus, .textarea:focus { border-color: var(--accent); outline: none; }
.textarea { min-height: 110px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.check-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.check-chips label { position: relative; }
.check-chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.check-chips span { display: inline-block; font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); }
.check-chips input:checked + span { background: var(--gold); border-color: transparent; color: var(--on-gold); font-weight: 600; }
.check-chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.group-label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.inline-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-box { background: #2a1512; border: 1px solid #5a2a22; color: #f2c1b7; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.success-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.field-error { color: var(--danger); font-size: 13px; }

/* ---------- Beheer ---------- */
.admin { padding-block: 22px 48px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.admin-item { overflow-wrap: anywhere; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; }
.admin-item .row { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-item small { color: var(--muted); }
.login { max-width: 360px; display: grid; gap: 12px; }

@media (max-width: 520px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav a:not(.cta) { display: none; }
  .fact { grid-template-columns: 80px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* =========================================================
   Meer leven: radarpuls, uitgelicht, kleuren per soort, posters
   ========================================================= */

/* Kop met gloed en pulserende radarringen */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-band .hero { position: relative; z-index: 1; padding-block: 30px 26px; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 300px at 92% 10%, rgba(217, 169, 85, 0.22), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, rgba(232, 85, 58, 0.14), transparent 70%),
    radial-gradient(300px 220px at 60% 110%, rgba(155, 93, 229, 0.12), transparent 70%);
}
.radar-pulse { position: absolute; top: -70px; right: -70px; width: 300px; height: 300px; pointer-events: none; }
.radar-pulse span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(217, 169, 85, 0.45);
  transform: scale(0.35);
}
.radar-pulse span:nth-child(2) { transform: scale(0.65); opacity: 0.7; }
.radar-pulse span:nth-child(3) { transform: scale(0.95); opacity: 0.4; }
@media (prefers-reduced-motion: no-preference) {
  .radar-pulse span { animation: radar 4.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
  .radar-pulse span:nth-child(2) { animation-delay: -1.5s; }
  .radar-pulse span:nth-child(3) { animation-delay: -3s; }
  @keyframes radar {
    0% { transform: scale(0.25); opacity: 0.9; }
    100% { transform: scale(1.05); opacity: 0; }
  }
}
.stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stats span {
  font-size: 13px; color: var(--muted); padding: 6px 12px; border-radius: 999px;
  background: rgba(23, 20, 15, 0.8); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.stats b { color: var(--fg); font-weight: 700; }

/* Uitgelicht: grote posterkaarten om doorheen te swipen */
.featured { padding-block: 22px 6px; }
.featured-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.featured-head h2 { font-size: 20px; font-weight: 800; }
.featured-head .hint { font-size: 13px; color: var(--muted); }
.featured-row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-left: max(16px, calc((100% - 760px) / 2 + 16px), env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: 4px;
  scroll-padding-inline: max(16px, env(safe-area-inset-left, 0px));
}
.featured-row::-webkit-scrollbar { display: none; }
.featured-card {
  flex: none; width: 220px; scroll-snap-align: start; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}
.featured-card:hover { transform: translateY(-2px); border-color: #4a3e2b; }
.featured-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; }

/* Posters: echte flyer of automatisch gemaakt */
.poster { position: relative; overflow: hidden; background: #120f0b; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-card { aspect-ratio: 4 / 5; }
.poster-hero { border-radius: 18px; border: 1px solid var(--line); aspect-ratio: 16 / 10; max-height: 520px; }
.poster-hero img { object-fit: contain; background: #0b0a09; }
.poster-generated {
  background:
    radial-gradient(circle at var(--gx, 85%) var(--gy, 15%), color-mix(in srgb, var(--c1) 70%, transparent) 0%, transparent 55%),
    radial-gradient(circle at 0% 100%, color-mix(in srgb, var(--c2) 45%, transparent) 0%, transparent 55%),
    linear-gradient(160deg, #1a150f 0%, #0b0a09 70%);
}
.poster-rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster-rings circle { fill: none; stroke: #e9c27a; stroke-opacity: 0.35; stroke-width: 1.2; }
.poster-rings circle:nth-child(n + 3) { stroke-opacity: 0.18; }
.poster-text {
  position: absolute; inset: auto 0 0 0; padding: 16px; display: grid; gap: 6px;
  background: linear-gradient(to top, rgba(11, 10, 9, 0.92) 30%, transparent);
}
.poster-date { display: inline-flex; align-items: baseline; gap: 8px; }
.poster-date b { font-family: var(--font-display); font-weight: 800; font-size: 34px; line-height: 1; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.poster-date span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--fg); }
.poster-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.15; color: #fff; text-wrap: balance; }
.poster-hero .poster-title { font-size: clamp(22px, 6vw, 32px); }
.poster-hero .poster-date b { font-size: 46px; }
.poster-venue { font-size: 13px; color: #d8cfbf; }

/* Kleur per soort: stipjes, labels en een randje op de kaart */
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c1, var(--accent)); flex: none; }
.chip[aria-pressed="true"] .dot { background: var(--on-gold); }
.tag {
  background: color-mix(in srgb, var(--c1, #d9a955) 20%, #17140f);
  border: 1px solid color-mix(in srgb, var(--c1, #d9a955) 40%, transparent);
}
.tag.pending { background: transparent; border: 1.5px dashed var(--muted); }
.card .stub { box-shadow: inset 0 3px 0 var(--c1, var(--accent)); }
.card.has-flyer { grid-template-columns: 76px 1fr 84px; }
.card-flyer { border-left: 1px solid var(--line); background: #120f0b; }
.card-flyer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card { transition: border-color 0.15s, transform 0.15s; }
.card:active { transform: scale(0.99); }

/* Flyer uploaden in het formulier */
.flyer-picker { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-top: 4px; }
.flyer-empty, .flyer-preview {
  width: 96px; height: 120px; border-radius: 12px; border: 1.5px dashed var(--line);
  display: grid; place-items: center; color: var(--muted); background: var(--surface); object-fit: cover;
}
.flyer-preview { border-style: solid; }
.flyer-picker > * { min-width: 0; }
.file-input { font: inherit; font-size: 14px; color: var(--muted); width: 100%; max-width: 100%; }
.file-input::file-selector-button {
  font: inherit; font-weight: 700; font-size: 14px; margin-right: 10px; cursor: pointer;
  padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--accent); background: transparent; color: var(--accent);
}

/* Beheer */
.admin-flyer { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.admin-flyer img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

@media (max-width: 420px) {
  .card.has-flyer { grid-template-columns: 70px 1fr 70px; }
  .featured-card { width: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-card:hover { transform: none; }
}
/* Op de evenementpagina staat de titel al onder de poster: toon daar alleen de datum. */
.poster-hero.poster-generated { aspect-ratio: 16 / 7; }
.poster-hero.poster-generated .poster-title,
.poster-hero.poster-generated .poster-venue { display: none; }

/* PHP-versie: verbergen met het hidden-attribuut, ook bij kaarten en groepen */
[hidden] { display: none !important; }
.btn.disabled { opacity: 0.5; pointer-events: none; }
code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.empty a { color: var(--accent); }
.input:disabled { opacity: 0.5; }
