/**
 * EssentialsC Documentation - Design Tokens
 * CSS Custom Properties for theming and consistent styling
 */

:root {
  /* Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #121218;
  --bg-tertiary: #1a1a24;
  --surface: #1e1e2a;
  --surface-hover: #252532;
  
  /* Borders */
  --border: #2a2a38;
  --border-light: #333344;
  
  /* Text */
  --text-primary: #f0f0fa;
  --text-secondary: #b0b0c0;
  --text-muted: #707080;
  
  /* Accents */
  --accent: #6d8cff;
  --accent-hover: #8aa3ff;
  --accent-gradient: linear-gradient(135deg, #6d8cff 0%, #a78bfa 100%);
  --accent-glow: rgba(109, 140, 255, 0.3);
  
  /* Status Colors */
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #ef4444;
  --info: #60a5fa;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Monaco, Consolas, monospace;
  
  /* Spacing Scale (8px base) */
  --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 */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px var(--accent-glow);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --sidebar-width: 260px;
  --header-height: 60px;
  --content-max-width: 1000px;
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f5f5f7;
  --surface: #ffffff;
  --surface-hover: #f0f0f5;
  --border: #e5e5ea;
  --border-light: #d0d0d8;
  --text-primary: #1a1a2e;
  --text-secondary: #55556e;
  --text-muted: #8a8aa0;
  --accent: #4f46e5;
  --accent-hover: #6366f1;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --accent-glow: rgba(79, 70, 229, 0.2);
  
  /* Status colors adjusted for light mode */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #dc2626;
  --info: #3b82f6;
  
  /* Shadows for light mode */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
}