/* base.css — globale resets, body, typografie, layout-wrapper.
 * Geen componenten. Componenten staan in components.css.
 * Alle waarden komen uit docs/mockups/v11.html (regels 107-134, 418-425, 1975).
 */

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

html {
  scroll-behavior: smooth;
}

/* ──────────────────────────────────────────────
   Body — base type, kleur, achtergrond.
   font-size: 13px is bewust klein (dashboard-dichtheid v11).
   overflow-x: hidden is nodig voor de live-banner / ticker scroll-loops.
   ────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Achtergrond-glow lagen — fixed, niet scrollend.
   3 ellipses: blauw rechtsboven, violet links-midden, goud onderaan. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 1400px 900px at 80% -10%, rgba(24, 160, 251, 0.04), transparent 60%),
    radial-gradient(ellipse 1000px 600px at 10% 50%, rgba(139, 92, 246, 0.025), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(212, 175, 55, 0.025), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ──────────────────────────────────────────────
   Element-defaults
   ────────────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: white;
}

button {
  font-family: inherit;
  cursor: pointer;
}

a {
  text-decoration: none;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ──────────────────────────────────────────────
   Focus-visible — keyboard-accessibility.
   Default: blauw accent. Op buttons/links: champagne-goud
   omdat die vaker op donkere card-backgrounds zitten.
   .hero-split-input gebruikt eigen border-color voor focus.
   ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
  outline-color: var(--gold-bright);
}

.hero-split-input:focus-visible {
  outline: none;
}

/* ──────────────────────────────────────────────
   Shared keyframes — gebruikt door:
     pulse  → premium-ticker-pulse, live-banner live-dot
     scroll → premium-ticker-track, live-banner live-track
   Eén bron, geen duplicatie tussen component-files.
   ────────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   Reduced motion support — WCAG 2.1 AA.
   Specifieke uitzettingen + globale fallback voor alle
   hover-transitions en toekomstige animaties.
   ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Specifieke animaties */
  .premium-ticker-track,
  .premium-ticker-pulse,
  .live-track,
  .live-dot {
    animation: none;
  }

  /* Globale fallback */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ──────────────────────────────────────────────
   Page wrapper — content-container met max-width.
   Boven z-index: 0 van body::before zodat content klikbaar blijft.
   ────────────────────────────────────────────── */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px 0;
  position: relative;
  z-index: 1;
}

/* ──────────────────────────────────────────────
   Responsive — mobile padding
   ────────────────────────────────────────────── */
@media (max-width: 700px) {
  .page {
    padding: 12px 16px 0;
  }
}
