/* =============================================================================
   Oday Store — Design Tokens (single source of truth)
   Direction: dark, blue/cyan gaming commerce. RTL-first (Arabic) + LTR (English).
   Palette is deliberately NOT violet/lavender (house rule).
   ============================================================================= */

:root {
  /* --- Brand / action ------------------------------------------------------ */
  --color-primary:        #2563eb;   /* blue-600  */
  --color-primary-strong: #1d4ed8;   /* blue-700  */
  --color-primary-soft:   #1e3a8a;   /* blue-900  */
  --color-on-primary:     #ffffff;

  --color-accent:         #22d3ee;   /* cyan-400  */
  --color-accent-strong:  #06b6d4;   /* cyan-500  */
  --color-on-accent:      #04222b;

  /* --- Surfaces (dark) ----------------------------------------------------- */
  --color-bg:             #0a0f1c;
  --color-bg-elevated:    #0e1524;
  --color-surface:        #111a2e;
  --color-card:           #141f38;
  --color-card-hover:     #182644;
  --color-border:         #22314f;
  --color-border-strong:  #2f4468;

  /* --- Text ---------------------------------------------------------------- */
  --color-ink:            #e6edf7;
  --color-ink-soft:       #b9c6dd;
  --color-muted:          #93a4c0;
  --color-faint:          #64748b;

  /* --- Feedback ------------------------------------------------------------ */
  --color-success:        #22c55e;
  --color-warning:        #f59e0b;
  --color-danger:         #ef4444;
  --color-info:           #38bdf8;
  --color-on-status:      #06121f;

  /* --- Focus --------------------------------------------------------------- */
  --color-ring:           #38bdf8;

  /* --- Typography ---------------------------------------------------------- */
  --font-display: "Russo One", "Noto Kufi Arabic", system-ui, sans-serif;
  --font-body:    "Chakra Petch", "Noto Sans Arabic", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --fs-2xs: 0.7rem;
  --fs-xs:  0.75rem;
  --fs-sm:  0.8rem;
  --fs-md:  0.875rem;
  --fs-lg:  1rem;
  --fs-xl:  1.2rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.85rem;
  --fs-4xl: 2.4rem;

  --lh-tight: 1.15;
  --lh-snug:  1.35;
  --lh-base:  1.6;

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;

  /* --- Space scale (8px base) --------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 14px;
  --space-5: 20px;
  --space-6: 26px;
  --space-7: 38px;
  --space-8: 52px;
  --space-9: 78px;

  /* --- Radius / shadow / layout -------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
  --shadow-md: 0 6px 20px rgba(2,6,23,.45);
  --shadow-lg: 0 18px 48px rgba(2,6,23,.55);
  --glow-accent: 0 0 0 1px rgba(34,211,238,.35), 0 0 28px rgba(34,211,238,.18);

  --container: 1100px;
  --header-h: 60px;

  /* --- Motion -------------------------------------------------------------- */
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.4,0,.2,1);

  --z-header: 100;
  --z-sidebar: 120;
  --z-overlay: 110;
  --z-modal: 140;
  --z-toast: 160;
}

/* Light theme is intentionally not shipped now; semantic names above stay the
   same if a light theme is added later via [data-theme="light"] overrides. */

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-fast: 1ms;
    --dur-base: 1ms;
    --dur-slow: 1ms;
  }
}
