/**
 * MINEHUT.GAY — Design System Variables
 * Cross-browser compatible with hex colors
 */

:root {
  /* ===== COLOR PALETTE - HEX for maximum browser compatibility ===== */
  --bg-primary: #07040c;
  --bg-secondary: #120c1c;
  --bg-glass: rgba(18, 12, 28, 0.88);
  --bg-glass-light: rgba(30, 20, 45, 0.65);

  /* Accent Colors */
  --accent-red: #ff3a5c;
  --accent-red-glow: #ff5a7c;
  --accent-cyan: #00e5ff;
  --accent-purple: #b366ff;
  --accent-ember: #ff7b3a;
  --accent-green: #00ff88;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #c4b8d8;
  --text-dim: #8a7fa0;
  --text-muted: #665b78;

  /* Semantic Colors */
  --success: #00ff88;
  --warning: #ffcc00;
  --error: #ff4466;
  --info: #3399ff;

  /* Legacy aliases for compatibility */
  --bg: #07040c;
  --accent: #ff3a5c;
  --accent-glow: #ff5a7c;
  --cyan: #00e5ff;
  --purple: #b366ff;
  --ember: #ff7b3a;
  --text: #ffffff;

  /* ===== TYPOGRAPHY ===== */
  --font-primary: "Inter Variable", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;

  /* Type Scale (Major Third - 1.25) */
  --text-xs: clamp(0.64rem, 0.59rem + 0.24vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.74rem + 0.3vw, 1rem);
  --text-base: clamp(1rem, 0.93rem + 0.37vw, 1.25rem);
  --text-lg: clamp(1.25rem, 1.16rem + 0.47vw, 1.56rem);
  --text-xl: clamp(1.56rem, 1.45rem + 0.58vw, 1.95rem);
  --text-2xl: clamp(1.95rem, 1.81rem + 0.73vw, 2.44rem);
  --text-3xl: clamp(2.44rem, 2.26rem + 0.91vw, 3.05rem);
  --text-4xl: clamp(3.05rem, 2.83rem + 1.14vw, 3.81rem);
  --text-5xl: clamp(3.81rem, 3.53rem + 1.42vw, 4.77rem);
  --text-display: clamp(4.5rem, 4rem + 4vw, 16rem);

  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --weight-black: 900;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.15;
  --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;
  --tracking-widest: 0.15em;
  --tracking-ultra: 0.25em;

  /* ===== SPACING ===== */
  --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;
  --space-32: 8rem;

  /* ===== BORDERS & RADIUS ===== */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  --border-thin: 1px;
  --border-default: 2px;
  --border-thick: 4px;

  /* ===== SHADOWS ===== */
  --shadow-glow-sm: 0 0 15px;
  --shadow-glow-md: 0 0 30px;
  --shadow-glow-lg: 0 0 60px;
  --shadow-glow-xl: 0 0 100px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-massive: 0 40px 100px rgba(0, 0, 0, 0.5);

  /* ===== TRANSITIONS ===== */
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --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-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  --duration-instant: 50ms;
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;
  --duration-slowest: 1000ms;

  /* ===== Z-INDEX SCALE ===== */
  --z-below: -1;
  --z-base: 0;
  --z-canvas: 0;
  --z-overlay: 1;
  --z-scanlines: 2;
  --z-content: 10;
  --z-controls: 100;
  --z-ticker: 200;
  --z-modal: 500;
  --z-tooltip: 1000;

  /* ===== GLASS EFFECTS ===== */
  --blur-sm: blur(4px);
  --blur-md: blur(12px);
  --blur-lg: blur(20px);
  --blur-xl: blur(30px);
  --blur-2xl: blur(40px);

  /* ===== LAYOUT ===== */
  --max-width-sm: 640px;
  --max-width-md: 768px;
  --max-width-lg: 1024px;
  --max-width-xl: 1280px;
  --max-width-2xl: 1400px;
  --max-width-full: 100%;

  /* ===== BREAKPOINTS (for reference in JS) ===== */
  --bp-sm: 640px;
  --bp-md: 768px;
  --bp-lg: 1024px;
  --bp-xl: 1280px;
  --bp-2xl: 1536px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-instant: 0ms;
    --duration-fast: 0ms;
    --duration-normal: 0ms;
    --duration-slow: 0ms;
    --duration-slower: 0ms;
    --duration-slowest: 0ms;
  }
}
