/* ===========================================
   Eindexamensite Stylesheet
   Gebaseerd op Adobe XD design
   =========================================== */

/* ----- Design Tokens ----- */
:root {
  /* Kleuren - Primary */
  --color-primary-dark: #0D315A;
  --color-primary: #164273;
  --color-primary-light: #ABC4E5;

  /* Kleuren - Backgrounds */
  --color-bg-light: #F0F9FF;
  --color-bg-lighter: #F2F8FF;
  --color-bg-white: #FFFFFF;

  /* Kleuren - Feedback */
  --color-error: #E58484;
  --color-error-bg: #FFE3E3;
  --color-success: #67AD96;
  --color-success-bg: #DAF0D9;
  --color-warning: #D1B900;
  --color-warning-bg: #FAEED7;

  /* Kleuren - Tekst */
  --color-text-dark: #000000;
  --color-text-muted: #575C61;
  --color-text-inverse: #FFFFFF;

  /* Kleuren - Accent */
  --color-accent: #BE006C;

  /* Typography */
  --font-primary: 'Outfit', sans-serif;
  --font-fallback: Arial, sans-serif;

  /* Font sizes */
  --text-sm: 16px;
  --text-base: 20px;
  --text-lg: 40px;
  --text-xl: 60px;

  /* Line heights */
  --leading-tight: 1.25;
  --leading-normal: 1.5;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
}

/* ----- Typography ----- */
h1 {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.17;
  color: var(--color-primary);
}

h2 {
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-primary);
}

h3 {
  font-size: var(--text-base);
  font-weight: 700;
  line-height: var(--leading-normal);
  color: var(--color-primary);
}

p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-dark);
}

a {
  color: var(--color-primary);
  text-decoration: underline;
}

a:hover {
  color: var(--color-primary-dark);
}

/* ----- Layout ----- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: 0 2px 8px rgba(13, 49, 90, 0.08);
}

/* ----- Header ----- */
.header {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-md) 0;
}

.header-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-inverse);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

.btn-secondary {
  background: var(--color-bg-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-bg-lighter);
}

/* ----- Form Elements ----- */
.input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: var(--text-sm);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  background: var(--color-bg-white);
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.input-highlight {
  background: var(--color-warning-bg);
  border-color: var(--color-warning);
}

/* ----- Feedback Boxes ----- */
.feedback {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
}

.feedback-error {
  background: var(--color-error-bg);
  border-left: 4px solid var(--color-error);
}

.feedback-error .feedback-title {
  color: var(--color-error);
}

.feedback-success {
  background: var(--color-success-bg);
  border-left: 4px solid var(--color-success);
}

.feedback-success .feedback-title {
  color: var(--color-success);
}

.feedback-warning {
  background: var(--color-warning-bg);
  border-left: 4px solid var(--color-warning);
}

.feedback-title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

/* ----- Badge/Tag ----- */
.badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-sm);
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.badge-warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

/* ----- Navigation ----- */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 700;
}

.nav-link:hover {
  text-decoration: underline;
}

/* ----- Pagination ----- */
.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  justify-content: center;
}

.pagination-item {
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

.pagination-item.active {
  color: var(--color-primary);
  font-weight: 700;
  border-bottom: 3px solid var(--color-primary);
}

.pagination-item.correct {
  border-bottom: 3px solid var(--color-success);
}

.pagination-item.incorrect {
  border-bottom: 3px solid var(--color-error);
}

/* ----- Opt-in Section ----- */
.optin {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-text-inverse);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  text-align: center;
}

.optin h2 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-md);
}

.optin p {
  color: var(--color-primary-light);
  margin-bottom: var(--space-lg);
}

.optin .input {
  max-width: 400px;
  margin: 0 auto var(--space-md);
}

/* ----- Utilities ----- */
.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ----- Grid voor vakken/niveaus ----- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.subject-card {
  background: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 2px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.subject-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 4px 12px rgba(13, 49, 90, 0.12);
}

.subject-card h3 {
  margin-bottom: var(--space-sm);
}

.level-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-md);
}

/* ----- Additional styles for generated pages ----- */

/* ===========================================
   Homepage Hero & Content Sections
   =========================================== */

/* ===========================================
   Hero Section - Clean & Friendly
   =========================================== */

.hero {
  position: relative;
  padding: 100px 0 80px;
  color: var(--color-text-inverse);
  overflow: hidden;
}

