/**
 * NORDLYS DESIGN SYSTEM - Core Tokens
 * Single source of truth for all design tokens
 * Dark theme ONLY - No theme switching
 * Version: 5.0.0 - NORDLYS EDITION
 */

:root {
  /* ==========================================
     NORDLYS DARK THEME - The One True Theme
     Based on HSL values from specification
     ========================================== */
  
  /* Core Semantic Colors - Dark Theme ONLY */
  --background: hsl(240, 10%, 3.9%);      /* App background */
  --foreground: hsl(0, 0%, 95%);          /* Primary text */
  --card: hsl(240, 10%, 3.9%);            /* Card surface */
  --card-foreground: hsl(0, 0%, 95%);     /* Card text */
  --primary: hsl(265, 100%, 66%);         /* Brand accent */
  --primary-foreground: hsl(0, 0%, 98%);  /* On primary */
  --secondary: hsl(240, 3.7%, 15.9%);     /* Subtle surfaces */
  --secondary-foreground: hsl(0, 0%, 95%); /* Text on secondary */
  --muted: hsl(240, 3.7%, 15.9%);         /* Muted surfaces */
  --muted-foreground: hsl(240, 5%, 64.9%); /* Muted text */
  --destructive: hsl(0, 62.8%, 30.6%);    /* Danger */
  --destructive-foreground: hsl(0, 0%, 95%); /* On danger */
  --border: hsl(240, 3.7%, 15.9%);        /* Border neutral */
  --input: hsl(240, 3.7%, 15.9%);         /* Input border */
  --ring: hsl(265, 100%, 66%);            /* Focus ring */
  --glass-surface: hsl(240, 10%, 3.9%);   /* Glass base */
  --glass-border: hsl(240, 3.7%, 15.9%);  /* Glass border */
  
  /* Legacy variable mappings for compatibility */
  --color-bg-primary: hsl(240, 10%, 3.9%);
  --color-bg-secondary: hsl(240, 8%, 8%);
  --color-bg-tertiary: hsl(240, 6%, 12%);
  --color-bg-elevated: hsl(240, 8%, 10%);
  --color-bg-glass: hsla(240, 10%, 3.9%, 0.85);
  --color-bg-glass-strong: hsla(240, 10%, 3.9%, 0.95);
  
  /* Surface colors */
  --color-surface-primary: hsla(240, 10%, 3.9%, 0.9);
  --color-surface-secondary: hsla(240, 8%, 8%, 0.85);
  --color-surface-overlay: hsla(240, 10%, 3.9%, 0.98);
  --color-surface-glass: hsla(240, 10%, 20%, 0.25);
  --color-surface-glass-hover: hsla(240, 10%, 20%, 0.35);
  
  /* Text hierarchy */
  --color-text-primary: hsl(0, 0%, 95%);
  --color-text-secondary: hsl(0, 0%, 85%);
  --color-text-tertiary: hsl(240, 5%, 64.9%);
  --color-text-inverse: hsl(240, 10%, 3.9%);
  --color-text-disabled: hsl(240, 3%, 50%);
  --color-text-luxury: hsl(0, 0%, 95%);
  
  /* Brand colors - Purple spectrum */
  --color-brand-primary: hsl(265, 100%, 66%);
  --color-brand-secondary: hsl(265, 90%, 70%);
  --color-brand-accent: hsl(265, 80%, 75%);
  --color-brand-light: hsl(265, 60%, 25%);
  --color-brand-gradient: linear-gradient(135deg, hsl(265, 100%, 66%) 0%, hsl(265, 90%, 70%) 50%, hsl(265, 80%, 75%) 100%);
  --color-brand-gradient-hover: linear-gradient(135deg, hsl(265, 100%, 60%) 0%, hsl(265, 90%, 65%) 50%, hsl(265, 80%, 70%) 100%);
  
  /* Semantic colors */
  --color-success: hsl(142, 71%, 45%);
  --color-success-light: hsl(142, 30%, 15%);
  --color-success-gradient: linear-gradient(135deg, hsl(142, 71%, 45%) 0%, hsl(142, 60%, 50%) 100%);
  
  --color-warning: hsl(38, 92%, 50%);
  --color-warning-light: hsl(38, 30%, 15%);
  --color-warning-gradient: linear-gradient(135deg, hsl(38, 92%, 50%) 0%, hsl(38, 80%, 55%) 100%);
  
  --color-error: hsl(0, 62.8%, 30.6%);
  --color-error-light: hsl(0, 30%, 15%);
  --color-error-gradient: linear-gradient(135deg, hsl(0, 62.8%, 30.6%) 0%, hsl(0, 60%, 40%) 100%);
  
  --color-info: hsl(217, 91%, 60%);
  --color-info-light: hsl(217, 30%, 15%);
  --color-info-gradient: linear-gradient(135deg, hsl(217, 91%, 60%) 0%, hsl(217, 80%, 65%) 100%);
  
  /* Recording states */
  --color-recording-idle: var(--color-brand-primary);
  --color-recording-active: hsl(0, 72%, 50%);
  --color-recording-paused: hsl(38, 92%, 50%);
  --color-recording-complete: hsl(142, 71%, 45%);
  --color-recording-processing: hsl(217, 91%, 60%);
  
  /* Borders */
  --color-border-light: hsla(240, 5%, 64.9%, 0.1);
  --color-border-default: hsla(240, 5%, 64.9%, 0.2);
  --color-border-strong: hsla(240, 5%, 64.9%, 0.3);
  --color-border-brand: var(--color-brand-primary);
  --color-border-focus: var(--color-brand-secondary);
  --color-border-glass: hsla(240, 5%, 64.9%, 0.15);
  
  /* Shadow system for dark theme */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.4), 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.6);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  
  /* Glass shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  --shadow-glass-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.6);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  --shadow-focus: 0 0 0 4px hsla(265, 100%, 66%, 0.25);
  --shadow-luxury: 
    0 32px 64px -12px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    
  /* Gradient overlays */
  --gradient-luxury: 
    linear-gradient(135deg, 
      hsla(265, 100%, 66%, 0.1) 0%, 
      hsla(265, 90%, 70%, 0.05) 50%, 
      hsla(265, 80%, 75%, 0.1) 100%);
  --gradient-premium-bg: 
    linear-gradient(135deg, 
      hsl(240, 10%, 3.9%) 0%, 
      hsl(240, 8%, 6%) 50%, 
      hsl(240, 6%, 8%) 100%);
  
  /* Spacing Scale - 8px base unit */
  --space-0: 0;
  --space-px: 1px;
  --space-0-5: 0.125rem;  /* 2px */
  --space-1: 0.25rem;     /* 4px */
  --space-1-5: 0.375rem;  /* 6px */
  --space-2: 0.5rem;      /* 8px */
  --space-2-5: 0.625rem;  /* 10px */
  --space-3: 0.75rem;     /* 12px */
  --space-3-5: 0.875rem;  /* 14px */
  --space-4: 1rem;        /* 16px */
  --space-5: 1.25rem;     /* 20px */
  --space-6: 1.5rem;      /* 24px */
  --space-7: 1.75rem;     /* 28px */
  --space-8: 2rem;        /* 32px */
  --space-9: 2.25rem;     /* 36px */
  --space-10: 2.5rem;     /* 40px */
  --space-12: 3rem;       /* 48px */
  --space-14: 3.5rem;     /* 56px */
  --space-16: 4rem;       /* 64px */
  --space-20: 5rem;       /* 80px */
  --space-24: 6rem;       /* 96px */
  --space-28: 7rem;       /* 112px */
  --space-32: 8rem;       /* 128px */
  
  /* Typography Scale */
  --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 */
  --font-size-7xl: 4.5rem;      /* 72px */
  --font-size-8xl: 6rem;        /* 96px */
  
  /* Font Weights */
  --font-weight-thin: 100;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --font-weight-black: 900;
  
  /* Line Heights */
  --line-height-none: 1;
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* Letter Spacing */
  --letter-spacing-tighter: -0.05em;
  --letter-spacing-tight: -0.025em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;    /* 2px */
  --radius-default: 0.25rem; /* 4px */
  --radius-md: 0.375rem;     /* 6px */
  --radius-lg: 0.5rem;       /* 8px */
  --radius-xl: 0.75rem;      /* 12px */
  --radius-2xl: 1rem;        /* 16px */
  --radius-3xl: 1.5rem;      /* 24px */
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-none: none;
  --transition-all: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Z-index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  
  /* Container Widths */
  --container-xs: 20rem;     /* 320px */
  --container-sm: 24rem;     /* 384px */
  --container-md: 28rem;     /* 448px */
  --container-lg: 32rem;     /* 512px */
  --container-xl: 36rem;     /* 576px */
  --container-2xl: 42rem;    /* 672px */
  --container-3xl: 48rem;    /* 768px */
  --container-4xl: 56rem;    /* 896px */
  --container-5xl: 64rem;    /* 1024px */
  --container-6xl: 72rem;    /* 1152px */
  --container-7xl: 80rem;    /* 1280px */
  --container-full: 100%;
}

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

/* ==========================================
   NO THEME SWITCHING - DARK THEME ONLY
   ========================================== */
/* Force dark theme on body and html */
html,
body {
  background-color: var(--background);
  color: var(--foreground);
}

