/* ============================================================
   Ana Fateen — Design Tokens (Light Theme · Harf Esem)
   Cream / off-white background + bright accents
   Swap freely when official Harf Esem brand doc arrives.
   ============================================================ */

:root {
  /* Brand palette — light cream base + bright accents */
  --color-bg:           #FBF8F1;   /* soft cream / off-white */
  --color-bg-elevated:  #FFFFFF;   /* pure white card */
  --color-bg-muted:     #F2EEE3;   /* faint cream */
  --color-ink:          #1B1B3A;   /* deep ink for text */
  --color-ink-muted:    #5C5C7A;
  --color-line:         #E8E2D4;

  /* Accent rainbow (Harf Esem playful palette) */
  --color-turquoise:    #1FBEC4;
  --color-blue:         #4C7CFF;
  --color-purple:       #8A5BFF;
  --color-pink:         #FF5DA2;
  --color-yellow:       #FFC857;
  --color-coral:        #FF7A59;
  --color-mint:         #5FE3B3;

  /* Functional */
  --color-correct:      #2EBF7B;
  --color-incorrect:    #E84A5F;
  --color-warning:      #FFB020;

  /* Kahoot-style answer block colors (re-tinted to light theme) */
  --answer-a: #E84A5F;   /* red */
  --answer-b: #4C7CFF;   /* blue */
  --answer-c: #FFC857;   /* yellow */
  --answer-d: #2EBF7B;   /* green */

  /* Typography */
  --font-en: "Poppins", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Tajawal", "Cairo", "Noto Kufi Arabic", system-ui, sans-serif;

  /* Spacing scale (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Shadows — soft, light-theme appropriate */
  --shadow-sm: 0 1px 2px rgba(27, 27, 58, 0.05);
  --shadow-md: 0 6px 18px rgba(27, 27, 58, 0.08);
  --shadow-lg: 0 18px 40px rgba(27, 27, 58, 0.12);
  --shadow-glow: 0 8px 28px rgba(76, 124, 255, 0.18);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 160ms;
  --dur-base: 260ms;
  --dur-slow: 420ms;

  /* Layout */
  --container-max: 1100px;
  --container-narrow: 640px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
