/* ================================
   CSS Custom Properties (Design Tokens)
   ================================ */

:root {
  /* ===== Color Palette ===== */
  
  /* Primary Colors (Purple) */
  --color-primary: #6340de;
  --color-primary-dark: #5230c4;
  --color-primary-light: #7c3aed;
  --color-primary-rgb: 99, 64, 222;
  
  /* Secondary Colors (Dark Blue) */
  --color-secondary: #0f172a;
  --color-secondary-light: #1e293b;
  --color-secondary-dark: #020617;
  
  /* Accent Colors */
  --color-accent: #7c3aed;
  --color-accent-light: #a78bfa;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  
  /* Gray Scale */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  
  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* ===== Typography ===== */
  
  /* Font Families */
  --font-primary: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */
  
  /* Heading Sizes */
  --font-size-h1: 3.5rem;       /* 56px */
  --font-size-h2: 2.5rem;       /* 40px */
  --font-size-h3: 1.75rem;      /* 28px */
  --font-size-h4: 1.5rem;       /* 24px */
  --font-size-h5: 1.25rem;      /* 20px */
  --font-size-h6: 1rem;         /* 16px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.2;
  --line-height-snug: 1.375;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.75;
  --line-height-loose: 2;
  
  /* Letter Spacing */
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  
  /* ===== Spacing ===== */
  --spacing-0: 0;
  --spacing-1: 0.25rem;         /* 4px */
  --spacing-2: 0.5rem;          /* 8px */
  --spacing-3: 0.75rem;         /* 12px */
  --spacing-4: 1rem;            /* 16px */
  --spacing-5: 1.25rem;         /* 20px */
  --spacing-6: 1.5rem;          /* 24px */
  --spacing-8: 2rem;            /* 32px */
  --spacing-10: 2.5rem;         /* 40px */
  --spacing-12: 3rem;           /* 48px */
  --spacing-16: 4rem;           /* 64px */
  --spacing-20: 5rem;           /* 80px */
  --spacing-24: 6rem;           /* 96px */
  --spacing-32: 8rem;           /* 128px */
  
  /* Semantic Spacing */
  --spacing-xs: var(--spacing-2);
  --spacing-sm: var(--spacing-4);
  --spacing-md: var(--spacing-6);
  --spacing-lg: var(--spacing-8);
  --spacing-xl: var(--spacing-12);
  --spacing-2xl: var(--spacing-16);
  --spacing-3xl: var(--spacing-24);
  
  /* ===== Layout ===== */
  
  /* Container Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Breakpoints */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 576px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 992px;
  --breakpoint-xl: 1200px;
  --breakpoint-2xl: 1400px;
  
  /* Z-index Layers */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;
  
  /* ===== Borders ===== */
  --border-width-thin: 1px;
  --border-width-base: 2px;
  --border-width-thick: 4px;
  
  --border-radius-sm: 0.25rem;  /* 4px */
  --border-radius-base: 0.5rem; /* 8px */
  --border-radius-md: 0.75rem;  /* 12px */
  --border-radius-lg: 1rem;     /* 16px */
  --border-radius-xl: 1.5rem;   /* 24px */
  --border-radius-full: 9999px;
  
  /* ===== Shadows ===== */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-base: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Colored Shadows */
  --shadow-primary: 0 8px 24px rgba(99, 64, 222, 0.3);
  --shadow-secondary: 0 8px 24px rgba(15, 23, 42, 0.3);
  
  /* ===== Transitions ===== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-slower: 0.7s ease;
  
  /* Transition Properties */
  --transition-all: all var(--transition-base);
  --transition-colors: color var(--transition-base), background-color var(--transition-base), border-color var(--transition-base);
  --transition-transform: transform var(--transition-base);
  --transition-opacity: opacity var(--transition-base);
  
  /* ===== Effects ===== */
  
  /* Backdrop Blur */
  --backdrop-blur-sm: blur(4px);
  --backdrop-blur-base: blur(8px);
  --backdrop-blur-lg: blur(16px);
  
  /* Opacity */
  --opacity-0: 0;
  --opacity-10: 0.1;
  --opacity-20: 0.2;
  --opacity-30: 0.3;
  --opacity-40: 0.4;
  --opacity-50: 0.5;
  --opacity-60: 0.6;
  --opacity-70: 0.7;
  --opacity-80: 0.8;
  --opacity-90: 0.9;
  --opacity-100: 1;
  
  /* ===== Component Specific ===== */
  
  /* Header */
  --header-height: 80px;
  --header-height-sticky: 70px;
  --topbar-height: 40px;
  
  /* Buttons */
  --btn-padding-sm: 0.5rem 1rem;
  --btn-padding-base: 0.75rem 1.5rem;
  --btn-padding-lg: 1rem 2rem;
  
  /* Forms */
  --input-height: 50px;
  --input-padding: 0.75rem 1rem;
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
  :root {
    --font-size-h1: 2.5rem;     /* 40px on mobile */
    --font-size-h2: 2rem;       /* 32px on mobile */
    --font-size-h3: 1.5rem;     /* 24px on mobile */
    --font-size-h4: 1.25rem;    /* 20px on mobile */
  }
}
