/**
 * Echo Leaf Studios - CSS Variables
 * Brand: Noir Burrow (Dark Theme)
 * Version: 1.0.0
 */

:root {
  /* ========================================
     COLOR PALETTE - NOIR BURROW
     ======================================== */
  
  /* Background Colors */
  --color-bg-primary: #0a0a0f;
  --color-bg-secondary: #141419;
  --color-bg-tertiary: #1a1a23;
  --color-bg-elevated: #1e1e28;
  
  /* Text Colors */
  --color-text-primary: #f0f0f5;
  --color-text-secondary: #a0a0b0;
  --color-text-muted: #6b6b7b;
  --color-text-disabled: #4a4a5a;
  
  /* Accent Colors */
  --color-accent-teal: #14b8a6;
  --color-accent-teal-light: #2dd4bf;
  --color-accent-teal-dark: #0d9488;
  --color-accent-coral: #f97316;
  --color-accent-coral-light: #fb923c;
  --color-accent-purple: #8b5cf6;
  --color-accent-purple-light: #a78bfa;
  
  /* Semantic Colors */
  --color-success: #22c55e;
  --color-warning: #eab308;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  
  /* Border Colors */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-border-focus: var(--color-accent-teal);
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  /* Font Families */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes - Fluid Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3rem);
  --text-5xl: clamp(3rem, 2rem + 4vw, 4rem);
  --text-6xl: clamp(3.75rem, 2.5rem + 5vw, 6rem);
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;
  --leading-loose: 2;
  
  /* Font Weights */
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  
  /* Letter Spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;
  
  /* ========================================
     SPACING - Tailwind Scale
     ======================================== */
  --space-0: 0;
  --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 */
  
  /* ========================================
     LAYOUT
     ======================================== */
  --container-max: 1280px;
  --container-narrow: 768px;
  --container-wide: 1440px;
  
  /* Grid */
  --grid-columns: 12;
  --grid-gap: var(--space-6);
  
  /* ========================================
     BORDERS & RADIUS
     ======================================== */
  --radius-none: 0;
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.5rem;    /* 8px */
  --radius-lg: 0.75rem;   /* 12px */
  --radius-xl: 1rem;      /* 16px */
  --radius-2xl: 1.5rem;   /* 24px */
  --radius-full: 9999px;
  
  /* Border Width */
  --border-width: 1px;
  --border-width-2: 2px;
  --border-width-4: 4px;
  
  /* ========================================
     SHADOWS
     ======================================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
  --shadow-glow-teal: 0 0 20px rgba(20, 184, 166, 0.3);
  --shadow-glow-coral: 0 0 20px rgba(249, 115, 22, 0.3);
  --shadow-glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
  
  /* ========================================
     TRANSITIONS & ANIMATION
     ======================================== */
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --duration-slower: 700ms;
  
  --ease-linear: linear;
  --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);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* ========================================
     Z-INDEX SCALE
     ======================================== */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  
  /* ========================================
     COMPONENT TOKENS
     ======================================== */
  
  /* Button */
  --btn-padding-y: var(--space-3);
  --btn-padding-x: var(--space-6);
  --btn-font-size: var(--text-sm);
  --btn-font-weight: var(--weight-medium);
  --btn-radius: var(--radius-full);
  
  /* Card */
  --card-padding: var(--space-6);
  --card-radius: var(--radius-xl);
  --card-bg: var(--color-bg-secondary);
  
  /* Input */
  --input-padding-y: var(--space-3);
  --input-padding-x: var(--space-4);
  --input-radius: var(--radius-lg);
  --input-bg: var(--color-bg-tertiary);
  --input-border: var(--color-border);
  
  /* Navigation */
  --nav-height: 4rem;
  --nav-height-mobile: 3.5rem;
}

/* ========================================
   REDUCED MOTION PREFERENCES
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========================================
   DARK MODE (Default - Noir Burrow)
   ======================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Already dark by default */
  }
}
