/* Verzoekjespagina voor gasten.
   Ontworpen voor de telefoon: alles binnen duimbereik, grote raakvlakken,
   donker zodat het in een schemerige bar niet verblindt. */

:root {
  --bg: #0a0c12;
  --kaart: rgba(255, 255, 255, 0.055);
  --rand: rgba(255, 255, 255, 0.1);
  --ink: #f2f5fa;
  --zacht: #98a2b8;
  --accent: #1db954;
  --accent-diep: #0f7a37;
  --waarschuwing: #ffb454;
  --fout: #ff7a7a;
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

/* Moet elke display-regel verslaan: id-selectors hieronder wegen anders
   zwaarder dan het verbergen zelf. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system,
               BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  padding: 0 20px calc(40px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* Rustig kleurverloop op de achtergrond; puur zwart oogt goedkoop. */
#sfeer {
  position: fixed;
  inset: -30% -30% auto -30%;
  height: 90vh;
  z-index: -1;
  background:
    radial-gradient(closest-side, rgba(29, 185, 84, 0.20), transparent 70%) 25% 12% / 70% 70% no-repeat,
    radial-gradient(closest-side, rgba(88, 101, 242, 0.18), transparent 70%) 82% 4% / 65% 65% no-repeat;
  filter: blur(18px);
  animation: adem 14s ease-in-out infinite alternate;
}

@keyframes adem {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

/* ---------- kop ---------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(18px + env(safe-area-inset-top)) 0 10px;
  position: sticky;
  top: 0;
  background: linear-gradient(var(--bg) 72%, transparent);
  z-index: 5;
}

.merk {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zacht);
}

.punt {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.6);
  animation: hartslag 2.4s ease-out infinite;
}

@keyframes hartslag {
  0%   { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(29, 185, 84, 0); }
  100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

.taalknop {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--zacht);
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
  min-height: 36px;
}

.taalknop:active { background: rgba(255, 255, 255, 0.12); }

.scherm[hidden] { display: none; }

/* ---------- gesloten ---------- */

#dicht { display: flex; align-items: center; min-height: 70dvh; }

.dicht-kaart {
  text-align: center;
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  padding: 44px 28px;
  width: 100%;
}

.slot {
  font-size: 40px;
  opacity: 0.35;
  margin-bottom: 18px;
}

.dicht-kaart h1 { font-size: 23px; margin-bottom: 10px; }
.dicht-kaart p { color: var(--zacht); font-size: 15px; }

/* ---------- nu speelt ---------- */

.nu {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--kaart);
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 11px 14px 11px 11px;
  margin-bottom: 26px;
}

.nu[hidden] { display: none; }

.nu img {
  width: 46px;
  height: 46px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.nu-tekst { display: flex; flex-direction: column; min-width: 0; flex: 1; }

.label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.nu-tekst b,
.nu-tekst span:not(.label) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nu-tekst b { font-size: 15px; }
.nu-tekst span:not(.label) { font-size: 13px; color: var(--zacht); }

.equalizer { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.equalizer i {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eq 900ms ease-in-out infinite alternate;
}
.equalizer i:nth-child(1) { height: 30%; animation-delay: 0ms; }
.equalizer i:nth-child(2) { height: 70%; animation-delay: 180ms; }
.equalizer i:nth-child(3) { height: 45%; animation-delay: 90ms; }
.equalizer i:nth-child(4) { height: 85%; animation-delay: 260ms; }

@keyframes eq { to { height: 18%; } }

/* ---------- keuze ---------- */

.groot {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}

.soort { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 20px; }

/* Staat karaoke uit, dan neemt de overgebleven knop de hele breedte. */
.soort.alleen-een { grid-template-columns: 1fr; }

.soortknop {
  font: inherit;
  color: var(--ink);
  background: var(--kaart);
  border: 1.5px solid var(--rand);
  border-radius: 14px;
  padding: 15px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 86px;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
}

.soortknop:active { transform: scale(0.98); }
.soortknop .ikoon { font-size: 19px; line-height: 1; margin-bottom: 4px; }
.soortknop b { font-size: 16px; }
.soortknop small { font-size: 12px; color: var(--zacht); }

.soortknop.actief {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(29, 185, 84, 0.18), rgba(29, 185, 84, 0.05));
}

.soortknop.actief small { color: #8fe0ab; }

/* ---------- zoeken ---------- */

.zoekbalk { position: relative; margin-bottom: 8px; }

#zoek {
  width: 100%;
  font: inherit;
  font-size: 17px;   /* onder 16px zoomt iOS in bij focus */
  color: var(--ink);
  background: var(--kaart);
  border: 1.5px solid var(--rand);
  border-radius: 14px;
  padding: 15px 46px 15px 16px;
  min-height: 54px;
}

#zoek::placeholder { color: var(--zacht); }
#zoek:focus { outline: none; border-color: var(--accent); }
#zoek::-webkit-search-cancel-button { filter: invert(0.6); }

.spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: draai 700ms linear infinite;
}

