/* SDG huisstijl — Daphne — WK-Pool 2026 (match-based) */
:root {
  --cream: #EBE0CE;
  --cream-2: #F5EFE3;
  --rood: #C9242B;
  --rood-2: #A11C22;
  --wijn: #380215;
  --ink: #221F1F;
  --gold: #C9A14A;
  --ok: #2E7D4F;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Bebas Neue', 'Oswald', 'Impact', sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--wijn);
  margin: 0 0 0.4em;
  line-height: 1.05;
}
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3.5vw, 1.4rem); color: var(--ink); }

.mono { font-family: 'Space Mono', 'JetBrains Mono', monospace; font-size: 0.85em; }

a { color: var(--rood); text-decoration: none; border-bottom: 1px solid currentColor; }
a:hover { color: var(--wijn); }

.wrap { max-width: 760px; margin: 0 auto; padding: 1.25rem; }
.wrap-wide { max-width: 1100px; margin: 0 auto; padding: 1.25rem; }

header.site {
  background: var(--cream-2);
  border-bottom: 2px solid var(--rood);
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
header.site img { width: 40px; height: 40px; border-radius: 50%; }
header.site .titel { display: flex; flex-direction: column; line-height: 1.1; }
header.site .titel strong { font-family: 'Bebas Neue', sans-serif; font-size: 1.2rem; color: var(--wijn); letter-spacing: 0.04em; }
header.site .titel span { font-size: 0.74rem; color: var(--ink); opacity: 0.7; }
header.site nav { margin-left: auto; display: flex; gap: 0.7rem; font-size: 0.85rem; }
header.site nav a { border: none; font-weight: 600; }

.countdown {
  background: var(--wijn);
  color: var(--cream);
  text-align: center;
  padding: 0.85rem 0.8rem;
  border-bottom: 4px solid var(--gold);
}
.countdown .label { font-size: 0.8rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.1em; }
.countdown .clock { font-family: 'Bebas Neue', sans-serif; font-size: clamp(1.5rem, 5vw, 2.4rem); letter-spacing: 0.04em; }
.countdown.over { background: var(--rood); }

.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 161, 74, 0.12), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(201, 36, 43, 0.08), transparent 60%),
    var(--cream);
  padding: 1.2rem 1rem 0.6rem;
  text-align: center;
}
.hero p.tag { margin: 0; font-size: 0.95rem; opacity: 0.8; }
.hero .ball { font-size: 1.6rem; }

.card {
  background: var(--cream-2);
  border: 1px solid rgba(34, 31, 31, 0.12);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.card h2 { margin-top: 0; border-bottom: 2px solid var(--rood); padding-bottom: 0.3rem; display: inline-block; }

label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0.5rem 0 0.2rem; color: var(--wijn); }
input[type=text], input[type=tel], input[type=number], select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid rgba(34,31,31,0.25);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
}
input:focus, select:focus { outline: 2px solid var(--rood); border-color: var(--rood); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.6rem; }
@media (max-width: 520px) { .row-3 { grid-template-columns: 1fr 1fr; } }

/* ===== Collapsible groep/ronde-sectie ===== */
details.fase {
  background: #fff;
  border: 1px solid rgba(34, 31, 31, 0.12);
  border-radius: 10px;
  margin: 0.6rem 0;
  overflow: hidden;
}
details.fase[open] { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
details.fase > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
}
details.fase > summary::-webkit-details-marker { display: none; }
details.fase > summary .titel {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  color: var(--wijn);
  letter-spacing: 0.05em;
}
details.fase > summary .meta { font-size: 0.78rem; opacity: 0.7; }
details.fase > summary .chev::after { content: "▸"; color: var(--rood); font-size: 1rem; transition: transform 0.15s; display: inline-block; }
details.fase[open] > summary .chev::after { transform: rotate(90deg); }
details.fase > summary .vlaggen { font-size: 1.1rem; letter-spacing: 0.15em; }

