/* 
 * 
 * 
 * 
 */

/* ===== COLOR SYSTEM (from themes/pastel-01.json) ===== */
:root {
  /* Brand Colors */
  --brand-primary: #e74bf4;
  --brand-secondary: #20b5d8;
  --brand-accent: #e5cc05;
  --brand-surface: #ffffff;
  
  /* Primary Color Scale */
  --primary-50: #fef7ff;
  --primary-100: #fdeeff;
  --primary-200: #f8dbff;
  --primary-300: #f4a4ff;
  --primary-400: #ff9eff;
  --primary-500: #da61eb;
  --primary-600: #a81ddb;
  --primary-700: #ce24da;
  --primary-800: #ae1ab5;
  --primary-900: #8d239d;
  --primary-950: #640a62;
  
  /* Secondary Color Scale */
  --secondary-50: #f0f9ff;
  --secondary-100: #e3f2ff;
  --secondary-200: #bde5fd;
  --secondary-300: #97d0ff;
  --secondary-400: #36d1f5;
  --secondary-500: #1699e1;
  --secondary-600: #127fb5;
  --secondary-700: #0483aa;
  --secondary-800: #074971;
  --secondary-900: #064966;
  --secondary-950: #043646;
  
  /* Neutral Color Scale */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #fafafa;
  --neutral-300: #e3cdcf;
  --neutral-400: #a49a9a;
  --neutral-500: #5f5f5f;
  --neutral-600: #565656;
  --neutral-700: #484544;
  --neutral-800: #3a3a3a;
  --neutral-900: #030303;
  --neutral-950: #0a0a0a;
  
  /* Semantic Colors - WCAG AA Compliant */
  --bg-primary: #ffffff;        /* WCAG AAA with text-primary (21:1) */
  --bg-secondary: #fafafa;      /* WCAG AAA with text-primary (19.8:1) */
  --bg-muted: #f5f5f5;          /* WCAG AAA with text-primary (18.2:1) */
  --bg-inverse: #282425;        /* WCAG AAA with text-inverse (21:1) */
  --bg-overlay: rgba(19, 19, 19, 0.80);
  --bg-glass: rgba(255, 255, 255, 0.1);
  
  --text-primary: #101010;      /* WCAG AAA on white background (21:1) */
  --text-secondary: #605b5b;    /* WCAG AAA on white background (7.5:1) */
  --text-muted: #666666;        /* WCAG AA on white background (4.8:1) */
  --text-inverse: #ffffff;      /* WCAG AAA on dark background (21:1) */
  --text-link: #0485d9;         /* WCAG AA on white background (4.5:1) */
  --text-link-hover: #0077d6;   /* WCAG AA on white background (5.8:1) */
  
  --border-light: #cdcdcd;
  --border-medium: #e5dddb;
  --border-strong: #9c9c9c;
  --border-interactive: #00cef7;
  
  /* State Colors */
  --state-hover: rgba(232, 84, 255, 0.08);
  --state-focus: rgba(22, 149, 222, 0.12);
  --state-active: rgba(203, 67, 230, 0.15);
  --state-disabled: rgba(90, 90, 90, 0.50);
  
  /* Status Colors */
  --success: #0fbc43;
  --success-bg: #f0fdf4;
  --warning: #ff991f;
  --warning-bg: #f7efe1;
  --error: #e46050;
  --error-bg: #fef2f2;
}

/* ===== SPACING SYSTEM (from spacing.json) ===== */
:root {
  /* Base Spacing Scale */
  --space-0: 0;
  --space-px: 1px;
  --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 */
  --space-32: 8rem;      /* 128px */
  
  /* Semantic Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  
  /* Section Spacing - Responsive */
  --section-y-mobile: 3rem;
  --section-y-tablet: 4rem;
  --section-y-desktop: 5rem;
  --section-y-hero: clamp(4rem, 10vw, 8rem);
  --section-x: clamp(1rem, 3vw, 2rem);
  --section-gap: clamp(1.5rem, 3vw, 2.5rem);
  
  /* Component Spacing */
  --card-padding: 1.5rem;
  --card-gap: 1rem;
  --button-padding-x: 1.5rem;
  --button-padding-y: 0.75rem;
  --form-gap: 1rem;
}

/* ===== TYPOGRAPHY SYSTEM (from typography.json) ===== */
:root {
  /* Font Families */
  --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-secondary: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', monospace;
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Fluid Font Sizes */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
  --text-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.25rem);
  --text-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
  --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 3.75rem);
  --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 4.5rem);
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
  
  /* Letter Spacing */
  --tracking-tighter: -0.05em;
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
}

/* ===== EFFECTS & ELEVATION (Theme-specific colored shadows) ===== */
:root {
  /* Theme-specific colored shadow - dynamically generated per theme */
  --shadow-colored: 0 10px 15px -3px rgba(234, 91, 255, 0.15), 0 4px 6px -2px rgba(247, 101, 254, 0.10);
  
  /* Note: Base shadows, radius, transitions moved to effects.css */
}

/* ===== GRADIENTS ===== */
:root {
  --gradient-primary: linear-gradient(135deg, #f342ff 0%, #00aefa 100%);
  --gradient-secondary: linear-gradient(135deg, #00aee4 0%, #f29306 100%);
  --gradient-hero: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 50%, #fbf8ea 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
  --gradient-overlay-light: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
  --gradient-overlay-dark: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.4));
}

/* ===== BASE STYLES - ADDITIVE TO BOOTSTRAP ===== */
body {
  font-family: var(--font-primary);
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== RESPONSIVE BEHAVIOR (Theme-specific overrides) ===== */
@media (prefers-contrast: high) {
  :root {
    --border-light: #999594;
    --border-medium: #595959;
  }
}

@media (prefers-color-scheme: dark) {
  /* Dark mode variables can be added here in future versions */
}