/* LyricTreasureVault - Award-Level Brand Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cinzel:wght@600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #050505;
  --bg-secondary: #071426;
  --bg-card: #0A0D12;
  --bg-card-hover: #0E131B;
  --bg-footer: #030303;
  
  --blue-primary: #006CFF;
  --blue-lightning: #00A8FF;
  --blue-glow-ambient: rgba(0, 108, 255, 0.2);
  
  --gold-primary: #D99A00;
  --gold-luxury: #FFB800;
  --gold-shine: #FFD45A;
  --gold-bronze: #8A5500;
  --border-gold: #6F4700;
  --gold-glow-ambient: rgba(255, 184, 0, 0.2);
  
  --text-primary: #F7F4EC;
  --text-secondary: #A8B1BD;
  --border-card: #253449;
  
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-editorial: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Particle Canvas */
#ambient-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #253449;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D99A00;
}

/* Typography Utilities */
.font-display { font-family: var(--font-display); }
.font-body { font-family: var(--font-body); }
.font-editorial { font-family: var(--font-editorial); }
.font-mono { font-family: var(--font-mono); }

.editorial-headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.micro-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Luxury Metallic Shimmer Text */
.gold-shimmer-text {
  background: linear-gradient(135deg, #FFF1CA 0%, #FFB800 40%, #D99A00 70%, #FFD45A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.blue-shimmer-text {
  background: linear-gradient(135deg, #E0F2FE 0%, #00A8FF 50%, #006CFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Brand Background Gradients */
.hero-gradient {
  background: radial-gradient(circle at 50% 15%, rgba(0, 108, 255, 0.22) 0%, transparent 65%),
              radial-gradient(circle at 85% 45%, rgba(217, 154, 0, 0.12) 0%, transparent 55%),
              radial-gradient(circle at 15% 75%, rgba(0, 168, 255, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, #050505 0%, #071426 65%, #050505 100%);
}

.vault-atmosphere {
  background: radial-gradient(ellipse at 50% 50%, rgba(7, 20, 38, 0.95) 0%, #050505 100%);
}

.gold-glow {
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.25);
}

.blue-glow {
  box-shadow: 0 0 30px rgba(0, 108, 255, 0.28);
}

.gold-border-glow {
  border-color: var(--gold-primary);
  box-shadow: 0 0 18px rgba(217, 154, 0, 0.25);
}

/* Header Glass */
.header-glass {
  background-color: rgba(5, 5, 5, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 52, 73, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background-color: rgba(5, 5, 5, 0.96);
  border-bottom: 1px solid rgba(111, 71, 0, 0.5);
}

/* Official Logo Container */
.brand-logo-img {
  object-fit: contain;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Card Styles */
.vault-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.vault-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(0, 108, 255, 0.6);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 108, 255, 0.18);
}

.vault-card.featured-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(217, 154, 0, 0.25);
}

/* Interactive Category Tile */
.category-tile {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.category-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(0, 108, 255, 0.18) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-tile:hover {
  border-color: var(--blue-lightning);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 168, 255, 0.16);
}

.category-tile:hover::before {
  opacity: 1;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #FFB800 0%, #D99A00 100%);
  color: #050505;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FFD45A 0%, #FFB800 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.35);
}

.btn-secondary {
  background-color: rgba(10, 13, 18, 0.6);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 0.85rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border-card);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--blue-lightning);
  color: var(--blue-lightning);
  background-color: rgba(0, 108, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 108, 255, 0.2);
}

.btn-blue {
  background: linear-gradient(135deg, #006CFF 0%, #0052C6 100%);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-blue:hover {
  background: linear-gradient(135deg, #00A8FF 0%, #006CFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 168, 255, 0.4);
}

/* Persistent Audio Player */
.persistent-player-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(10, 13, 18, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(111, 71, 0, 0.5);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.9);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Waveform Scrubber */
.waveform-scrubber {
  position: relative;
  width: 100%;
  height: 48px;
  cursor: pointer;
  background: rgba(7, 20, 38, 0.7);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(37, 52, 73, 0.6);
  transition: border-color 0.2s ease;
}
.waveform-scrubber:hover {
  border-color: var(--blue-lightning);
}

/* Locked Lyric Blur */
.locked-lyric-blur {
  position: relative;
  user-select: none;
}
.locked-lyric-blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0) 0%, rgba(10, 13, 18, 0.94) 50%, #0A0D12 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* Drawer transitions */
.drawer-backdrop {
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(12px);
}

/* Kinetic Type / Marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 35s linear infinite;
}

.animate-marquee:hover {
  animation-play-state: paused;
}

/* Sound Wave Animation */
@keyframes soundWave {
  0%, 100% { height: 6px; }
  50% { height: 26px; }
}

.sound-bar {
  display: inline-block;
  width: 3px;
  border-radius: 2px;
  background: #FFB800;
  animation: soundWave 1.2s ease-in-out infinite;
}
.sound-bar:nth-child(1) { animation-delay: 0.1s; }
.sound-bar:nth-child(2) { animation-delay: 0.3s; }
.sound-bar:nth-child(3) { animation-delay: 0.5s; }
.sound-bar:nth-child(4) { animation-delay: 0.2s; }
.sound-bar:nth-child(5) { animation-delay: 0.4s; }

/* Filter Chips */
.filter-chip {
  background: #0A0D12;
  border: 1px solid #253449;
  color: #A8B1BD;
  padding: 0.5rem 1.1rem;
  font-size: 0.825rem;
  border-radius: 9999px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
}

.filter-chip:hover {
  border-color: #006CFF;
  color: #F7F4EC;
  transform: translateY(-1px);
}

.filter-chip.active {
  background: rgba(0, 108, 255, 0.18);
  border-color: #006CFF;
  color: #00A8FF;
  box-shadow: 0 0 12px rgba(0, 108, 255, 0.25);
}

.filter-chip.gold-active {
  background: rgba(217, 154, 0, 0.18);
  border-color: #D99A00;
  color: #FFB800;
  box-shadow: 0 0 12px rgba(217, 154, 0, 0.25);
}

/* Range Sliders */
input[type=range] {
  -webkit-appearance: none;
  background: #253449;
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFB800;
  cursor: pointer;
  border: 2px solid #050505;
  box-shadow: 0 0 10px rgba(255, 184, 0, 0.6);
  transition: transform 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}
