/* pooz — interface */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--rf-creme);
  color: var(--rf-inkt);
  font-family: var(--rf-font-tekst);
  font-size: var(--rf-schaal-m);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--rf-terracotta); }

:focus-visible {
  outline: 2px solid var(--rf-terracotta);
  outline-offset: 2px;
  border-radius: 4px;
}

.verborgen { display: none !important; }

.alleen-screenreader {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- Typografie */

h1, h2, h3 {
  font-family: var(--rf-font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0 0 var(--rf-ruimte-2);
  line-height: 1.15;
}

h1 { font-size: var(--rf-schaal-xxl); }
h2 { font-size: var(--rf-schaal-xl); }
h3 { font-size: var(--rf-schaal-l); }

h1 em, h2 em, h3 em { font-style: italic; color: var(--rf-klei); }

.kop-label {
  font-size: var(--rf-schaal-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rf-mist);
  margin: 0 0 var(--rf-ruimte-2);
}

.tekst-zacht { color: var(--rf-mist); }

/* ------------------------------------------------------------------- Layout */

#app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.kop {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rf-ruimte-3);
  padding: calc(env(safe-area-inset-top) + var(--rf-ruimte-4))
           var(--rf-ruimte-4) var(--rf-ruimte-3);
  background: color-mix(in srgb, var(--rf-creme) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: var(--rf-rand);
}

.woordmerk {
  font-family: var(--rf-font-display);
  font-size: var(--rf-schaal-l);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.woordmerk small {
  display: block;
  font-family: var(--rf-font-tekst);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--rf-mist);
  text-transform: uppercase;
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--rf-max-breedte);
  margin: 0 auto;
  padding: var(--rf-ruimte-5) var(--rf-ruimte-4)
           calc(var(--rf-tabbalk-hoogte) + env(safe-area-inset-bottom) + var(--rf-ruimte-6));
}

/* ------------------------------------------------------------------ Tabbalk */

.tabbalk {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--rf-papier) 92%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  border-top: var(--rf-rand);
  padding-bottom: env(safe-area-inset-bottom);
}

.tabbalk button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: var(--rf-ruimte-2) 0 var(--rf-ruimte-3);
  background: none;
  border: 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--rf-mist);
}

.tabbalk button[aria-current="page"] { color: var(--rf-terracotta); }
.tabbalk svg { width: 22px; height: 22px; stroke-width: 1.4; }

/* ------------------------------------------------------------------ Knoppen */

.knop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rf-ruimte-2);
  min-height: 46px;
  padding: 0 var(--rf-ruimte-5);
  border: var(--rf-rand);
  border-radius: 999px;
  background: var(--rf-papier);
  color: var(--rf-inkt);
  font-size: var(--rf-schaal-s);
  letter-spacing: 0.02em;
  transition: transform 0.12s ease, background 0.12s ease;
}

.knop:active { transform: scale(0.98); }
.knop--vol { background: var(--rf-inkt); color: var(--rf-creme); border-color: var(--rf-inkt); }
.knop--merk { background: var(--rf-terracotta); color: #fff; border-color: var(--rf-terracotta); }
.knop--breed { width: 100%; }
.knop--klein { min-height: 36px; padding: 0 var(--rf-ruimte-4); font-size: var(--rf-schaal-xs); }
.knop[disabled] { opacity: 0.45; pointer-events: none; }

.knop-apple {
  background: #000;
  color: #fff;
  border-color: #000;
  min-height: 52px;
  font-size: var(--rf-schaal-m);
}

.knop-apple svg { width: 18px; height: 18px; margin-bottom: 2px; }

/* ------------------------------------------------------------------- Inloggen */

#weergave-inloggen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--rf-ruimte-6);
  padding: var(--rf-ruimte-6) var(--rf-ruimte-5);
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

#weergave-inloggen .merk {
  font-family: var(--rf-font-display);
  font-size: 3rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------------- Filters */

.filterrij {
  display: flex;
  gap: var(--rf-ruimte-2);
  overflow-x: auto;
  padding-bottom: var(--rf-ruimte-2);
  margin-bottom: var(--rf-ruimte-3);
  scrollbar-width: none;
}

.filterrij::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  border: var(--rf-rand);
  background: var(--rf-papier);
  border-radius: 999px;
  padding: 7px var(--rf-ruimte-4);
  font-size: var(--rf-schaal-xs);
  letter-spacing: 0.04em;
  color: var(--rf-inkt-zacht);
  white-space: nowrap;
}

