/* =========================================================
   What.Nade — Dark Neon Theme (no blue)
   ========================================================= */

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

:root {
  --bg:        #0a0a0a;
  --surface:   #101010;
  --card:      #161616;
  --card-2:    #1c1c1c;
  --border:    #1e1e1e;
  --border-lt: #2c2c2c;

  --text:      #eaeaea;
  --dim:       #888;
  --muted:     #444;

  /* Neon palette — zero blue */
  --orange:    #ff6b35;
  --orange-d:  #cc5228;
  --orange-g:  rgba(255,107,53,.28);
  --green:     #39ff14;
  --green-g:   rgba(57,255,20,.2);
  --purple:    #bf5af2;
  --purple-g:  rgba(191,90,242,.25);
  --red:       #ff073a;
  --red-g:     rgba(255,7,58,.2);

  --radius:    10px;
  --transition: .25s ease;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Progress bar ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  z-index: 200;
}
#progress-fill {
  height: 100%;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange-g);
  transition: width .5s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* ── Error/invalid screen ── */
.screen-center {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
}
.error-card {
  background: var(--card); border: 1px solid var(--border-lt);
  border-radius: var(--radius); padding: 48px; text-align: center; max-width: 400px;
}
.error-icon { font-size: 40px; margin-bottom: 16px; }
.error-card h1 { font-size: 22px; margin-bottom: 10px; }
.error-card p  { color: var(--dim); }
.error-card code { background: var(--card-2); padding: 2px 6px; border-radius: 4px; font-size: 14px; color: var(--orange); }

/* ── Quiz wrap ── */
#quiz-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px 40px;
}

/* ── Screens ── */
.quiz-screen { display: none; width: 100%; max-width: 680px; }
.quiz-screen.active { display: block; }

/* ── Welcome ── */
.welcome-card {
  background: var(--card); border: 1px solid var(--border-lt);
  border-radius: 16px; padding: 60px 48px; text-align: center;
  animation: fadeUp .5s ease;
}
.welcome-label {
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  color: var(--dim); margin-bottom: 8px;
}
.welcome-name {
  font-size: 52px; font-weight: 800; color: var(--orange);
  text-shadow: 0 0 40px var(--orange-g);
  margin-bottom: 16px; letter-spacing: -.02em;
}
.welcome-sub {
  font-size: 16px; color: var(--dim); max-width: 360px; margin: 0 auto 40px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: #000;
  font-weight: 700; font-size: 17px;
  padding: 16px 36px; border-radius: 8px; border: none;
  cursor: pointer; transition: all var(--transition);
  letter-spacing: .02em;
}
.btn-primary:hover {
  background: #ff7d4d;
  box-shadow: 0 0 28px var(--orange-g);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 44px; font-size: 18px; }
.btn-arrow { font-size: 20px; }

/* ── Question card ── */
.q-card {
  background: var(--card); border: 1px solid var(--border-lt);
  border-radius: 16px; padding: 44px 48px;
  animation: fadeUp .35s ease;
  min-height: 380px; display: flex; flex-direction: column;
}
@media (max-width: 600px) {
  .q-card { padding: 28px 22px; }
  .welcome-card { padding: 40px 24px; }
  .welcome-name { font-size: 36px; }
}

.q-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
}
.q-section {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted); max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.q-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

.q-content { flex: 1; }

/* ── Context / narrative items ── */
.item-context {
  font-style: italic; color: var(--dim);
  border-left: 2px solid var(--purple);
  padding: 10px 16px; margin-bottom: 20px;
  font-size: 15px; line-height: 1.7;
  background: rgba(191,90,242,.06); border-radius: 0 6px 6px 0;
}
.item-narrative, .item-info {
  color: var(--dim); font-size: 15px; line-height: 1.8;
}
.item-section {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--orange); font-weight: 600;
}

/* ── Media ── */
.media-wrap { margin: 8px 0; }
.media-wrap video,
.media-wrap audio {
  width: 100%; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--border-lt);
}
.media-wrap audio { display: block; }

/* ── Question text ── */
.q-text {
  font-size: 22px; font-weight: 600; color: var(--text);
  line-height: 1.45; margin-bottom: 32px;
}
@media (max-width: 600px) { .q-text { font-size: 18px; } }

