/**
 * Design Tokens - 148 Studios
 * Unified design system variables
 */

:root {
  /* ============================================
     PRIMARY BRAND COLORS
     ============================================ */
  --primary: #0a3bff;
  --primary-hover: #0830cc;
  --primary-light: #3b5bff;
  --primary-dark: #0628a3;
  --primary-2: #0a2fd1;
  
  /* ============================================
     NEUTRAL COLORS
     ============================================ */
  --bg: #ffffff;
  --white: #ffffff;
  --bg-soft: #fafbfc;
  --bg-subtle: #f5f7fa;
  --bg-tertiary: #f1f3f5;
  --bg-dark-section: #050811;
  
  --text: #0a0e1a;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --text-light: #cbd5e1;
  
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-primary: rgba(0, 0, 0, 0.08);
  --border-secondary: rgba(0, 0, 0, 0.12);
  --border-accent: rgba(10, 59, 255, 0.2);
  
  /* ============================================
     SEMANTIC COLORS
     ============================================ */
  --success: #10b981;
  --success-light: #d1fae5;
  --success-dark: #059669;
  
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --warning-dark: #d97706;
  
  --error: #ef4444;
  --error-light: #fee2e2;
  --error-dark: #dc2626;
  
  --info: #3b82f6;
  --info-light: #dbeafe;
  --info-dark: #2563eb;

  --purple: #8b5cf6;
  --purple-light: rgba(139, 92, 246, 0.1);
  --purple-dark: #7c3aed;

  /* ============================================
     RGB VALUES (for transparency)
     ============================================ */
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;
  --bg-rgb: 255, 255, 255;
  --bg-dark-rgb: 5, 8, 17;
  --card-rgb: 255, 255, 255;
  --primary-rgb: 10, 59, 255;
  --success-rgb: 16, 185, 129;
  --warning-rgb: 245, 158, 11;
  --error-rgb: 239, 68, 68;
  --info-rgb: 59, 130, 246;
  --purple-rgb: 139, 92, 246;
  
  /* ============================================
     GRADIENTS
     ============================================ */
  --gradient-primary: linear-gradient(135deg, #0a3bff 0%, #3b5bff 100%);
  --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  
  /* ============================================
     SPACING SCALE
     ============================================ */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 72px;
  --space-10: 80px;
  --space-11: 88px;
  --space-12: 96px;
  --space-14: 112px;
  --space-16: 128px;
  --space-20: 160px;
  --space-24: 192px;
  --space-32: 256px;

  /* Extra Large Containers */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  --container: var(--container-xl);
  --container-max: 1280px;
  --container-wide: 1440px;
  --container-narrow: 800px;
  
  /* Legacy spacing (for backward compatibility) */
  --s-1: var(--space-1);
  --s-2: var(--space-2);
  --s-3: var(--space-3);
  --s-4: var(--space-4);
  --s-5: var(--space-5);
  --s-6: var(--space-6);
  --s-7: var(--space-7);
  --s-8: var(--space-8);
  
  /* ============================================
     TYPOGRAPHY
     ============================================ */
  /* Font Families */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  
  /* Font Sizes */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;
  --text-6xl: 60px;
  
  /* ============================================
     LAYOUT TOKENS
     ============================================ */
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --sidebar-width-wide: 280px;
  --navbar-height: 70px;
  --header-height: 64px;
  --header-height-mobile: 56px;

  /* ============================================
     Z-INDEX SCALE
     ============================================ */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1100;
  
  /* Font Weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --font-black: 900;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.75;
  
  /* Letter Spacing */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-normal: -0.01em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.16em;
  
  /* ============================================
     BORDER RADIUS
     ============================================ */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;
  
  /* Legacy radius (for backward compatibility) */
  --r-sm: var(--radius-sm);
  --r-md: var(--radius-md);
  --r-lg: var(--radius-lg);
  
  /* ============================================
     SHADOWS
     ============================================ */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.15);
  
  --shadow-primary: 0 6px 16px rgba(10, 59, 255, 0.15);
  --shadow-primary-lg: 0 10px 25px rgba(10, 59, 255, 0.2);
  
  /* Legacy shadow (for backward compatibility) */
  --shadow: var(--shadow-lg);
  
  /* ============================================
     ANIMATIONS & TRANSITIONS
     ============================================ */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Font Sizes Cont. */
  --text-7xl: 72px;

  /* ============================================
     FOCUS RINGS
     ============================================ */
  --focus-ring: 3px solid rgba(10, 59, 255, 0.35);
  --focus-ring-offset: 2px;
  --focus-ring-width: 3px;
}

/* ============================================
   DARK THEME (if needed in future)
   ============================================ */
[data-theme="dark"] {
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --bg-subtle: #111111;
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #111827;
  --border-subtle: #1f2937;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
/* Use in media queries:
   @media (min-width: 640px) { ... }  // sm
   @media (min-width: 768px) { ... }  // md
   @media (min-width: 1024px) { ... } // lg
   @media (min-width: 1280px) { ... } // xl
   @media (min-width: 1536px) { ... } // 2xl
*/

