/* IZO KennisJam 2026 — huisstijl: IZO-paars, wit, roze en cyaan accenten (post-its) */
:root {
  --paars: #45145f;
  --paars-2: #5c2280;
  --paars-3: #7b3aa6;
  --paars-diep: #240a33;
  --lila: #efe7f5;
  --lila-2: #e0d0ec;
  --roze: #ff2e93;
  --roze-zacht: #ff8cc4;
  --cyaan: #2ec5e8;
  --geel: #ffd23f;
  --groen: #25ab33;
  --tekst: #1f1029;
  --tekst-2: #5d4d69;
  --rand: #dccfe6;
  --wit: #fff;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(69, 20, 95, .35);
  --font: "Source Sans 3", "Rijksoverheid Sans", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--tekst); background: var(--lila); line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--paars); }
button, input, textarea, select { font: inherit; }
img { max-width: 100%; }

/* ---------- Header ---------- */
.topbar { background: var(--paars); color: #fff; padding: 14px 16px; position: sticky; top: 0; z-index: 10; }
.topbar .inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 36px; width: auto; border-radius: 5px; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.brand b { display: block; font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.brand small { display: block; opacity: .75; font-size: .8rem; }
.topbar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a { color: #fff; text-decoration: none; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; background: rgba(255,255,255,.1); }
.topbar nav a:hover, .topbar nav a.on { background: rgba(255,255,255,.22); }

.hero { background: linear-gradient(160deg, var(--paars) 0%, var(--paars-2) 60%, var(--paars-3) 100%); color: #fff; padding: 28px 16px 64px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40px -10%; height: 80px; background: var(--lila); border-radius: 50% 50% 0 0; }
.hero .inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.hero .kicker { display: inline-block; background: var(--roze); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; transform: rotate(-2deg); }
.hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); line-height: 1.1; margin: 12px 0 8px; font-weight: 900; }
.hero p { margin: 0; opacity: .88; }

.wrap { max-width: 720px; margin: -40px auto 40px; padding: 0 16px; position: relative; z-index: 2; }
.wrap.wide { max-width: 1100px; margin-top: 24px; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px; }
.card h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; color: var(--paars); display: flex; align-items: center; gap: 10px; }
.card h2 .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--lila); font-size: 1.1rem; flex: none; }
.card .sub { margin: 0 0 16px; color: var(--tekst-2); }

/* ---------- Knoppen & formulieren ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 22px; font-weight: 700; background: var(--paars); color: #fff; text-decoration: none; transition: transform .1s, background .2s; }
.btn:hover { background: var(--paars-2); }
.btn:active { transform: scale(.97); }
.btn.roze { background: var(--roze); }
.btn.roze:hover { background: #e81c80; }
.btn.ghost { background: var(--lila); color: var(--paars); }
.btn.ghost:hover { background: var(--lila-2); }
.btn.small { padding: 7px 14px; font-size: .9rem; }
.btn.block { width: 100%; padding: 16px; font-size: 1.1rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

label.lbl { display: block; font-weight: 700; margin: 16px 0 6px; }
label.lbl small { font-weight: 400; color: var(--tekst-2); }
.field, textarea.field { width: 100%; border: 2px solid var(--rand); border-radius: 12px; padding: 12px 14px; background: #fff; color: var(--tekst); font-size: 1rem; }
.field:focus { outline: none; border-color: var(--paars-3); box-shadow: 0 0 0 4px rgba(123, 58, 166, .15); }
textarea.field { min-height: 96px; resize: vertical; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--rand); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 600; color: var(--paars); user-select: none; }
.chip.on { background: var(--paars); border-color: var(--paars); color: #fff; }

.notice { border-radius: 12px; padding: 12px 14px; margin-top: 12px; font-weight: 600; }
.notice.ok { background: #e4f6e6; color: #145c1c; }
.notice.err { background: #ffe3ef; color: #9b0c4f; }

/* ---------- Sessiekeuze ---------- */
.sessions { display: grid; gap: 12px; }
.session-link { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 14px 16px; text-decoration: none; color: var(--tekst); box-shadow: var(--shadow); border: 2px solid transparent; }
.session-link:hover { border-color: var(--paars-3); }
.session-link .nr { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--paars); color: #fff; font-weight: 900; font-size: 1.2rem; display: grid; place-items: center; }
.session-link:nth-child(3n+2) .nr { background: var(--roze); }
.session-link:nth-child(3n) .nr { background: var(--cyaan); color: var(--paars-diep); }
.session-link b { display: block; line-height: 1.25; }
.session-link small { color: var(--tekst-2); }