/* Background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0a1628 0%,
    var(--color-primary-dark) 25%,
    var(--color-primary) 50%,
    #1a5490 75%,
    var(--color-primary-dark) 100%
  );
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Particle container */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Individual particles */
.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: floatParticle linear infinite;
}

.particle-bright {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

@keyframes floatParticle {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100vh) translateX(30px);
    opacity: 0;
  }
}

/* Subtle floating glow orbs */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}

.hero-glow-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.15);
  top: -15%;
  right: -5%;
}

.hero-glow-2 {
  width: 300px;
  height: 300px;
  background: rgba(190, 0, 108, 0.2);
  bottom: -10%;
  left: -5%;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  margin-bottom: 28px;
  animation: fadeIn 0.6s ease-out both, badgePulse 3s ease-in-out 2s infinite;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
  color: #fff;
}

.hero-badge-icon {
  font-size: 14px;
  display: inline-block;
  animation: zapBolt 4s ease-in-out infinite;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 0 20px 2px rgba(255, 255, 255, 0.15);
  }
}

@keyframes zapBolt {
  0%, 90%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  93% {
    transform: scale(1.3) rotate(-10deg);
    opacity: 1;
  }
  96% {
    transform: scale(0.9) rotate(10deg);
    opacity: 0.8;
  }
}

/* Hero Title */
.hero-text {
  margin-bottom: 48px;
}

.hero-title {
  font-size: clamp(48px, 10vw, 88px);
  font-weight: 700;
  color: var(--color-text-inverse);
  margin: 0 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.05;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  font-weight: 400;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Waving hand animation */
.hero-wave {
  display: inline-block;
  font-size: 1.4em;
  margin-left: 4px;
  animation: wave 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50%, 100% { transform: rotate(0deg); }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 20px 28px;
  max-width: 720px;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
  padding: 8px 24px;
}

.hero-stat-value {
  display: block;
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  color: var(--color-text-inverse);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.hero-stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 80px 0 60px;
  }

  .hero-badge {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .hero-text {
    margin-bottom: 36px;
  }

  .hero-stats {
    gap: 4px;
    padding: 16px 20px;
  }

  .hero-stat {
    padding: 6px 14px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-glow-1,
  .hero-glow-2 {
    opacity: 0.15;
  }
}

/* Main Content Area */
.main-content {
  padding: 48px 0 64px;
}

/* Content Sections */
.content-section {
  display: flex;
  gap: 24px;
  background: var(--color-bg-white);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(13, 49, 90, 0.08), 0 4px 12px rgba(13, 49, 90, 0.04);
  animation: fadeInUp 0.5s ease-out both;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.content-section:hover {
  box-shadow: 0 4px 12px rgba(13, 49, 90, 0.1), 0 12px 32px rgba(13, 49, 90, 0.1);
  transform: translateY(-2px);
}

.content-section-cta {
  background: linear-gradient(135deg, var(--color-bg-lighter) 0%, var(--color-bg-white) 100%);
  border: 2px dashed var(--color-primary-light);
}

.content-section-cta:hover {
  border-color: var(--color-primary);
}

/* Section Icons with hover effect */
.section-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  border-radius: 14px;
  color: var(--color-text-inverse);
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(13, 49, 90, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-section:hover .section-icon {
  transform: scale(1.05) rotate(-3deg);
  box-shadow: 0 6px 16px rgba(13, 49, 90, 0.25);
}

.section-icon-accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, #8a004d 100%);
  box-shadow: 0 4px 12px rgba(190, 0, 108, 0.25);
}

.content-section:hover .section-icon-accent {
  box-shadow: 0 6px 16px rgba(190, 0, 108, 0.35);
}

.section-body {
  flex: 1;
  min-width: 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 12px;
  line-height: 1.3;
}

.section-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 20px;
  max-width: 640px;
}

/* Coming Soon Badge with animation */
.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-warning-bg);
  color: #856404;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  animation: comingSoonPulse 3s ease-in-out infinite;
}

.coming-soon-badge i {
  font-size: 14px;
  animation: clockTick 2s ease-in-out infinite;
}

@keyframes comingSoonPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(209, 185, 0, 0); }
  50% { box-shadow: 0 0 0 8px rgba(209, 185, 0, 0.1); }
}

@keyframes clockTick {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(15deg); }
  20% { transform: rotate(0deg); }
}

