/* 
 * 
 * 
 * 
 */

/* ===== COLOR SYSTEM (from themes/pastel-01.json) ===== */
:root {
  /* Brand Colors */
  --brand-primary: #fb46ff;
  --brand-secondary: #0792d3;
  --brand-accent: #f4a810;
  --brand-surface: #ffffff;
  
  /* Primary Color Scale */
  --primary-50: #fef7ff;
  --primary-100: #fdeeff;
  --primary-200: #fac6ff;
  --primary-300: #ddb8e8;
  --primary-400: #e390ff;
  --primary-500: #d759fa;
  --primary-600: #cf23f8;
  --primary-700: #b713d4;
  --primary-800: #941bad;
  --primary-900: #9412a2;
  --primary-950: #4d0a4b;
  
  /* Secondary Color Scale */
  --secondary-50: #f0f9ff;
  --secondary-100: #e3f1ff;
  --secondary-200: #acd8fa;
  --secondary-300: #8fd2ff;
  --secondary-400: #4dc6fd;
  --secondary-500: #059cd9;
  --secondary-600: #0589b3;
  --secondary-700: #006fb6;
  --secondary-800: #125893;
  --secondary-900: #076a83;
  --secondary-950: #071f3c;
  
  /* Neutral Color Scale */
  --neutral-50: #fafafa;
  --neutral-100: #f5f5f5;
  --neutral-200: #f5eded;
  --neutral-300: #e6e6e6;
  --neutral-400: #8b8485;
  --neutral-500: #6d6d6d;
  --neutral-600: #696767;
  --neutral-700: #585757;
  --neutral-800: #292929;
  --neutral-900: #000000;
  --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: #040404;        /* WCAG AAA with text-inverse (21:1) */
  --bg-overlay: rgba(30, 30, 30, 0.80);
  --bg-glass: rgba(255, 255, 255, 0.1);
  
  --text-primary: #171717;      /* WCAG AAA on white background (21:1) */
  --text-secondary: #6b6666;    /* WCAG AAA on white background (7.5:1) */
  --text-muted: #5a5a5a;        /* WCAG AA on white background (4.8:1) */
  --text-inverse: #ffffff;      /* WCAG AAA on dark background (21:1) */
  --text-link: #007fd2;         /* WCAG AA on white background (4.5:1) */
  --text-link-hover: #0097bf;   /* WCAG AA on white background (5.8:1) */
  
  --border-light: #fcfcfc;
  --border-medium: #cdcdcd;
  --border-strong: #9c9c9c;
  --border-interactive: #0195fb;
  
  /* State Colors */
  --state-hover: rgba(232, 84, 255, 0.08);
  --state-focus: rgba(20, 139, 215, 0.12);
  --state-active: rgba(225, 104, 255, 0.15);
  --state-disabled: rgba(112, 110, 110, 0.50);
  
  /* Status Colors */
  --success: #13d743;
  --success-bg: #f0fdf4;
  --warning: #ffb921;
  --warning-bg: #f1f1f1;
  --error: #e73b52;
  --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(203, 70, 250, 0.15), 0 4px 6px -2px rgba(255, 92, 255, 0.10);
  
  /* Note: Base shadows, radius, transitions moved to effects.css */
}

/* ===== GRADIENTS ===== */
:root {
  --gradient-primary: linear-gradient(135deg, #eb4dff 0%, #01adec 100%);
  --gradient-secondary: linear-gradient(135deg, #25bdf2 0%, #dda706 100%);
  --gradient-hero: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 50%, #fffff4 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: #939393;
    --border-medium: #656565;
  }
}

@media (prefers-color-scheme: dark) {
  /* Dark mode variables can be added here in future versions */
}