/* ============================================
   VARIABLES.CSS — AYOT Design System
   ============================================
   Derived from AYOT logo: bold blue (#4A5EAB),
   clean modern typography, the dot accent motif.
   ============================================ */

:root {
  /* ── Brand Colors ── */
  --color-primary: #4A5EAB;
  --color-primary-light: #6B7EC7;
  --color-primary-dark: #364889;
  --color-primary-50: #EEF0F7;
  --color-primary-100: #D5DAF0;
  --color-primary-200: #A8B4DE;
  --color-primary-900: #1E2744;

  /* ── Accent (the dot motif) ── */
  --color-accent: #5C6FBF;
  --color-accent-glow: rgba(74, 94, 171, 0.3);

  /* ── Semantic Colors ── */
  --color-success: #2ECC71;
  --color-warning: #F39C12;
  --color-error: #E74C3C;

  /* ── Light Theme (default) ── */
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F6FA;
  --color-bg-card: #FFFFFF;
  --color-surface: #F8F9FC;
  --color-text: #1A1D2E;
  --color-text-secondary: #5A5F7A;
  --color-text-muted: #8E92A8;
  --color-border: #E2E5EF;
  --color-border-light: #F0F1F6;
  --color-shadow: rgba(74, 94, 171, 0.08);
  --color-shadow-hover: rgba(74, 94, 171, 0.15);
  --hero-gradient: linear-gradient(135deg, #4A5EAB 0%, #364889 50%, #1E2744 100%);
  --hero-pattern-opacity: 0.08;

  /* ── Typography ── */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-md: 1.125rem;   /* 18px */
  --font-size-lg: 1.25rem;    /* 20px */
  --font-size-xl: 1.5rem;     /* 24px */
  --font-size-2xl: 2rem;      /* 32px */
  --font-size-3xl: 2.5rem;    /* 40px */
  --font-size-4xl: 3rem;      /* 48px */
  --font-size-hero: 3.5rem;   /* 56px */

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* ── Spacing (4px base) ── */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ── Layout ── */
  --container-max: 100%;
  --container-padding: clamp(16px, 2.5vw, 32px);
  --header-height: 64px;

  /* ── Borders & Radius ── */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px var(--color-shadow);
  --shadow-md: 0 4px 12px var(--color-shadow);
  --shadow-lg: 0 8px 30px var(--color-shadow);
  --shadow-hover: 0 8px 30px var(--color-shadow-hover);

  /* ── Transitions ── */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --color-bg: #0F1221;
  --color-bg-alt: #161A2E;
  --color-bg-card: #1C2039;
  --color-surface: #1C2039;
  --color-text: #E8EAF2;
  --color-text-secondary: #A0A5C0;
  --color-text-muted: #6B7098;
  --color-border: #2A2F4A;
  --color-border-light: #232845;
  --color-shadow: rgba(0, 0, 0, 0.3);
  --color-shadow-hover: rgba(74, 94, 171, 0.25);
  --hero-gradient: linear-gradient(135deg, #1E2744 0%, #0F1221 50%, #0A0D18 100%);
  --hero-pattern-opacity: 0.15;
}

/* ── Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

/* ── RTL Font Override ── */
[dir="rtl"] {
  --font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
