﻿/* Lekkerish — Shared Dark Theme */
/* Fonts loaded per-page to avoid CORS issues with file:// protocol */

:root {
  --groen:  #00C853;
  --oranje: #FF6D00;
  --blou:   #1565C0;
  --geel:   #FFD600;
  --rooi:   #D50000;
  --pers:   #6A1B9A;
  --wit:    #FAFAFA;
  --donker: #1A1A2E;
  --kaart:  #FFFFFF;
  --shadow:    0 8px 0px rgba(0,0,0,0.2);
  --shadow-sm: 0 4px 0px rgba(0,0,0,0.15);
}

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

body {
  font-family: 'Nunito', sans-serif;
  background: var(--donker);
  color: var(--wit);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(0,200,83,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,109,0,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(21,101,192,0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---- HEADER ---- */
header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--geel), var(--oranje), var(--rooi));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  text-decoration: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.xp-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  padding: 7px 14px;
  border-radius: 50px;
}

.xp-track {
  width: 90px;
  height: 10px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--groen), var(--geel));
  border-radius: 10px;
  transition: width 0.5s ease;
}

.xp-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--geel);
}

.streak-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,109,0,0.2);
  border: 2px solid var(--oranje);
  padding: 5px 12px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--oranje);
}

.back-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }

/* ---- LAYOUT ---- */
.content {
  position: relative;
  z-index: 1;
  padding: 28px 20px 80px;
  max-width: 920px;
  margin: 0 auto;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.6rem;
  margin-bottom: 6px;
  color: var(--geel);
}

.section-sub {
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ---- BUTTONS ---- */
.btn {
  padding: 12px 28px;
  border-radius: 50px;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
}
.btn:active { transform: translateY(3px); box-shadow: none; }

.btn-green  { background: var(--groen); color: #fff; }
.btn-green:hover  { background: #00b34a; }
.btn-orange { background: var(--oranje); color: #fff; }
.btn-orange:hover { background: #e06200; }
.btn-blue   { background: var(--blou); color: #fff; }
.btn-blue:hover   { background: #0d47a1; }
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: none;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---- FEEDBACK ---- */
.feedback-banner {
  padding: 14px 20px;
  border-radius: 14px;
  font-weight: 800;
  margin-bottom: 16px;
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.feedback-banner.correct { background: rgba(0,200,83,0.2);  border: 2px solid var(--groen); color: var(--groen); display: flex; }
.feedback-banner.wrong   { background: rgba(213,0,0,0.2);   border: 2px solid var(--rooi);  color: #ff6b6b;      display: flex; }
.feedback-banner.partial { background: rgba(255,214,0,0.12); border: 2px solid var(--geel); color: var(--geel);  display: flex; }

/* ---- TIMER ---- */
.timer-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  height: 12px;
  margin-bottom: 20px;
  overflow: hidden;
}
.timer-fill {
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--groen), var(--geel));
  transition: width 1s linear;
}
.timer-fill.warning { background: linear-gradient(90deg, var(--oranje), var(--rooi)); }

/* ---- PROGRESS DOTS ---- */
.progress-dots { display: flex; gap: 8px; }

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.2);
  transition: all 0.3s;
}
.dot.current { border-color: var(--blou); background: rgba(21,101,192,0.4); }
.dot.correct { background: var(--groen); border-color: var(--groen); }
.dot.wrong   { background: var(--rooi);  border-color: var(--rooi); }

/* ---- EXAMPLE BOXES ---- */
.example-box {
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 12px 16px;
}
.example-af {
  font-weight: 700;
  color: var(--geel);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.example-en {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  font-style: italic;
}

/* ---- ANIMATIONS ---- */
@keyframes confettiBounce {
  0%   { transform: translate(-50%,-50%) scale(0.3); opacity: 0; }
  55%  { transform: translate(-50%,-50%) scale(1.3); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(1);   opacity: 0; }
}

.confetti-pop {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 3rem;
  z-index: 1000;
  pointer-events: none;
  animation: confettiBounce 0.8s ease forwards;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-8px); }
  40%       { transform: translateX(8px); }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px); }
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.1); }
  100% { transform: scale(1);   opacity: 1; }
}

.pop-in { animation: popIn 0.3s ease forwards; }

/* ---- RESPONSIVE ---- */
@media (max-width: 500px) {
  header  { padding: 12px 16px; }
  .content { padding: 20px 14px 60px; }
  .btn    { padding: 10px 20px; font-size: 0.9rem; }
  .xp-track { width: 60px; }
}
