/* ==========================================================================
   GOD MODE — CORE DESIGN SYSTEM & TOKENS
   Inspired by tamilfm.co and vintage transistor audio aesthetics
   ========================================================================== */

:root {
  /* Chrome & Backgrounds (Dark #151515 base) */
  --color-bg-base: #0a0807;
  --color-chrome: #151515;
  --color-chrome-border: rgba(255, 255, 255, 0.08);
  --color-surface-translucent: rgba(21, 21, 21, 0.76);
  --color-surface-hover: rgba(30, 26, 23, 0.9);
  --color-surface-solid: #191410;

  /* Shared Analog Gold & Brass Accents */
  --color-gold: #f7d794;
  --color-amber: #d4a373;
  --color-copper: #b08968;
  --color-dial-needle: #ff5722;
  --color-led-green: #1ed760;
  --color-spotify: #1ed760;

  /* Typography Colors */
  --color-text-white: #fdfbf7;
  --color-text-subtle: #d3c9c1;
  --color-text-muted: #8c8075;

  /* Dynamic Per-Aura Tokens (Default: Murugan Aura) */
  --aura-primary: #f7d794;
  --aura-secondary: #2ecc71;
  --aura-glow: rgba(247, 215, 148, 0.38);
  --aura-scrim: rgba(12, 10, 9, 0.45);

  /* Typography Stacks */
  --font-display: 'Cinzel', 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Courier New', monospace;

  /* Glassmorphism & Elevation */
  --glass-blur: blur(16px);
  --glass-filter: blur(16px) saturate(140%);
  --shadow-elevation: 0 20px 50px rgba(0, 0, 0, 0.85);
  --shadow-dial: inset 0 2px 6px rgba(0, 0, 0, 0.95), 0 1px 0 rgba(255, 255, 255, 0.07);

  /* Z-Index Hierarchy */
  --z-bg-video: 0;
  --z-deity-art: 1;
  --z-atmosphere: 2;
  --z-scene-wash: 3;
  --z-hud-content: 100;
  --z-radio-dock: 150;
  --z-aura-dropdown: 250;

  /* Animation Timings */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-normal: 350ms;
}

/* ==========================================================================
   AURA-SPECIFIC COLOR THEMES
   ========================================================================== */

[data-aura="murugan"] {
  --aura-primary: #f7d794;
  --aura-secondary: #2ecc71;
  --aura-glow: rgba(247, 215, 148, 0.38);
  --aura-scrim: rgba(12, 10, 9, 0.45);
}

[data-aura="krishna"] {
  --aura-primary: #00b4d8;
  --aura-secondary: #ffd166;
  --aura-glow: rgba(0, 180, 216, 0.42);
  --aura-scrim: rgba(8, 14, 22, 0.50);
}

[data-aura="saibaba"] {
  --aura-primary: #ff9f1c;
  --aura-secondary: #f8f9fa;
  --aura-glow: rgba(255, 159, 28, 0.40);
  --aura-scrim: rgba(18, 12, 6, 0.48);
}

[data-aura="ganesha"] {
  --aura-primary: #e63946;
  --aura-secondary: #f77f00;
  --aura-glow: rgba(230, 57, 70, 0.42);
  --aura-scrim: rgba(20, 8, 8, 0.50);
}

[data-aura="shiva"] {
  --aura-primary: #48cae4;
  --aura-secondary: #ced4da;
  --aura-glow: rgba(72, 202, 228, 0.42);
  --aura-scrim: rgba(8, 12, 18, 0.52);
}

/* ==========================================================================
   GLOBAL RESET & BASE STYLES
   ========================================================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: var(--color-bg-base);
}

body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: transparent;
  color: var(--color-text-white);
  font-family: var(--font-sans);
  position: relative;
  user-select: none;
}

button, input, a {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

a {
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Pulse animation utility */
@keyframes pulseLight {
  0% { opacity: 0.45; box-shadow: 0 0 2px var(--color-led-green); }
  100% { opacity: 1; box-shadow: 0 0 8px var(--color-led-green), 0 0 14px var(--color-led-green); }
}

/* Focus styles for keyboard accessibility */
button:focus-visible, a:focus-visible, input:focus-visible, li[tabindex="0"]:focus-visible {
  outline: 2px solid var(--aura-primary);
  outline-offset: 3px;
}