/* ---------- Foto-upload ---------- */
.drop { display: block; border: 3px dashed var(--lila-2); border-radius: var(--radius); padding: 26px 16px; text-align: center; cursor: pointer; background: var(--lila); transition: .2s; }
.drop:hover, .drop.over { border-color: var(--roze); background: #fff0f7; }
.drop .big { font-size: 2.6rem; line-height: 1; }
.drop b { display: block; font-size: 1.15rem; margin-top: 8px; color: var(--paars); }
.drop input { display: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; margin-top: 14px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--lila); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .st { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; color: #fff; background: rgba(69,20,95,.55); font-size: .85rem; }
.thumb.done .st { background: transparent; align-items: end; justify-items: end; padding: 4px; }
.thumb.done .st::after { content: "✓"; background: var(--groen); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; }
.thumb.fail .st { background: rgba(155, 12, 79, .75); }

.foot { text-align: center; color: var(--tekst-2); font-size: .85rem; padding: 10px 16px 40px; }

/* ---------- Beheer ---------- */
.grid-sessions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { background: #fff; border-radius: 16px; padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--tekst); display: flex; flex-direction: column; gap: 10px; border: 2px solid transparent; }
.tile:hover { border-color: var(--paars-3); }
.tile .head { display: flex; gap: 10px; align-items: flex-start; }
.tile .nr { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--paars); color: #fff; font-weight: 900; display: grid; place-items: center; }
.tile b { line-height: 1.2; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.pill { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--lila); color: var(--paars); }
.pill.ok { background: #e4f6e6; color: #145c1c; }
.pill.warn { background: #fff4d1; color: #7a5a00; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.inputs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; max-height: 480px; overflow: auto; }
.inputs li { background: var(--lila); border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.inputs li.hidden { opacity: .45; text-decoration: line-through; }
.inputs li .txt { flex: 1; }
.inputs li q { display: block; color: var(--tekst-2); font-style: italic; margin-top: 2px; }
.inputs li small { color: var(--tekst-2); }
.votes { display: grid; gap: 6px; margin-bottom: 12px; }
.vote { display: grid; grid-template-columns: 110px 1fr 28px; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; }
.vote .bar { height: 10px; border-radius: 99px; background: var(--lila); overflow: hidden; }
.vote .bar i { display: block; height: 100%; background: var(--roze); border-radius: 99px; }
.copyrow { display: flex; justify-content: space-between; align-items: end; gap: 8px; }
.admin-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.admin-photos .ph { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--lila); }
.admin-photos .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-photos .ph.hidden img { opacity: .25; filter: grayscale(1); }
.admin-photos .ph .acts { position: absolute; right: 4px; bottom: 4px; display: flex; gap: 4px; }
.admin-photos .ph button { border: 0; border-radius: 8px; padding: 4px 7px; cursor: pointer; background: rgba(255,255,255,.92); font-size: .8rem; font-weight: 700; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row .field { width: auto; flex: 1; min-width: 90px; }
audio { width: 100%; margin-top: 10px; }
.spin { display: inline-block; width: 16px; height: 16px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login { max-width: 380px; margin: 12vh auto; }

/* ---------- QR-print ---------- */
.qr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.qr-card { background: #fff; border-radius: 16px; padding: 18px; text-align: center; border: 3px solid var(--paars); break-inside: avoid; }
.qr-card .qr { display: grid; place-items: center; margin: 12px 0; }
.qr-card .qr img, .qr-card .qr canvas { width: 200px !important; height: 200px !important; }
.qr-card h3 { margin: 6px 0 0; color: var(--paars); line-height: 1.2; }
@media print {
  .topbar, .noprint { display: none !important; }
  body { background: #fff; }
  .wrap.wide { margin: 0; max-width: none; }
  .qr-grid { gap: 10mm; }
}

/* ====================================================================
   BEAMER-SHOW
   ==================================================================== */
body.show { background: var(--paars-diep); color: #fff; overflow: hidden; height: 100vh; cursor: default; }
body.show.idle { cursor: none; }
.stage { position: fixed; inset: 0; }
.screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.screen.on { opacity: 1; visibility: visible; transition: opacity .8s ease; }

/* Achtergrond met zwevende 'post-its' in huisstijlkleuren */
.bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 10%, var(--paars-3) 0%, transparent 55%), radial-gradient(ellipse at 90% 90%, #6a1b6f 0%, transparent 50%), linear-gradient(160deg, var(--paars) 0%, var(--paars-diep) 100%); overflow: hidden; }
.bg i { position: absolute; width: 9vw; height: 9vw; border-radius: 6px; opacity: .16; animation: float 22s ease-in-out infinite; }
.bg i:nth-child(1) { left: 6%; top: 70%; background: var(--roze); transform: rotate(-12deg); }
.bg i:nth-child(2) { left: 82%; top: 12%; background: var(--cyaan); animation-delay: -6s; }
.bg i:nth-child(3) { left: 70%; top: 72%; background: var(--roze); width: 6vw; height: 6vw; animation-delay: -12s; }
.bg i:nth-child(4) { left: 38%; top: 6%; background: var(--geel); width: 5vw; height: 5vw; animation-delay: -3s; }
.bg i:nth-child(5) { left: 3%; top: 8%; background: var(--cyaan); width: 5vw; height: 5vw; animation-delay: -9s; }
@keyframes float { 0%,100% { translate: 0 0; rotate: -8deg; } 50% { translate: 1.5vw -2.5vw; rotate: 8deg; } }

/* Logo in de hoek op titel- en eindkaart */
.cornerlogo { position: absolute; top: 4vh; left: 3vw; height: 7vh; border-radius: .8vh; z-index: 1; opacity: 0; transition: opacity .8s; }
body[data-mode="title"] .cornerlogo, body[data-mode="end"] .cornerlogo { opacity: 1; }

/* Lobby */
.lobby { display: flex; flex-direction: column; padding: 4vh 4vw 3vh; }
.lobby .top { position: relative; display: flex; align-items: center; gap: 2vw; }
.lobby .top img { height: 9vh; border-radius: 1vh; }
.lobby .top h1 { margin: 0; font-size: 5.4vh; font-weight: 900; line-height: 1; letter-spacing: -.01em; }
.lobby .top h1 span { color: var(--roze-zacht); }
.lobby .top p { margin: .6vh 0 0; font-size: 2.4vh; opacity: .8; }
.lobby .tiles { position: relative; flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2vh 1.6vw; margin: 4vh 0 3vh; }
.stile { position: relative; border-radius: 2vh; overflow: hidden; background: rgba(255,255,255,.08); border: .3vh solid rgba(255,255,255,.14); cursor: pointer; text-align: left; color: #fff; padding: 0; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .25s, border-color .25s; }
.stile:hover, .stile.focus { transform: translateY(-.6vh) scale(1.015); border-color: var(--roze); }
.stile .mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); opacity: .5; }
.stile .mosaic div { background-size: cover; background-position: center; }
.stile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,10,51,.1) 0%, rgba(36,10,51,.92) 70%); }
.stile .in { position: relative; z-index: 1; padding: 2vh 1.4vw; }
.stile .nr { display: inline-grid; place-items: center; width: 5vh; height: 5vh; border-radius: 1.2vh; background: var(--roze); font-weight: 900; font-size: 2.8vh; margin-bottom: 1.2vh; }
.stile:nth-child(3n+2) .nr { background: var(--cyaan); color: var(--paars-diep); }
.stile:nth-child(3n) .nr { background: var(--geel); color: var(--paars-diep); }
.stile b { display: block; font-size: 2.3vh; line-height: 1.2; font-weight: 800; }
.stile .meta { display: flex; gap: .8vw; margin-top: 1vh; font-size: 1.7vh; font-weight: 700; }
.stile .meta span { background: rgba(255,255,255,.15); padding: .3vh .8vw; border-radius: 99px; }
.stile .meta .ok { background: var(--groen); }
.stile .meta .no { background: rgba(255, 46, 147, .8); }
.stile.played { opacity: .55; }
.lobby .bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 2vw; font-size: 1.9vh; }
.lobby .bottom .keys { opacity: .65; flex: 1; text-align: center; }
.lobby .bottom .loadstate span, .bigbtn { white-space: nowrap; }
.lobby .bottom kbd { background: rgba(255,255,255,.15); border-radius: .6vh; padding: .2vh .7vh; font-family: inherit; font-weight: 700; }
.bigbtn { border: 0; cursor: pointer; background: var(--roze); color: #fff; font-weight: 900; font-size: 2.6vh; padding: 1.6vh 3vw; border-radius: 99px; box-shadow: 0 1vh 3vh -1vh rgba(255, 46, 147, .7); }
.bigbtn:hover { background: #ff4aa3; }
.loadstate { display: flex; align-items: center; gap: 1vw; opacity: .85; }
.loadstate .bar { width: 14vw; height: .8vh; background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.loadstate .bar i { display: block; height: 100%; width: 0; background: var(--cyaan); transition: width .3s; }

/* Titelkaart */
.titlecard { display: grid; place-items: center; text-align: center; }
.titlecard .in { position: relative; max-width: 80vw; }
.titlecard .label { display: inline-block; background: var(--roze); font-weight: 900; font-size: 2.6vh; letter-spacing: .14em; text-transform: uppercase; padding: .8vh 1.6vw; border-radius: 1vh; transform: rotate(-2deg); }
.titlecard h2 { font-size: 7.5vh; line-height: 1.05; margin: 3vh 0 2vh; font-weight: 900; letter-spacing: -.01em; }
.titlecard .who { font-size: 2.8vh; opacity: .8; }
.titlecard .song { margin-top: 5vh; font-size: 3.6vh; font-weight: 700; color: var(--roze-zacht); }
.titlecard .song::before { content: "♪ "; }
.titlecard .style { display: inline-block; margin-top: 1.5vh; font-size: 2vh; font-weight: 700; background: rgba(255,255,255,.14); padding: .5vh 1.4vw; border-radius: 99px; }
.pop { animation: pop .9s cubic-bezier(.2,.9,.3,1.3) both; }
.pop2 { animation: pop .9s .25s cubic-bezier(.2,.9,.3,1.3) both; }
.pop3 { animation: pop .9s .5s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes pop { from { opacity: 0; transform: translateY(4vh) scale(.96); } to { opacity: 1; transform: none; } }

/* Slideshow */
.player { background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; overflow: hidden; }
.slide.on { opacity: 1; }
.slide .blur { position: absolute; inset: -5%; background-size: cover; background-position: center; filter: blur(40px) brightness(.55) saturate(1.2); }
.slide img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; width: auto; height: auto; box-shadow: 0 0 8vh rgba(0,0,0,.5); }
.slide.kb img { animation: kb var(--dur, 6s) ease-out both; }
.slide.kb.alt img { animation-name: kb2; }
@keyframes kb { from { transform: scale(1.0) translate(0, 0); } to { transform: scale(1.08) translate(-1%, -1%); } }
@keyframes kb2 { from { transform: scale(1.08) translate(1%, 0); } to { transform: scale(1.0) translate(0, 1%); } }
.nophotos { position: absolute; inset: 0; }

.lowerthird { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 3vw 3vh; background: linear-gradient(0deg, rgba(36,10,51,.9) 0%, rgba(36,10,51,0) 100%); display: flex; align-items: flex-end; gap: 2vw; }
.lowerthird img { height: 7vh; border-radius: .8vh; }
.lowerthird .t { flex: 1; min-width: 0; padding-top: 8vh; }
.lowerthird .t small { display: block; font-size: 2vh; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--roze-zacht); }
.lowerthird .t b { display: block; font-size: 3.6vh; line-height: 1.15; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lowerthird .t span { font-size: 2.2vh; opacity: .8; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: .8vh; background: rgba(255,255,255,.12); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--roze), var(--cyaan)); }

.postit { position: absolute; top: 5vh; right: 3vw; width: 28vw; background: var(--geel); color: var(--paars-diep); padding: 3vh 1.8vw 3.4vh; border-radius: .5vh; font-size: 2.7vh; font-weight: 700; line-height: 1.25; box-shadow: 0 2vh 4vh -1vh rgba(0,0,0,.5); transform: rotate(2.5deg); opacity: 0; transition: opacity .6s, transform .6s; }
.postit.on { opacity: 1; transform: rotate(-1.5deg); }
.postit.roze { background: var(--roze-zacht); }
.postit.cyaan { background: #8fe3f5; }
.postit small { display: block; font-size: 1.6vh; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; opacity: .6; margin-bottom: 1vh; }
.postit.quote { font-style: italic; }

.eq { display: flex; gap: .4vh; align-items: flex-end; height: 3vh; }
.eq i { width: .6vh; background: var(--roze-zacht); border-radius: 99px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%,100% { height: 25%; } 50% { height: 100%; } }
.paused .eq i { animation-play-state: paused; }
.pausebadge { position: absolute; top: 5vh; left: 3vw; background: rgba(0,0,0,.6); padding: 1vh 1.6vw; border-radius: 99px; font-weight: 800; font-size: 2.2vh; display: none; }
.paused .pausebadge { display: block; }

/* Eindkaart */
.endcard { display: grid; place-items: center; text-align: center; }
.endcard .in { position: relative; }
.endcard .done { font-size: 3vh; font-weight: 800; color: var(--roze-zacht); letter-spacing: .1em; text-transform: uppercase; }
.endcard h2 { font-size: 6vh; margin: 2vh 0 4vh; font-weight: 900; line-height: 1.1; max-width: 80vw; }
.endcard .next { font-size: 2.4vh; opacity: .8; margin-bottom: 1.5vh; }
.endcard .hint { margin-top: 3vh; font-size: 1.9vh; opacity: .55; }
.finale-logo { height: 16vh; border-radius: 2vh; margin-bottom: 3vh; }

.toast { position: fixed; left: 50%; bottom: 4vh; translate: -50% 0; background: rgba(0,0,0,.75); color: #fff; padding: 1.2vh 2vw; border-radius: 99px; font-weight: 700; font-size: 2vh; opacity: 0; transition: opacity .3s; pointer-events: none; z-index: 50; }
.toast.on { opacity: 1; }
body[data-mode="end"]:has(.finale-logo) .cornerlogo { opacity: 0; }
