/* ==========================================================================
   ATALAIA FUTEBOL CLUBE (@atalaiafc.se) — DESIGN TOKENS & ACCESSIBILITY MODES
   ========================================================================== */

:root {
  /* Paleta Oficial Extraída do Escudo e Instagram @atalaiafc.se */
  --atalaia-blue: #1B2F6B;
  --atalaia-blue-deep: #0D193B;
  --atalaia-blue-mid: #28428C;
  --atalaia-blue-light: #4A66B8;
  --atalaia-blue-soft: #EEF2FB;

  --atalaia-gold: #F6CD33;
  --atalaia-gold-bright: #FADB4C;
  --atalaia-amber: #D6AF2C;
  --atalaia-orange: #E08A1E;
  --atalaia-gold-soft: #FEF9E6;

  /* Neutros e Superfícies */
  --atalaia-white: #FFFFFF;
  --atalaia-bg: #F8FAFC;
  --atalaia-surface: #FFFFFF;
  --atalaia-surface-alt: #F1F5F9;
  --atalaia-border: #E2E8F0;
  --atalaia-text: #0F172A;
  --atalaia-text-secondary: #334155;
  --atalaia-text-muted: #64748B;
  --atalaia-dark: #0A1128;

  /* Estados Esportivos e Semânticos */
  --atalaia-turf: #15803D;
  --atalaia-turf-light: #DCFCE7;
  --atalaia-warning: #B45309;
  --atalaia-warning-light: #FEF3C7;
  --atalaia-danger: #B91C1C;
  --atalaia-danger-light: #FEE2E2;
  --atalaia-info: #0369A1;
  --atalaia-info-light: #E0F2FE;

  /* Tipografia */
  --font-display: 'Outfit', 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-sans: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --base-font-size: 16px;
  --line-height-base: 1.6;
  --letter-spacing-base: normal;
  --word-spacing-base: normal;

  /* Raios de Borda */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(13, 25, 59, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 25, 59, 0.09);
  --shadow-lg: 0 20px 50px rgba(13, 25, 59, 0.14);
  --shadow-gold: 0 10px 28px rgba(246, 205, 51, 0.32);

  /* Layout */
  --container: 1280px;
  --header-height: 84px;
  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   PREFERÊNCIAS DE LEITURA (ACESSIBILIDADE) — ESTADOS GLOBAIS NO <html>
   ========================================================================== */

/* 1. Tamanho do texto: Padrão | Maior | Muito maior */
html[data-font-scale="default"] {
  font-size: 16px;
}
html[data-font-scale="large"] {
  font-size: 18px;
}
html[data-font-scale="xlarge"] {
  font-size: 20px;
}

/* 2. Alto Contraste (WCAG AAA) */
html[data-high-contrast="true"] {
  --atalaia-blue: #000000;
  --atalaia-blue-deep: #000000;
  --atalaia-blue-mid: #111111;
  --atalaia-blue-soft: #1F1F1F;
  --atalaia-gold: #FFFF00;
  --atalaia-gold-bright: #FFFF00;
  --atalaia-amber: #FFD700;
  --atalaia-bg: #000000;
  --atalaia-surface: #0A0A0A;
  --atalaia-surface-alt: #141414;
  --atalaia-border: #FFFF00;
  --atalaia-text: #FFFFFF;
  --atalaia-text-secondary: #FFFF00;
  --atalaia-text-muted: #E5E5E5;
}

html[data-high-contrast="true"] body {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

html[data-high-contrast="true"] a,
html[data-high-contrast="true"] .btn-outline,
html[data-high-contrast="true"] .section-eyebrow {
  color: #FFFF00 !important;
}

html[data-high-contrast="true"] .card,
html[data-high-contrast="true"] .portal-panel,
html[data-high-contrast="true"] .site-header,
html[data-high-contrast="true"] .a11y-popover,
html[data-high-contrast="true"] .cookie-banner {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: 2px solid #FFFF00 !important;
}

/* 3. Espaçamento de Texto (WCAG 1.4.12) */
html[data-text-spacing="true"] body,
html[data-text-spacing="true"] p,
html[data-text-spacing="true"] li,
html[data-text-spacing="true"] span,
html[data-text-spacing="true"] label,
html[data-text-spacing="true"] td {
  line-height: 1.9 !important;
  letter-spacing: 0.08em !important;
  word-spacing: 0.16em !important;
}

/* 4. Sublinhar Links */
html[data-underline-links="true"] a {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 2px !important;
}

/* 5. Reduzir Movimento (Sistema Operacional OU Toggle Manual) */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html[data-reduce-motion="true"] *,
html[data-reduce-motion="true"] *::before,
html[data-reduce-motion="true"] *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