details.fase > .body { padding: 0.6rem 0.8rem 0.9rem; }

/* ===== Wedstrijd-blok =====
   Layout: links datum-kolom, rechts stack van 2 team-rijen + venue.
   Per team-rij: [vlag] [naam (flex)] [score-input]. Veel ruimte voor namen,
   want WK-teams hebben soms lange namen ("Verenigde Arabische Emiraten"). */
.match {
  display: grid;
  grid-template-columns: 88px 1fr;
  background: var(--rood);
  color: var(--cream);
  border-radius: 8px;
  margin: 0.5rem 0;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}
.match .when {
  background: var(--rood-2);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.4rem 0.3rem;
  text-align: center;
  font-family: 'Space Mono', monospace;
  line-height: 1.15;
}
.match .when .d {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: #fff;
}
.match .when .t { font-size: 0.78rem; opacity: 0.85; }
.match .body {
  padding: 0.5rem 0.7rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.match .team-row {
  display: grid;
  grid-template-columns: 1.6rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.match .team-row .vl { font-size: 1.3rem; line-height: 1; text-align: center; }
.match .team-row .nm {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.match input.sc {
  width: 52px;
  padding: 0.3rem 0.25rem;
  font-size: 1.05rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  -moz-appearance: textfield;
}
.match input.sc::-webkit-outer-spin-button,
.match input.sc::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.match input.sc:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.match .venue {
  font-size: 0.72rem;
  opacity: 0.85;
  font-family: 'Space Mono', monospace;
  margin-top: 0.1rem;
}

@media (max-width: 380px) {
  .match { grid-template-columns: 76px 1fr; }
  .match .team-row { font-size: 0.88rem; }
  .match input.sc { width: 46px; }
}

.btn {
  display: inline-block;
  background: var(--rood);
  color: #fff;
  padding: 0.85rem 1.3rem;
  border: none;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
  border-bottom: none;
}
.btn:hover { background: var(--wijn); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: transparent; color: var(--rood); border: 2px solid var(--rood); }
.btn.secondary:hover { background: var(--rood); color: #fff; }
.btn.wa { background: #25D366; }
.btn.wa:hover { background: #128C7E; }
.btn.full { display: block; width: 100%; text-align: center; }

.alert { padding: 0.8rem 1rem; border-radius: 8px; margin: 1rem 0; }
.alert.error { background: #ffe5e5; border-left: 4px solid var(--rood); color: var(--wijn); }
.alert.ok { background: #e1f5e8; border-left: 4px solid var(--ok); color: var(--ok); }
.alert.info { background: var(--cream-2); border-left: 4px solid var(--gold); }

.tip { font-size: 0.83rem; opacity: 0.75; margin-top: 0.2rem; }

table.list {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.92rem;
}
table.list th, table.list td { padding: 0.55rem 0.7rem; text-align: left; border-bottom: 1px solid rgba(34,31,31,0.08); }
table.list th { background: var(--wijn); color: var(--cream); font-family: 'Bebas Neue', sans-serif; font-weight: 400; letter-spacing: 0.05em; font-size: 0.95rem; }
table.list tr:hover { background: var(--cream-2); }
table.list td.rank { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--rood); width: 2.5rem; }

footer.site {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}

.hide { display: none !important; }

.lock { text-align: center; padding: 2rem 1rem; }
.lock .icon { font-size: 3rem; }

.spotlight {
  background: linear-gradient(135deg, var(--wijn), var(--rood));
  color: var(--cream);
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  margin: 1rem 0;
}
.spotlight h3 { color: var(--cream); }
.spotlight .v { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: 0.04em; }

.progress {
  position: sticky;
  bottom: 0;
  background: var(--cream-2);
  border-top: 2px solid var(--gold);
  padding: 0.6rem 0.9rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}
.progress strong { color: var(--wijn); font-family: 'Bebas Neue', sans-serif; font-size: 1.05rem; }