.spinner[hidden] { display: none; }

@keyframes draai { to { transform: rotate(360deg); } }

.melding { color: var(--zacht); font-size: 14px; min-height: 1.3em; margin-bottom: 10px; }
.melding.fout { color: var(--fout); }

/* ---------- resultaten ---------- */

#resultaten, #mijn-lijst { list-style: none; display: flex; flex-direction: column; gap: 8px; }

#resultaten li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 13px;
  background: var(--kaart);
  border: 1px solid var(--rand);
  cursor: pointer;
  transition: border-color 140ms ease, transform 120ms ease;
  animation: opkomst 260ms ease both;
}

#resultaten li:active { transform: scale(0.985); border-color: var(--accent); }

@keyframes opkomst {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

#resultaten img, #mijn-lijst img {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

.rij-tekst { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rij-tekst b { font-size: 15px; }
.rij-tekst span { font-size: 13px; color: var(--zacht); }
.rij-tekst b, .rij-tekst span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pijl { color: var(--zacht); font-size: 20px; flex-shrink: 0; padding-right: 4px; }

/* ---------- mijn verzoekjes ---------- */

#mijn { margin-top: 34px; }
#mijn[hidden] { display: none; }

#mijn h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zacht);
  margin-bottom: 12px;
}

#mijn-lijst li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--rand);
}

.status {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  flex-shrink: 0;
  white-space: nowrap;
}

.status.wacht    { background: rgba(255, 180, 84, 0.16); color: var(--waarschuwing); }
.status.goed     { background: rgba(29, 185, 84, 0.18); color: #7ee8a6; }
.status.gespeeld { background: rgba(255, 255, 255, 0.1); color: var(--zacht); }
.status.nee      { background: rgba(255, 122, 122, 0.15); color: var(--fout); }

/* ---------- foto insturen ---------- */

#fotoblok { margin-top: 34px; }

.fotoknop {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.18), rgba(88, 101, 242, 0.05));
  border: 1.5px dashed rgba(130, 140, 255, 0.5);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: border-color 160ms ease, transform 120ms ease;
}

.fotoknop:active { transform: scale(0.985); border-color: #8f9bff; }
.fotoknop .fotoikoon { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.fotoknop b { font-size: 16px; }
.fotoknop small { font-size: 12px; color: var(--zacht); }

#foto-melding { margin-top: 10px; }

/* ---------- lijsten van anderen ---------- */

#komt, #geweest { margin-top: 30px; }
#komt[hidden], #geweest[hidden], #fotoblok[hidden] { display: none; }

#komt h2, #geweest h2 {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--zacht);
  margin-bottom: 12px;
}

#komt-lijst, #geweest-lijst {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

#komt-lijst li, #geweest-lijst li {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--rand);
}

#komt-lijst img, #geweest-lijst img {
  width: 38px;
  height: 38px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

#geweest-lijst li { opacity: 0.62; }

.van-wie {
  font-size: 11px;
  color: var(--accent);
  flex-shrink: 0;
  white-space: nowrap;
}

.van-wie:empty { display: none; }

