/* ── Gilroy (lokaal gebundeld vanuit ZOKA assets) ────────── */
@font-face {
  font-family: 'Gilroy';
  src: url('webfonts/Gilroy-SemiBold.woff2') format('woff2'),
       url('webfonts/Gilroy-SemiBold.woff')  format('woff');
  font-weight: 600;
  font-style:  normal;
  font-display: block;
}
@font-face {
  font-family: 'Gilroy';
  src: url('webfonts/Gilroy-ExtraBold.woff2') format('woff2'),
       url('webfonts/Gilroy-ExtraBold.woff')  format('woff');
  font-weight: 800;
  font-style:  normal;
  font-display: block;
}
@font-face {
  font-family: 'Gilroy';
  src: url('webfonts/Gilroy-Black.woff2') format('woff2'),
       url('webfonts/Gilroy-Black.woff')  format('woff');
  font-weight: 900;
  font-style:  normal;
  font-display: block;
}

/* ── Merkvariabelen (exacte ZOKA kleuren) ────────────────── */
:root {
  --rood:      #e73532;
  --rood-dark: #bb1702;
  --cyaan:     #00abd1;
  --geel:      #fced45;
  --groen:     #17ba69;
  --donker:    #0d0d0d;
  --grijs:     #404040;
  --licht:     #d9d9d9;
  --wit:       #ffffff;

  --border:    4px solid var(--donker);
}

/* ── Reset / basis ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: 'Gilroy', system-ui, sans-serif;
  font-weight: 600;
  background: var(--wit);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: manipulation;
  color: var(--donker);
}

/* ── Header / logo ───────────────────────────────────────── */
.header {
  flex-shrink: 0;
  background: var(--wit);
  border-bottom: var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 40px 24px;
  gap: 0;
  position: relative;
}

.logo-img {
  height: 140px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  display: block;
}

/* Gekleurde decoratiestreep onder header */
.kleur-balk {
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 8px;
  display: flex;
  z-index: 1;
}
.kleur-balk span {
  flex: 1;
}
.kleur-balk .k1 { background: var(--rood);  }
.kleur-balk .k2 { background: var(--geel);  }
.kleur-balk .k3 { background: var(--groen); }
.kleur-balk .k4 { background: var(--cyaan); }

/* ── Progress ────────────────────────────────────────────── */
.progress-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 40px 20px;
  gap: 14px;
}

.progress-label {
  font-weight: 800;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--grijs);
}

.progress-dots {
  display: flex;
  gap: 20px;
  align-items: center;
}

.progress-dot {
  width: 24px;
  height: 24px;
  border: 3px solid var(--donker);
  border-radius: 50%;
  background: var(--wit);
  transition: background 0.25s, transform 0.25s;
}

.progress-dot.active {
  background: var(--donker);
  transform: scale(1.2);
}

/* ── Stelling kaart ──────────────────────────────────────── */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 32px;
  min-height: 0;
}

.stelling-card {
  width: 100%;
  border: var(--border);
  padding: 40px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Gekleurde hoekaccenten */
.stelling-card::before,
.stelling-card::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
}
.stelling-card::before {
  top: -4px;
  left: -4px;
  background: var(--rood);
}
.stelling-card::after {
  bottom: -4px;
  right: -4px;
  background: var(--cyaan);
}

.stelling-tekst {
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  font-weight: 900;
  color: var(--donker);
  line-height: 1.2;
}

/* ── Stemknoppen ─────────────────────────────────────────── */
.button-area {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-top: var(--border);
}

.vote-btn {
  border: none;
  border-radius: 0;
  padding: 28px 48px;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  font-family: 'Gilroy', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  min-height: 140px;
  transition: filter 0.1s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.vote-btn:not(:last-child) {
  border-bottom: var(--border);
}

.vote-btn:active {
  filter: brightness(0.82);
}

.vote-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-icon {
  font-size: 3.8rem;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

/* ── Terug-naar-start knop ───────────────────────────────── */
.reset-knop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Gilroy', system-ui, sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--grijs);
  text-decoration: none;
  border: 2px solid var(--licht);
  padding: 10px 18px;
  transition: border-color 0.15s, color 0.15s;
  cursor: pointer;
  background: none;
}

.reset-knop:active {
  color: var(--rood);
  border-color: var(--rood);
}

/* Grote reset op QR pagina */
.reset-knop-groot {
  font-size: 1.4rem;
  letter-spacing: 2px;
  padding: 24px 48px;
  border: var(--border);
  color: var(--donker);
  background: var(--geel);
  font-weight: 900;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  text-align: center;
}

.btn-groen {
  background: var(--groen);
  color: var(--wit);
}

.btn-oranje {
  background: var(--geel);
  color: var(--donker);
}

.btn-rood {
  background: var(--rood);
  color: var(--wit);
}

/* ── Feedback overlay ────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

.feedback-icon {
  font-size: 11rem;
  line-height: 1;
  animation: popIn 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
  from { transform: scale(0.2) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1)   rotate(0deg);  opacity: 1; }
}

/* ── QR pagina ───────────────────────────────────────────── */
.qr-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  gap: 28px;
  min-height: 0;
}

.bedankt-titel {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  font-weight: 900;
  color: var(--donker);
  text-align: center;
  line-height: 1.15;
}

.bedankt-titel mark {
  background: var(--geel);
  color: var(--donker);
  padding: 0 8px;
  font-style: normal;
}

.qr-box {
  border: var(--border);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  background: var(--wit);
}

.qr-box::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 20px;
  height: 20px;
  background: var(--rood);
}

.qr-box::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--groen);
}

.qr-label {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--donker);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.qr-sublabel {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--grijs);
  text-align: center;
  letter-spacing: 1px;
}

/* Countdown */
.countdown-wrap {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown-bar-bg {
  width: 100%;
  height: 10px;
  border: 3px solid var(--donker);
  background: var(--wit);
  overflow: hidden;
}

.countdown-bar {
  height: 100%;
  background: var(--donker);
  transform-origin: left;
  transition: transform 1s linear;
}

.countdown-tekst {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--grijs);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
}