.chip[aria-pressed="true"] {
  background: var(--rf-inkt);
  border-color: var(--rf-inkt);
  color: var(--rf-creme);
}

.zoekveld {
  width: 100%;
  min-height: 46px;
  padding: 0 var(--rf-ruimte-4);
  margin-bottom: var(--rf-ruimte-3);
  border: var(--rf-rand);
  border-radius: 999px;
  background: var(--rf-papier);
  font: inherit;
  font-size: var(--rf-schaal-s);
  color: var(--rf-inkt);
}

/* ------------------------------------------------------------------ Poselijst */

.poseraster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--rf-ruimte-3);
}

.posekaart {
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--rf-papier);
  border-radius: var(--rf-radius-l);
  overflow: hidden;
  box-shadow: var(--rf-schaduw-zacht);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.posekaart:active { transform: scale(0.985); }

.posekaart .beeld {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(160deg, var(--rf-zand), var(--rf-zand-diep));
}

.posekaart .beeld--leeg {
  display: grid;
  place-items: center;
  color: var(--rf-klei);
  font-family: var(--rf-font-display);
  font-size: var(--rf-schaal-s);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.posekaart .tekst { padding: var(--rf-ruimte-3) var(--rf-ruimte-4) var(--rf-ruimte-4); }

.posekaart h3 {
  font-size: var(--rf-schaal-m);
  margin-bottom: 2px;
}

.posekaart .meta {
  font-size: var(--rf-schaal-xs);
  color: var(--rf-mist);
  letter-spacing: 0.04em;
}

.hartje {
  position: absolute;
  top: var(--rf-ruimte-3);
  right: var(--rf-ruimte-3);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.86);
  backdrop-filter: blur(6px);
  box-shadow: var(--rf-schaduw-zacht);
}

.hartje svg { width: 17px; height: 17px; stroke: var(--rf-inkt); fill: none; stroke-width: 1.6; }
.hartje[aria-pressed="true"] svg { fill: var(--rf-terracotta); stroke: var(--rf-terracotta); }

/* ------------------------------------------------------------------ Posedetail */

.detailbeeld {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rf-radius-xl);
  background: linear-gradient(160deg, var(--rf-zand), var(--rf-zand-diep));
  box-shadow: var(--rf-schaduw-diep);
  margin-bottom: var(--rf-ruimte-5);
}

video.detailbeeld { object-fit: cover; }

.loop-merk {
  position: absolute;
  left: var(--rf-ruimte-3);
  top: var(--rf-ruimte-3);
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: rgba(23, 19, 16, 0.55);
  color: #fff;
  font-size: 9px;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.blok {
  background: var(--rf-papier);
  border: var(--rf-rand);
  border-radius: var(--rf-radius-l);
  padding: var(--rf-ruimte-5);
  margin-bottom: var(--rf-ruimte-4);
}

.blok--regie {
  background: color-mix(in srgb, var(--rf-terracotta) 8%, var(--rf-papier));
  border-color: color-mix(in srgb, var(--rf-terracotta) 26%, var(--rf-zand-diep));
}

.regietekst {
  font-family: var(--rf-font-display);
  font-size: var(--rf-schaal-l);
  font-style: italic;
  line-height: 1.35;
  color: var(--rf-inkt);
  margin: 0;
}

.feiten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--rf-ruimte-2) var(--rf-ruimte-4);
  margin: 0;
  font-size: var(--rf-schaal-s);
}

.feiten dt {
  font-size: var(--rf-schaal-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rf-mist);
  padding-top: 2px;
}

.feiten dd { margin: 0; color: var(--rf-inkt-zacht); }

