/* =============================================================
   Quick '20 JO17-1 — "Matchday"
   Zwart-wit met gedempt rood accent · Oswald (koppen) + Inter (lees)
   ============================================================= */

/* ---------- Fonts (zelf-gehost) ---------- */
@font-face { font-family:"Oswald"; font-style:normal; font-weight:500; font-display:swap; src:url("../assets/fonts/oswald-500.woff2") format("woff2"); }
@font-face { font-family:"Oswald"; font-style:normal; font-weight:600; font-display:swap; src:url("../assets/fonts/oswald-600.woff2") format("woff2"); }
@font-face { font-family:"Oswald"; font-style:normal; font-weight:700; font-display:swap; src:url("../assets/fonts/oswald-700.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:400; font-display:swap; src:url("../assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:500; font-display:swap; src:url("../assets/fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:600; font-display:swap; src:url("../assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family:"Inter"; font-style:normal; font-weight:700; font-display:swap; src:url("../assets/fonts/inter-700.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
  --ink:      #0E0F11;
  --ink-2:    #17191d;
  --ink-3:    #212429;
  --paper:    #ffffff;
  --bg:       #f4f4f2;
  --muted:    #6b7078;
  --muted-2:  #9a9ea6;
  --line:     rgba(14,15,17,.10);
  --line-2:   rgba(14,15,17,.06);
  --on-dark:  rgba(255,255,255,.72);
  --line-dark:rgba(255,255,255,.14);
  --accent:   #C4222E;
  --accent-2: #a51b26;

  --head: "Oswald", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 700px;
  --pad: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Sectiekoppen ---------- */
.sec-title {
  font-family: var(--head);
  font-weight: 600;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--ink);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-title::before {
  content: "";
  width: 20px; height: 4px;
  background: var(--accent);
  transform: skewX(-20deg);
  flex: 0 0 auto;
}
.block { padding: 30px 0; }
.block + .block { padding-top: 6px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14,15,17,.90);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  box-shadow: inset 0 -3px 0 var(--accent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 58px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.crest { width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.brand-text { display: flex; align-items: baseline; gap: 8px; line-height: 1; }
.brand-club {
  font-family: var(--head); font-weight: 700; font-size: 1.08rem;
  color: #fff; text-transform: uppercase; letter-spacing: .5px;
}
.brand-team {
  font-family: var(--head); font-weight: 600; font-size: .82rem;
  color: var(--accent); text-transform: uppercase; letter-spacing: 1.5px;
}
.brand-season {
  font-family: var(--head); font-weight: 500; font-size: .68rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(360px, 56vh, 540px);
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-media {
  position: absolute; inset: 0;
  background-image: url("../assets/team.jpg");   /* vervang assets/team.jpg om de foto te wisselen */
  background-size: cover;
  background-position: 50% 28%;
  transform: scale(1.02);
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(14,15,17,.94) 0%, rgba(14,15,17,.66) 44%, rgba(14,15,17,.18) 100%),
    linear-gradient(to top, rgba(14,15,17,.96) 2%, rgba(14,15,17,.28) 46%, rgba(14,15,17,0) 78%);
}
.hero-content {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 40px; padding-bottom: 34px;
  color: #fff;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--head); font-weight: 600;
  font-size: .74rem; text-transform: uppercase; letter-spacing: 2.5px;
  color: #fff; margin: 0 0 16px;
}
.eyebrow .tick { width: 16px; height: 4px; background: var(--accent); transform: skewX(-20deg); }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.eyebrow-row .eyebrow { margin: 0; }

/* thuis/uit pill */
.ha-pill {
  font-family: var(--head); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
}
.ha-pill.thuis { background: var(--accent); color: #fff; }
.ha-pill.uit   { background: #fff; color: var(--ink); }

.hero-title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(2.5rem, 12vw, 3.7rem);
  line-height: .92; letter-spacing: .5px; text-transform: uppercase;
  margin: 0 0 14px; text-wrap: balance;
}
.hero-when {
  font-family: var(--head); font-weight: 500;
  font-size: 1.05rem; letter-spacing: .5px; text-transform: capitalize;
  color: #fff; margin: 0 0 8px;
}
.hero-lead { color: var(--on-dark); font-size: .98rem; margin: 0 0 20px; max-width: 42ch; }
.hero-vs   { color: var(--on-dark); font-size: .92rem; margin: 0 0 20px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.htag {
  font-size: .8rem; color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--line-dark);
  padding: 8px 13px; border-radius: 999px;
}
.htag b { font-family: var(--head); font-weight: 700; color: var(--accent); margin-right: 3px; }

/* matchday info-chips */
.hero-info {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: 12px; overflow: hidden; margin-top: 4px;
}
.hi { background: rgba(20,22,26,.72); padding: 13px 15px; }
.hi-full { grid-column: 1 / -1; }
.hi-label { display: block; font-family: var(--head); font-weight: 500; font-size: .66rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2); margin-bottom: 3px; }
.hi-val { font-size: 1rem; font-weight: 600; color: #fff; }

/* ---------- Programma ---------- */
.sec-note { color: var(--muted); font-size: .9rem; margin: -6px 0 16px; }
.fixtures { list-style: none; margin: 0; padding: 0; }
.fixture {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center; gap: 14px;
  padding: 14px 4px 14px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .15s ease, transform .15s ease;
}
.fixture:first-child { border-top: 1px solid var(--line); }
.fixture::before {
  content: ""; position: absolute; left: -20px; top: 0; bottom: 0;
  width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .18s ease;
}
a.fixture:hover { background: var(--paper); }
a.fixture:hover::before { transform: scaleY(1); }

.fx-marker { text-align: center; }
.fx-date .dow { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.fx-date .dnum { display: block; font-family: var(--head); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--ink); }
.fx-date .mon { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.fx-idx {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  color: var(--muted); background: #ececea;
  border-radius: 9px;
}

.fx-body { min-width: 0; }
.fx-opp { font-family: var(--head); font-weight: 600; font-size: 1.08rem; letter-spacing: .2px; color: var(--ink); }
.fx-meta { font-size: .82rem; color: var(--muted); margin-top: 1px; }

.fx-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.fx-ha {
  font-family: var(--head); font-weight: 600; font-size: .66rem;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 9px; border-radius: 6px;
}
.fx-ha.thuis { background: var(--ink); color: #fff; }
.fx-ha.uit   { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.fx-score { font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--muted-2); letter-spacing: 1px; }
.fx-tbd {
  font-family: var(--head); font-weight: 500; font-size: .66rem;
  text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted-2);
  border: 1px dashed var(--line); padding: 5px 10px; border-radius: 6px;
}

/* ---------- Links ---------- */
.links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.link-btn {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ink); color: #fff;
  padding: 16px 16px; border-radius: 13px;
  position: relative; overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.link-btn::after {
  content: "→"; position: absolute; top: 14px; right: 15px;
  color: var(--accent); font-size: 1.05rem; transition: transform .15s ease;
}
.link-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,15,17,.18); }
.link-btn:hover::after { transform: translateX(3px); }
.lb-main { font-family: var(--head); font-weight: 600; font-size: 1rem; letter-spacing: .3px; }
.lb-sub { font-size: .8rem; color: var(--on-dark); }
.link-btn.ig { box-shadow: inset 3px 0 0 var(--accent); }
.link-btn.disabled { opacity: .55; pointer-events: none; }
.link-btn.disabled::after {
  content: "volgt"; font-family: var(--head); font-weight: 500;
  font-size: .6rem; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--muted-2); top: auto; bottom: 14px; right: 15px;
}

/* ---------- Afspraken ---------- */
.afspraken { margin: 0; padding: 0; list-style: none; counter-reset: reg; }
.afspraken li {
  counter-increment: reg;
  position: relative; padding: 12px 0 12px 40px;
  border-bottom: 1px solid var(--line-2);
  color: #33373d;
}
.afspraken li:last-child { border-bottom: 0; }
.afspraken li::before {
  content: counter(reg, decimal-leading-zero);
  position: absolute; left: 0; top: 11px;
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  color: var(--accent);
}

/* ---------- Selectie ---------- */
.squad {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 8px;
}
.player {
  display: flex; align-items: center; gap: 11px;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 8px 11px;
  transition: border-color .15s ease, transform .15s ease;
}
.player:hover { transform: translateY(-1px); border-color: var(--line); }
.player .num {
  flex: 0 0 auto; width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  border-radius: 8px;
  font-family: var(--head); font-weight: 700; font-size: 1rem;
}
.player .pname { font-weight: 500; font-size: .92rem; }
.player.ghost { border-style: dashed; border-color: var(--line); background: transparent; }
.player.ghost .num { background: #ececea; color: var(--muted-2); }
.player.ghost .pname { color: var(--muted-2); font-style: italic; font-size: .84rem; }
.squad-note { color: var(--muted); font-size: .82rem; margin: 16px 0 8px; }

/* ---------- Staf ---------- */
.staff { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.staff li {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line-2);
  border-radius: 11px; padding: 10px 16px;
}
.s-role { font-family: var(--head); font-weight: 500; font-size: .64rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.s-name { font-family: var(--head); font-weight: 600; font-size: 1.02rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-dark);
  margin-top: 20px; padding: 34px 0 40px;
  border-top: 3px solid var(--accent);
}
.foot-crest {
  position: absolute; right: -18px; bottom: -22px;
  width: 150px; opacity: .06; filter: grayscale(1) brightness(3);
}
.foot-inner { position: relative; display: flex; flex-direction: column; gap: 5px; }
.foot-team { font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.foot-adres { font-size: .82rem; }

/* ---------- Groter scherm ---------- */
/* ---------- Snel naar (externe links onder de landing) ---------- */
.quick-wrap { margin-top: 16px; }
.quicklinks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Vaste grensrechter-oproep ---------- */
.ref-callout {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px;
  padding: 12px 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 11px;
}
.ref-callout .ref-flag { flex: 0 0 auto; color: var(--accent); display: flex; }
.ref-callout .ref-body { min-width: 0; flex: 1; }
.ref-callout .ref-lead {
  font-family: var(--head); font-weight: 600; font-size: .92rem;
  letter-spacing: .2px; color: var(--ink); line-height: 1.2;
}
.ref-callout .ref-lead b { color: var(--accent-2); }
.ref-callout .ref-link {
  flex: 0 0 auto;
  font-family: var(--head); font-weight: 600; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-2); white-space: nowrap;
}
.ref-callout .ref-link:hover { text-decoration: underline; }

/* ---------- Tabbalk ---------- */
.tabsbar {
  position: sticky; top: 57px; z-index: 20;
  background: rgba(244,244,242,.94);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  margin-top: 22px;
}
.tablist { display: flex; gap: 0; }
.tab {
  flex: 1 1 0; min-width: 0;
  appearance: none; background: transparent; border: 0; cursor: pointer;
  font-family: var(--head); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--muted); padding: 16px 6px 14px;
  border-bottom: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 4px; }

/* ---------- Panels ---------- */
.panels { padding-top: 26px; padding-bottom: 8px; min-height: 58vh; }
.panel[hidden] { display: none; }
.panel .sec-title.staf-title { margin-top: 30px; }
.sub-title { font-family: var(--head); font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink); margin: 28px 0 6px; }
.fx-score.gespeeld { color: var(--ink); }

/* ---------- Modal (grensrechter-oproep) ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 22px;
  background: rgba(14,15,17,.66);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  animation: fadein .18s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative; width: 100%; max-width: 430px;
  background: #fff; border-radius: 16px;
  border-top: 5px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  padding: 30px 24px 26px;
  animation: pop .2s ease;
}
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 38px; height: 38px; border: 0; border-radius: 9px;
  background: var(--bg); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.modal-close:hover { background: #e7e7e4; }
.modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px;
  font-family: var(--head); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--ink);
}
.modal-eyebrow .tick { width: 16px; height: 4px; background: var(--accent); transform: skewX(-20deg); }
.modal-flag { color: var(--accent); display: block; margin-bottom: 8px; }
.modal-title {
  font-family: var(--head); font-weight: 700;
  font-size: 1.7rem; line-height: 1.02; text-transform: uppercase;
  letter-spacing: .4px; margin: 0 0 12px;
}
.modal-text { color: #33373d; font-size: .96rem; margin: 0 0 20px; }
.modal-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff;
  font-family: var(--head); font-weight: 600; font-size: .95rem;
  letter-spacing: .3px; text-transform: uppercase;
  padding: 13px 20px; border-radius: 11px;
}
.modal-cta::after { content: "→"; color: var(--accent); }
.modal-cta:hover { background: #000; }
.modal-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.modal-sub { color: var(--muted); font-size: .84rem; margin: 12px 0 0; }
.modal-sub a { color: var(--accent-2); font-weight: 600; }

/* ---------- Footer teaminfo ---------- */
.foot-info-title { font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .5px; color: #fff; text-transform: uppercase; }
.foot-line { font-size: .84rem; }
.foot-line + .foot-line { margin-top: 2px; }

/* ---------- Groter scherm ---------- */
@media (min-width: 620px) {
  :root { --pad: 28px; }
  .hero { min-height: clamp(400px, 58vh, 560px); }
  .tab { font-size: .9rem; }
}