@media (max-width: 600px) {
  .content-section {
    flex-direction: column;
    padding: 24px;
  }

  .section-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 12px;
  }
}

/* Site Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 32px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-heart {
  display: inline-block;
  color: #e25555;
  animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  30% { transform: scale(1); }
  45% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy home-section styles (for compatibility) */
.home-section {
  margin-bottom: var(--space-xl);
}

.intro-text {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-dark);
  max-width: 800px;
}

/* Selector dropdowns */
.selector-container {
  background: var(--color-bg-lighter);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
}

.selector-row {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-end;
  flex-wrap: wrap;
}

.selector-field {
  flex: 1;
  min-width: 200px;
}

.selector-field-wide {
  flex: 2;
  min-width: 300px;
}

.selector-field label {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 14px;
}

.selector-field select {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.selector-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(22, 66, 115, 0.15);
  outline: none;
}

.selector-field select:not(:disabled):hover {
  border-color: var(--color-primary);
}

.selector-field select:disabled {
  background: var(--color-bg-light);
  cursor: not-allowed;
  opacity: 0.7;
}

.selector-field select option:disabled {
  color: var(--color-text-muted);
}

/* Dropdown enabled animation */
.selector-field select.just-enabled {
  animation: dropdownEnabled 0.4s ease-out;
}

@keyframes dropdownEnabled {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.selector-button {
  flex: 0 0 auto;
  min-width: auto;
}

/* Button with shine effect */
.selector-button .btn {
  height: 44px;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.selector-button .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  transition: left 0.5s ease;
}

.selector-button .btn:not(:disabled):hover::before {
  left: 100%;
}

.selector-button .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button enabled pulse */
.selector-button .btn.just-enabled {
  animation: buttonEnabled 0.5s ease-out;
}

@keyframes buttonEnabled {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Collapsible subtopics */
.collapsible .collapsible-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: inherit;
}

.collapsible .collapsible-toggle:hover {
  opacity: 0.8;
}

.collapsible-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 0.2s;
}

.collapsible-icon i {
  font-size: 12px;
}

.collapsible-content {
  margin-top: var(--space-md);
  padding-left: 28px;
}

.collapsible-content[hidden] {
  display: none;
}

/* Page title */
.page-title {
  font-size: 36px;
}

/* Syllabus section */
.syllabus-section {
  background: linear-gradient(135deg, var(--color-bg-lighter) 0%, var(--color-bg-white) 100%);
  border-left: 4px solid var(--color-primary);
}