.stappen, .tips { list-style: none; margin: 0; padding: 0; }

.stappen li, .tips li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--rf-ruimte-3);
  padding: var(--rf-ruimte-2) 0;
  font-size: var(--rf-schaal-s);
  border-bottom: 1px solid color-mix(in srgb, var(--rf-zand-diep) 50%, transparent);
}

.stappen li:last-child, .tips li:last-child { border-bottom: 0; }
.stappen .pijl, .tips .pijl { color: var(--rf-terracotta); }

.tips .categorie {
  display: block;
  font-size: var(--rf-schaal-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rf-mist);
}

.knoprij {
  display: flex;
  flex-wrap: wrap;
  gap: var(--rf-ruimte-2);
  margin-bottom: var(--rf-ruimte-4);
}

.notitieveld {
  width: 100%;
  min-height: 96px;
  padding: var(--rf-ruimte-3);
  border: var(--rf-rand);
  border-radius: var(--rf-radius-m);
  background: var(--rf-creme);
  font: inherit;
  font-size: var(--rf-schaal-s);
  resize: vertical;
  color: var(--rf-inkt);
}

/* ---------------------------------------------------------------- Shotlijst */

.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--rf-ruimte-3); }

.lijstitem {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: var(--rf-ruimte-3);
  background: var(--rf-papier);
  border: var(--rf-rand);
  border-radius: var(--rf-radius-m);
  padding: var(--rf-ruimte-3);
  box-shadow: var(--rf-schaduw-zacht);
}

.lijstitem .duim {
  width: 56px; height: 56px;
  border-radius: var(--rf-radius-s);
  object-fit: cover;
  background: linear-gradient(160deg, var(--rf-zand), var(--rf-zand-diep));
}

.lijstitem[data-status="gedaan"] { opacity: 0.55; }
.lijstitem[data-status="gedaan"] .titel { text-decoration: line-through; }

.lijstitem .titel { font-family: var(--rf-font-display); font-size: var(--rf-schaal-m); }

.vinkje {
  width: 30px; height: 30px;
  border: 1.5px solid var(--rf-zand-diep);
  border-radius: 999px;
  background: var(--rf-creme);
  display: grid; place-items: center;
  color: transparent;
}

.vinkje[aria-pressed="true"] {
  background: var(--rf-succes);
  border-color: var(--rf-succes);
  color: #fff;
}

.shootkaart {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--rf-papier);
  border: var(--rf-rand);
  border-radius: var(--rf-radius-l);
  padding: var(--rf-ruimte-4) var(--rf-ruimte-5);
  box-shadow: var(--rf-schaduw-zacht);
}

.reactierij { display: flex; gap: var(--rf-ruimte-2); margin-top: var(--rf-ruimte-2); }

/* ---------------------------------------------------------------- Statussen */

.melding {
  border-radius: var(--rf-radius-m);
  padding: var(--rf-ruimte-3) var(--rf-ruimte-4);
  font-size: var(--rf-schaal-s);
  margin-bottom: var(--rf-ruimte-4);
}

.melding--fout { background: color-mix(in srgb, var(--rf-fout) 12%, var(--rf-creme)); color: var(--rf-fout); }
.melding--ok   { background: color-mix(in srgb, var(--rf-succes) 14%, var(--rf-creme)); color: var(--rf-succes); }

.leeg {
  text-align: center;
  padding: var(--rf-ruimte-7) var(--rf-ruimte-4);
  color: var(--rf-mist);
  font-family: var(--rf-font-display);
  font-size: var(--rf-schaal-l);
}

.laden {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--rf-ruimte-3);
}

.laden div {
  aspect-ratio: 3 / 4.6;
  border-radius: var(--rf-radius-l);
  background: linear-gradient(100deg, var(--rf-zand) 30%, var(--rf-creme) 50%, var(--rf-zand) 70%);
  background-size: 220% 100%;
  animation: glans 1.3s linear infinite;
}

@keyframes glans { to { background-position: -220% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 640px) {
  .poseraster { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  main { padding-top: var(--rf-ruimte-6); }
}
