/* ============================================
   risicoperceptie-test.be
   Clean light theme
   ============================================ */

/* --- Custom Properties --- */
:root {
  --bg-deep: #f1f5f9;
  --bg: #ffffff;
  --bg-surface: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  --bg-surface-raised: #e2e8f0;
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-glow: rgba(37, 99, 235, 0.08);
  --blue-glow-strong: rgba(37, 99, 235, 0.15);
  --blue-subtle: rgba(37, 99, 235, 0.06);
  --yt-red: #ff0033;
  --yt-red-hover: #cc0029;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-w: 860px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--blue-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--blue-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  section {
    padding: 5.5rem 0;
  }
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.site-logo {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--blue-primary);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--blue-glow-strong);
}

.lang-switch {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all var(--transition);
}

.lang-switch:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-surface);
}

/* --- Hero --- */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 10rem;
    padding-bottom: 5.5rem;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.07) 0%,
    rgba(37, 99, 235, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: hero-glow 6s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  0% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.15);
  }
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-hover),
    transparent
  );
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue-primary);
  background: var(--blue-subtle);
  border: 1px solid rgba(37, 99, 235, 0.12);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease-out both;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.hero-meta span {
  margin: 0 0.3rem;
  opacity: 0.4;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- CTA Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 650;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--yt-red);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 0, 51, 0.3),
    0 2px 8px rgba(255, 0, 51, 0.2),
    0 8px 24px rgba(255, 0, 51, 0.15);
}

.btn-primary:hover {
  background: var(--yt-red-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 0, 51, 0.4),
    0 4px 12px rgba(255, 0, 51, 0.3),
    0 12px 32px rgba(255, 0, 51, 0.2);
}

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

.btn-primary .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  flex-shrink: 0;
}

.btn-primary .btn-icon svg {
  width: 14px;
  height: 14px;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  padding: 0.85rem 1.5rem;
}

.btn-secondary:hover {
  color: #0f172a;
  background: var(--bg-surface);
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn-lg {
  font-size: 1.08rem;
  padding: 1.05rem 2rem;
  border-radius: 14px;
}

/* --- Section Headers --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* --- Info Section --- */
.info-section .section-desc {
  margin-bottom: 2.5rem;
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-subtle);
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 10px;
  margin-bottom: 1.25rem;
  color: var(--blue-primary);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 750;
  color: #0f172a;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- YouTube Section --- */
.yt-section {
  position: relative;
}

.yt-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.yt-channel-card {
  margin-top: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  transition: border-color var(--transition);
}

.yt-channel-card:hover {
  border-color: var(--border-hover);
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.yt-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yt-red), #cc0029);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yt-avatar svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.yt-channel-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.yt-channel-handle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.yt-channel-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (min-width: 640px) {
  .yt-channel-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem;
  }

  .yt-channel-card .btn {
    flex-shrink: 0;
  }
}

/* --- FAQ Section --- */
.faq-section {
  position: relative;
}

.faq-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.faq-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
  line-height: 1.4;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  display: none;
  content: "";
}

.faq-item summary:hover {
  color: #0f172a;
}

.faq-item summary .faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
}

.faq-item[open] summary .faq-chevron {
  transform: rotate(45deg);
  color: var(--blue-primary);
}

.faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 680px;
}

.faq-answer a {
  color: var(--blue-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: var(--blue-hover);
}

/* --- Final CTA Section --- */
.cta-final {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hover), transparent);
}

.cta-final .container {
  position: relative;
  z-index: 1;
}

.cta-final::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.05) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.cta-final .section-title {
  margin-bottom: 0.75rem;
}

.cta-final .section-desc {
  margin: 0 auto 2rem;
  text-align: center;
}

.cta-final .btn {
  margin: 0 auto;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Footer --- */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner a {
  color: var(--text-secondary);
}

.footer-inner a:hover {
  color: var(--text-primary);
}

/* --- Language Selector Page --- */
.lang-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.lang-page::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.lang-page-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.lang-choices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .lang-choices {
    flex-direction: row;
    max-width: 480px;
  }
}

.lang-choice {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition);
}

.lang-choice:hover {
  background: var(--bg-surface-hover);
  border-color: var(--blue-primary);
  color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.08);
}

.lang-choice-sub {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Selection --- */
::selection {
  background: rgba(37, 99, 235, 0.15);
  color: #0f172a;
}