#opmerking {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--kaart);
  border: 1.5px solid var(--rand);
  border-radius: 13px;
  padding: 12px 16px;
  resize: none;
  min-height: 62px;
}

#opmerking:focus { outline: none; border-color: var(--accent); }

/* ---------- blad (bevestigen) ---------- */

#blad {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(4, 6, 10, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  animation: vervaag 220ms ease;
}

#blad[hidden] { display: none; }

@keyframes vervaag { from { opacity: 0; } to { opacity: 1; } }

#blad-form {
  width: 100%;
  background: #12151d;
  border-top: 1px solid var(--rand);
  border-radius: 22px 22px 0 0;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  position: relative;
  animation: omhoog 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes omhoog { from { transform: translateY(100%); } to { transform: none; } }

.sluit {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  font-size: 26px;
  line-height: 1;
  color: var(--zacht);
  background: none;
  border: none;
  cursor: pointer;
}

.gekozen { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.gekozen img { width: 62px; height: 62px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.gekozen div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gekozen b { font-size: 17px; }
.gekozen span:not(.chip) { font-size: 14px; color: var(--zacht); }

.chip {
  align-self: flex-start;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(29, 185, 84, 0.16);
  color: #7ee8a6;
}

.veld { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.veld > span { font-size: 14px; color: var(--zacht); }

#naam {
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--kaart);
  border: 1.5px solid var(--rand);
  border-radius: 13px;
  padding: 14px 16px;
  min-height: 52px;
}

#naam:focus { outline: none; border-color: var(--accent); }

.verstuur {
  width: 100%;
  font: inherit;
  font-size: 17px;
  font-weight: 650;
  color: #04220f;
  background: linear-gradient(180deg, #24d268, var(--accent-diep));
  border: none;
  border-radius: 14px;
  padding: 17px;
  min-height: 56px;
  cursor: pointer;
}

.verstuur:disabled { opacity: 0.55; }
.verstuur:active { transform: scale(0.99); }

.fijndruk { text-align: center; font-size: 12px; color: var(--zacht); margin-top: 14px; }
.fout { color: var(--fout); font-size: 14px; min-height: 1.2em; margin-bottom: 6px; }

/* ---------- foto's nakijken ---------- */

#fotoblad {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(4, 6, 10, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  animation: vervaag 220ms ease;
}

#fotoblad-inhoud {
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  background: #12151d;
  border-top: 1px solid var(--rand);
  border-radius: 22px 22px 0 0;
  padding: 26px 20px calc(26px + env(safe-area-inset-bottom));
  position: relative;
  animation: omhoog 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

#fotoblad-inhoud h2 { font-size: 21px; margin-bottom: 4px; }

.fijndruk-boven { font-size: 13px; color: var(--zacht); margin-bottom: 18px; }

#fotoblad-raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.voorbeeld {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  aspect-ratio: 3 / 4;
  cursor: pointer;
}

.voorbeeld img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kruisje om een foto uit de selectie te halen. */
.voorbeeld .weg {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

.voorbeeld .maat {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: var(--zacht);
}

.tweede {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: none;
  border: 1px solid var(--rand);
  border-radius: 14px;
  padding: 14px;
  margin-top: 10px;
  cursor: pointer;
}

/* ---------- gelukt ---------- */

#gelukt {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(4, 6, 10, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#gelukt[hidden] { display: none; }

.gelukt-kaart { text-align: center; max-width: 340px; width: 100%; }
.gelukt-kaart h2 { font-size: 24px; margin-bottom: 10px; }
.gelukt-kaart p { color: var(--zacht); margin-bottom: 26px; }

.vink { margin: 0 auto 20px; width: 78px; }
.vink svg { width: 100%; fill: none; stroke: var(--accent); stroke-width: 3.5; }
.vink circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: teken 520ms ease forwards;
}
.vink path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: teken 320ms ease 400ms forwards;
}

@keyframes teken { to { stroke-dashoffset: 0; } }

/* ---------- grotere schermen ---------- */

@media (min-width: 560px) {
  body { max-width: 560px; margin: 0 auto; }
  .groot { font-size: 34px; }
}