/* ── Toggle (Ja/Nee) ── */
.toggle-group {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.toggle-btn {
  flex: 1; min-width: 100px;
  background: var(--card-2); border: 1px solid var(--border-lt);
  color: var(--dim); padding: 18px 24px;
  border-radius: 8px; cursor: pointer;
  font-size: 18px; font-weight: 600; letter-spacing: .04em;
  transition: all var(--transition); text-align: center;
}
.toggle-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 16px var(--orange-g);
}
.toggle-btn.selected {
  background: var(--orange-g);
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: 0 0 20px var(--orange-g);
}

/* ── Textarea ── */
.q-textarea {
  width: 100%; min-height: 130px;
  background: var(--card-2); border: 1px solid var(--border-lt);
  color: var(--text); padding: 16px 18px; border-radius: 8px;
  font-size: 16px; line-height: 1.6; resize: vertical;
  font-family: inherit; outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.q-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 16px var(--orange-g);
}
.q-textarea::placeholder { color: var(--muted); }

/* ── Select ── */
.q-select {
  width: 100%;
  background: var(--card-2); border: 1px solid var(--border-lt);
  color: var(--text); padding: 14px 18px; border-radius: 8px;
  font-size: 16px; outline: none; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.q-select:focus, .q-select:hover {
  border-color: var(--orange);
  box-shadow: 0 0 14px var(--orange-g);
}
.q-select option { background: var(--card-2); }

/* ── Radio cards ── */
.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card, .checkbox-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card-2); border: 1px solid var(--border-lt);
  border-radius: 8px; padding: 14px 18px; cursor: pointer;
  transition: all var(--transition);
}
.radio-card:hover, .checkbox-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 14px var(--purple-g);
}
.radio-card.selected, .checkbox-card.selected {
  border-color: var(--purple);
  background: var(--purple-g);
}
.radio-indicator, .checkbox-indicator {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-lt); flex-shrink: 0;
  transition: all var(--transition);
}
.checkbox-indicator { border-radius: 4px; }
.radio-card.selected .radio-indicator {
  border-color: var(--purple);
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple-g);
}
.checkbox-card.selected .checkbox-indicator {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 8px var(--green-g);
}
.radio-label, .checkbox-label { font-size: 16px; color: var(--text); }

/* ── Navigation ── */
.q-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  gap: 10px;
}
.btn-nav {
  padding: 12px 22px; border-radius: 7px; border: none; cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  transition: all var(--transition);
}
.btn-prev {
  background: none; border: 1px solid var(--border-lt); color: var(--purple);
}
.btn-prev:hover {
  border-color: var(--purple);
  box-shadow: 0 0 12px var(--purple-g);
}
.btn-skip {
  background: none; border: 1px solid var(--border); color: var(--muted);
  font-weight: 400;
}
.btn-skip:hover { border-color: var(--border-lt); color: var(--dim); }
.btn-next {
  background: var(--orange); color: #000; font-weight: 700;
}
.btn-next:hover {
  background: #ff7d4d;
  box-shadow: 0 0 20px var(--orange-g);
  transform: translateY(-1px);
}

/* ── Page dots ── */
.page-dots {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 28px;
}
.page-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-lt); cursor: pointer;
  transition: all var(--transition);
}
.page-dot.active {
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange-g);
  width: 22px; border-radius: 4px;
}
.page-dot.done { background: var(--muted); }

/* ── Complete screen ── */
.complete-card {
  background: var(--card); border: 1px solid var(--border-lt);
  border-radius: 16px; padding: 60px 48px; text-align: center;
  animation: fadeUp .5s ease;
}
.complete-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green-g); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px; color: var(--green);
  box-shadow: 0 0 28px var(--green-g);
  animation: pulse-green 2s infinite;
}
.complete-card h2 { font-size: 32px; margin-bottom: 12px; }
.complete-card p  { color: var(--dim); font-size: 17px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-28px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 28px var(--green-g); }
  50%       { box-shadow: 0 0 48px rgba(57,255,20,.4); }
}

.anim-left  { animation: slideLeft  .3s ease; }
.anim-right { animation: slideRight .3s ease; }
