/* ============================================
   Factor Career - Design System Variables
   ============================================ */

:root {
  /* --- Colors --- */
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #3B82F6;
  --color-primary-50: #EFF6FF;
  --color-primary-100: #DBEAFE;
  --color-primary-200: #BFDBFE;

  --color-accent: #10B981;
  --color-accent-dark: #059669;
  --color-accent-light: #34D399;
  --color-accent-50: #ECFDF5;
  --color-accent-100: #D1FAE5;

  --color-dark: #0A1628;
  --color-dark-light: #1a2744;
  --color-dark-lighter: #243352;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-bg-section: #F1F5F9;

  --color-text: #1E293B;
  --color-text-secondary: #64748B;
  --color-text-muted: #94A3B8;
  --color-text-inverse: #F8FAFC;

  --color-border: #E2E8F0;
  --color-border-light: #F1F5F9;

  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;

  /* --- Gradients --- */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #10B981 100%);
  --gradient-primary-reverse: linear-gradient(135deg, #10B981 0%, #2563EB 100%);
  --gradient-dark: linear-gradient(135deg, #0A1628 0%, #1a2744 50%, #0f3460 100%);
  --gradient-hero: linear-gradient(160deg, #0A1628 0%, #0f1d36 25%, #132b50 50%, #0e2a4a 75%, #0A1628 100%);
  --gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
  --gradient-text: linear-gradient(135deg, #2563EB 0%, #10B981 100%);

  /* --- Typography --- */
  --font-primary: 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', 'Consolas', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

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

  --leading-tight: 1.25;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Border Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(37, 99, 235, 0.15);
  --shadow-glow-accent: 0 0 30px rgba(16, 185, 129, 0.15);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.12);

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

  /* --- Z-index --- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;

  /* --- Container --- */
  --container-max: 1280px;
  --container-narrow: 860px;
  --container-padding: 1.5rem;

  /* --- Header --- */
  --header-height: 72px;
}

/* ==========================================================================
   Mobile Responsive Typography & Spacing Overrides
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    /* Balanced legible typography on mobile */
    --text-xs: 0.75rem;
    --text-sm: 0.85rem;
    --text-base: 0.95rem;
    --text-lg: 1.05rem;
    --text-xl: 1.2rem;
    --text-2xl: 1.4rem;
    --text-3xl: 1.65rem;
    --text-4xl: 1.95rem;
    --text-5xl: 2.3rem;
    --text-6xl: 2.7rem;

    /* Scaled down paddings to prevent cramped content */
    --space-6: 1.15rem;
    --space-8: 1.35rem;
    --space-10: 1.6rem;
    --space-12: 2rem;
    --space-16: 2.5rem;
    --space-20: 3rem;
    --space-24: 3.5rem;
    --space-32: 4.5rem;

    --container-padding: 14px;
    --header-height: 62px;
  }
}

@media (max-width: 480px) {
  :root {
    --text-xs: 0.72rem;
    --text-sm: 0.82rem;
    --text-base: 0.92rem;
    --text-lg: 1rem;
    --text-xl: 1.15rem;
    --text-2xl: 1.3rem;
    --text-3xl: 1.5rem;
    --text-4xl: 1.75rem;
    --text-5xl: 2.1rem;
    --text-6xl: 2.4rem;

    --space-4: 0.85rem;
    --space-5: 1rem;
    --space-6: 1.1rem;
    --space-8: 1.25rem;
    --space-10: 1.4rem;
    --space-12: 1.75rem;
    --space-16: 2rem;
    --space-20: 2.5rem;

    --container-padding: 12px;
    --header-height: 60px;
  }
}
