/* ============================================
   BINARY ROT DESIGN TOKENS
   Extracted from World Bible Aesthetic Guide
   ============================================ */

:root {
  /* ========== PRIMARY ROT COLORS ========== */
  --rot-magenta: #ff00ff;
  --rot-aqua: #00ffcc;
  --rot-slime: #39ff14;
  --rot-purple: #6b2d5c;
  --rot-pink: #ff6ec7;
  --rot-chrome: #c0c0c0;
  
  /* ========== BACKGROUND LAYERS ========== */
  --rot-void: #01010c;
  --rot-deep: #0a0a16;
  --rot-surface: #14142a;
  --rot-border: #24244c;
  
  /* ========== TEXT COLORS ========== */
  --rot-text-primary: #e2e2e2;
  --rot-text-muted: #c7c7d9;
  --rot-text-dim: #55557a;
  
  /* ========== SEMANTIC COLORS ========== */
  --rot-success: var(--rot-slime);
  --rot-accent: var(--rot-aqua);
  --rot-highlight: var(--rot-magenta);
  
  /* ========== GLOW EFFECTS ========== */
  --glow-magenta: 0 0 20px rgba(255, 0, 255, 0.5);
  --glow-aqua: 0 0 20px rgba(0, 255, 204, 0.5);
  --glow-slime: 0 0 20px rgba(57, 255, 20, 0.5);
  --glow-soft: 0 0 40px rgba(255, 0, 255, 0.2);
  
  /* ========== TYPOGRAPHY ========== */
  --font-primary: "Arial", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Courier New", monospace;
  
  /* Fluid Typography Scale */
  --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, 1rem + 1.25vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  
  --line-height-tight: 1.2;
  --line-height-base: 1.6;
  --line-height-relaxed: 1.8;
  
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.1em;
  
  /* ========== SPACING SCALE ========== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* ========== BORDER RADIUS ========== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  
  /* ========== SHADOWS ========== */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow-magenta: 0 5px 15px rgba(255, 0, 255, 0.3);
  --shadow-glow-aqua: 0 5px 15px rgba(0, 255, 153, 0.3);
  
  /* ========== ANIMATION TIMING ========== */
  /* Glitchy, digital-feeling curves */
  --ease-glitch: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snap: cubic-bezier(0.87, 0, 0.13, 1);
  
  --duration-instant: 0.1s;
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
  
  /* ========== Z-INDEX SCALE ========== */
  --z-base: 0;
  --z-above: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 9998;
  --z-modal: 9999;
  --z-toast: 10000;
  
  /* ========== CONTAINER WIDTHS ========== */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  
  /* ========== EFFECT INTENSITIES ========== */
  /* These can be modified by aesthetic modes */
  --scanline-opacity: 0.05;
  --noise-intensity: 0.1;
  --chromatic-offset: 2px;
  --glitch-probability: 0.1;
  --crt-curve: 3px;
}

/* ========== AESTHETIC MODE OVERRIDES ========== */
/* These are applied when data-mode attribute changes */

[data-mode="rot"] {
  --scanline-opacity: 0.08;
  --noise-intensity: 0.15;
  --chromatic-offset: 3px;
}

[data-mode="corporate"] {
  --rot-void: #f8f9fa;
  --rot-deep: #ffffff;
  --rot-surface: #f0f0f5;
  --rot-border: #d0d0e0;
  --rot-text-primary: #1a1a2e;
  --rot-text-muted: #4a4a6a;
  --rot-text-dim: #8a8aaa;
  --scanline-opacity: 0;
  --noise-intensity: 0;
  --chromatic-offset: 0;
}

[data-mode="cinematic"] {
  --scanline-opacity: 0.03;
  --noise-intensity: 0.05;
  --chromatic-offset: 1px;
}

[data-mode="surreal"] {
  --scanline-opacity: 0.1;
  --noise-intensity: 0.2;
  --chromatic-offset: 4px;
  --rot-aqua: #00ff88;
  --rot-magenta: #ff00aa;
}