.syllabus-content {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.syllabus-icon {
  font-size: 32px;
  color: var(--color-primary);
  flex-shrink: 0;
}

.syllabus-text {
  flex: 1;
  min-width: 200px;
}

.syllabus-text strong {
  color: var(--color-primary);
  font-size: 18px;
}

.syllabus-text p {
  margin: var(--space-xs) 0 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.syllabus-section .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .syllabus-content {
    flex-direction: column;
    text-align: center;
  }

  .syllabus-section .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Navigation bar */
.nav-bar {
  background: var(--color-primary);
  padding: var(--space-md) 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-bar-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.nav-home-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.nav-home-link:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-text-inverse);
}

.nav-separator {
  color: var(--color-primary-light);
  font-size: 20px;
}

.nav-selectors {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.nav-select {
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.95);
  color: var(--color-primary);
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nav-select-wide {
  min-width: 250px;
}

.nav-select:hover {
  border-color: var(--color-primary-light);
}

.nav-select:focus {
  outline: none;
  border-color: var(--color-text-inverse);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.nav-select option:disabled {
  color: #999;
}

@media (max-width: 600px) {
  .nav-bar-content {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-separator {
    display: none;
  }

  .nav-selectors {
    flex-direction: column;
  }

  .nav-select {
    width: 100%;
  }
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--color-text-inverse);
}

.breadcrumb-sep {
  color: var(--color-primary-light);
}

/* Topic sections */
.topic-section {
  margin-bottom: var(--space-lg);
}

.topic-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.topic-content {
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.topic-content p {
  margin-bottom: var(--space-sm);
}

.topic-content ul, .topic-content ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

/* Subtopics */
.subtopics {
  border-top: 1px solid var(--color-primary-light);
  padding-top: var(--space-md);
  margin-top: var(--space-md);
}

.subtopic-item {
  padding: var(--space-md);
  background: var(--color-bg-lighter);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.subtopic-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.subtopic-header h4 {
  color: var(--color-primary);
  font-size: 18px;
  margin: 0;
}

.subtopic-content {
  font-size: 15px;
  line-height: 1.6;
}

.subtopic-content p {
  margin-bottom: var(--space-xs);
}

.nested-subtopics {
  margin-top: var(--space-md);
  margin-left: var(--space-md);
  padding-left: var(--space-md);
  border-left: 2px solid var(--color-primary-light);
}

/* Importance badges */
.badge-high {
  background: var(--color-error-bg);
  color: #c0392b;
}

.badge-medium {
  background: var(--color-warning-bg);
  color: #856404;
}

.badge-low {
  background: var(--color-bg-lighter);
  color: var(--color-text-muted);
}

/* Opt-in form */
.optin-form {
  max-width: 400px;
  margin: 0 auto;
}

.optin-form .input {
  text-align: center;
}

/* ===========================================
   Examenvragen Pagina Styles
   =========================================== */

/* Questions header */
.questions-header {
  margin-bottom: var(--space-lg);
}

.questions-header-top {
  margin-bottom: var(--space-lg);
}

.questions-title {
  font-size: 32px;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.questions-meta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.questions-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-bg-lighter);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.questions-tag.highlight {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.stat-card {
  background: var(--color-bg-lighter);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Filter bar */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.search-box input {
  width: 100%;
  padding: var(--space-sm) var(--space-md) var(--space-sm) 40px;
  border: 2px solid var(--color-bg-lighter);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  background: var(--color-bg-lighter);
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-bg-white);
}

.filter-divider {
  width: 1px;
  height: 32px;
  background: var(--color-primary-light);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.filter-select {
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm);
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--color-bg-white);
  cursor: pointer;
  color: var(--color-primary);
}

.filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Results info */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding: 0 var(--space-xs);
}

.results-count {
  font-size: 14px;
  color: var(--color-text-muted);
}

.results-count strong {
  color: var(--color-primary);
}

.sort-select {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  color: var(--color-text-muted);
}

.sort-select select {
  padding: var(--space-xs) var(--space-sm);
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

/* Questions list */
.questions-list {
  overflow: hidden;
  padding: 0;
}

.list-header {
  display: grid;
  grid-template-columns: 100px 1fr 100px 80px 100px;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-bg-lighter);
  border-bottom: 1px solid var(--color-primary-light);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.question-row {
  display: grid;
  grid-template-columns: 100px 1fr 100px 80px 100px;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-bg-lighter);
  align-items: center;
  transition: background 0.2s;
}

.question-row:last-child {
  border-bottom: none;
}

.question-row:hover {
  background: var(--color-bg-lighter);
}

.row-year {
  display: flex;
  align-items: center;
}

.badge-year {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.row-question {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.question-ref {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
}

.question-text {
  font-size: 14px;
  color: var(--color-text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-type {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 14px;
  color: var(--color-text-muted);
}

.row-type i {
  font-size: 14px;
}

.row-points {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-points {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
}

.row-difficulty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-difficulty {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.badge-difficulty.easy {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-difficulty.medium {
  background: var(--color-warning-bg);
  color: #856404;
}

.badge-difficulty.hard {
  background: var(--color-error-bg);
  color: #c0392b;
}

.badge-difficulty.unknown {
  background: var(--color-bg-lighter);
  color: var(--color-text-muted);
}

/* Nav back link */
.nav-back-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}

.nav-back-link:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-text-inverse);
}

/* Topic questions link button */
.topic-questions-link {
  margin-top: var(--space-md);
}

/* Subtopic questions link button */
.subtopic-questions-link {
  margin-top: var(--space-sm);
}

.subtopic-questions-link .btn {
  font-size: 13px;
}

/* Small button variant */
.btn-sm {
  padding: var(--space-xs) var(--space-sm);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .list-header,
  .question-row {
    grid-template-columns: 80px 1fr 80px 60px;
  }

  .row-difficulty {
    display: none;
  }

  .list-header span:last-child {
    display: none;
  }
}

@media (max-width: 600px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-divider {
    display: none;
  }

  .search-box {
    min-width: 100%;
  }

  .list-header {
    display: none;
  }

  .question-row {
    grid-template-columns: 1fr auto;
    gap: var(--space-sm);
  }

  .row-year {
    display: none;
  }

  .row-type {
    display: none;
  }

  .question-ref::before {
    content: attr(data-year) ' - ';
  }
}
