/* ============================================
   YALLA MOBILE - CSS CUSTOM PROPERTIES
   ============================================
   
   Design tokens and theme variables.
   All values use fallbacks for safety.
   
   ============================================ */

:root {
  /* ─────────────────────────────────────────
     COLOR PALETTE
     ───────────────────────────────────────── */
  
  /* Primary Brand Colors - Dark Blue */
  --color-primary: #1e40af;
  --color-primary-light: #3b82f6;
  --color-primary-dark: #1e3a8a;
  --color-primary-subtle: rgba(30, 64, 175, 0.1);
  
  /* Secondary Colors */
  --color-secondary: #2563eb;
  --color-accent: #0ea5e9;
  
  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* ─────────────────────────────────────────
     DARK THEME (Default)
     ───────────────────────────────────────── */
  
  /* Background Colors */
  --color-bg-base: #0a0a14;
  --color-bg-subtle: #0f0f1a;
  --color-bg-elevated: #1a1a2e;
  --color-bg-muted: rgba(255, 255, 255, 0.05);
  
  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.7);
  --color-text-tertiary: rgba(255, 255, 255, 0.4);
  --color-text-inverse: #ffffff;
  
  /* Border Colors */
  --color-border-default: rgba(255, 255, 255, 0.08);
  --color-border-subtle: rgba(255, 255, 255, 0.04);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  
  /* ─────────────────────────────────────────
     TYPOGRAPHY
     ───────────────────────────────────────── */
  
  /* Font Families */
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Tajawal', 'Segoe UI', Tahoma, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;
  
  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.775rem + 0.25vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.9rem + 0.25vw, 1rem);
  --text-lg: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-xl: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
  --text-2xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-3xl: clamp(1.5rem, 1.35rem + 0.75vw, 1.875rem);
  --text-4xl: clamp(1.875rem, 1.6rem + 1.5vw, 2.5rem);
  --text-5xl: clamp(2.25rem, 1.8rem + 2.5vw, 3.5rem);
  --text-6xl: clamp(3rem, 2.2rem + 4vw, 5rem);
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 1.8;
  
  /* Letter Spacing */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  
  /* ─────────────────────────────────────────
     SPACING
     ───────────────────────────────────────── */
  
  --space-0: 0;
  --space-0-5: 0.125rem;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 1.75rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-11: 2.75rem;
  --space-12: 3rem;
  --space-14: 3.5rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  
  /* Semantic Spacing */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  
  /* ─────────────────────────────────────────
     BORDER RADIUS
     ───────────────────────────────────────── */
  
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;
  
  /* ─────────────────────────────────────────
     SHADOWS
     ───────────────────────────────────────── */
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  
  /* Glow Shadows - Dark Blue */
  --shadow-primary: 0 4px 15px rgba(30, 64, 175, 0.35);
  --shadow-primary-lg: 0 8px 30px rgba(30, 64, 175, 0.45);
  
  /* ─────────────────────────────────────────
     GRADIENTS
     ───────────────────────────────────────── */
  
  --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  --gradient-secondary: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --gradient-dark: linear-gradient(180deg, #0a0a14 0%, #0f0f1a 100%);
  --gradient-card: linear-gradient(145deg, var(--color-bg-elevated) 0%, var(--color-bg-subtle) 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 100%);
  
  /* ─────────────────────────────────────────
     GLASSMORPHISM
     ───────────────────────────────────────── */
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 16px;
  
  /* ─────────────────────────────────────────
     TRANSITIONS
     ───────────────────────────────────────── */
  
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ─────────────────────────────────────────
     Z-INDEX SCALE
     ───────────────────────────────────────── */
  
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  
  /* ─────────────────────────────────────────
     LAYOUT
     ───────────────────────────────────────── */
  
  --container-max: 1280px;
  --container-padding: var(--space-4);
  --header-height: 72px;
  --section-padding: var(--space-16);
}

/* ─────────────────────────────────────────
   RESPONSIVE ADJUSTMENTS
   ───────────────────────────────────────── */

@media (min-width: 640px) {
  :root {
    --container-padding: var(--space-6);
    --section-padding: var(--space-20);
  }
}

@media (min-width: 1024px) {
  :root {
    --container-padding: var(--space-8);
    --section-padding: var(--space-24);
    --header-height: 80px;
  }
}

/* ─────────────────────────────────────────
   LIGHT THEME
   ───────────────────────────────────────── */

[data-theme="light"] {
  /* Background Colors */
  --color-bg-base: #ffffff;
  --color-bg-subtle: #f8fafc;
  --color-bg-elevated: #ffffff;
  --color-bg-muted: rgba(0, 0, 0, 0.03);
  
  /* Text Colors */
  --color-text-primary: #1e293b;
  --color-text-secondary: #64748b;
  --color-text-tertiary: #94a3b8;
  --color-text-inverse: #ffffff;
  
  /* Border Colors */
  --color-border-default: rgba(0, 0, 0, 0.08);
  --color-border-subtle: rgba(0, 0, 0, 0.04);
  --color-border-strong: rgba(0, 0, 0, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  
  /* Gradients */
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-text: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}  