/* style.css - Ultra-Attractive 3D Glossy Arcade Sound Buttons & Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@700;800;900&family=Outfit:wght@400;500;600;700;800;900&family=Syne:wght@700;800&display=swap');

:root {
  --bg-primary: #0B0F17;
  --bg-card: rgba(22, 28, 45, 0.65);
  --bg-card-hover: rgba(30, 41, 67, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --accent-saffron: #FF9933;
  --accent-emerald: #10B981;
  --accent-cyan: #06B6D4;
  --accent-pink: #EC4899;
  --glow-shadow: 0 0 25px rgba(255, 153, 51, 0.25);
  --card-blur: blur(16px);
  --nav-bg: rgba(11, 15, 23, 0.8);
}

[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(241, 245, 249, 0.95);
  --border-color: rgba(0, 0, 0, 0.08);
  --text-main: #0F172A;
  --text-muted: #64748B;
  --glow-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --nav-bg: rgba(248, 250, 252, 0.85);
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Big Brand Logo Font Styling */
.font-unbounded {
  font-family: 'Unbounded', 'Syne', sans-serif !important;
}

.logo-brand-text {
  font-family: 'Unbounded', 'Syne', sans-serif !important;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.animate-spin-slow {
  animation: spinSlow 12s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Glassmorphism Card Utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--card-blur);
  -webkit-backdrop-filter: var(--card-blur);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.25);
}

.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

/* Sound Card Container Overflow Protection */
.sound-card {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Strict Title Clamping & Forced Word Break for Long Strings (e.g. AHHHHHHHHH) */
.sound-card-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: break-all !important;
  overflow-wrap: anywhere !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  line-height: 1.25 !important;
  height: 2.5rem !important;
  text-align: center !important;
}

/* Ultra-Attractive 3D Glossy Arcade Sound Button Wrapper */
.sound-btn-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.25) 0%, rgba(30, 30, 40, 0.8) 70%, rgba(10, 10, 15, 0.95) 100%);
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 10px 25px -5px rgba(0, 0, 0, 0.6),
    inset 0 2px 4px rgba(255, 255, 255, 0.35),
    inset 0 -3px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.sound-btn-wrapper:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: rgba(255, 153, 51, 0.6);
  box-shadow: 
    0 15px 30px -5px rgba(255, 153, 51, 0.35),
    0 10px 25px rgba(0, 0, 0, 0.7),
    inset 0 2px 5px rgba(255, 255, 255, 0.5);
}

/* 3D Sphere Glossy Push Button */
.sound-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    inset 0 8px 12px rgba(255, 255, 255, 0.55),
    inset 0 -10px 16px rgba(0, 0, 0, 0.55),
    0 10px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Curved Specular Gloss Reflection (Top Bubble Reflection) */
.sound-btn::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 12%;
  width: 76%;
  height: 44%;
  border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.15) 65%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Secondary Bottom Rim Light Reflection */
.sound-btn::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 20%;
  width: 60%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
  z-index: 2;
}

.sound-btn:hover {
  transform: scale(1.05);
  box-shadow: 
    inset 0 10px 14px rgba(255, 255, 255, 0.7),
    inset 0 -10px 16px rgba(0, 0, 0, 0.6),
    0 14px 28px rgba(0, 0, 0, 0.7);
}

.sound-btn:active {
  transform: scale(0.92) translateY(3px);
  box-shadow: 
    inset 0 5px 8px rgba(0, 0, 0, 0.75),
    inset 0 -2px 4px rgba(255, 255, 255, 0.25),
    0 3px 8px rgba(0, 0, 0, 0.5);
}

/* 3D Button Icon Styling */
.sound-btn i {
  position: relative;
  z-index: 3;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.7));
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Active / Playing State (Vibrant 3D Lime/Emerald Sphere with Pulse Glow) */
.sound-btn.is-playing {
  background: radial-gradient(circle at 35% 35%, #a3e635 0%, #65a30d 45%, #3f6212 85%, #1a2e05 100%) !important;
  border-color: rgba(190, 242, 100, 0.9);
  box-shadow: 
    inset 0 8px 12px rgba(255, 255, 255, 0.7),
    inset 0 -10px 16px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(163, 230, 53, 0.75);
}

/* Glow Ring Pulse Wave Animation when Active / Playing */
.sound-btn.is-playing::after {
  content: '';
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 3.5px solid #a3e635;
  animation: pulseGlow 1.3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.85);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Sound Wave Bars Animation */
.sound-wave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 14px;
}

.sound-wave span {
  width: 2.5px;
  background-color: var(--accent-saffron);
  border-radius: 2px;
  animation: wave 0.8s ease-in-out infinite alternate;
}

.sound-wave span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.sound-wave span:nth-child(4) { height: 100%; animation-delay: 0.4s; }

@keyframes wave {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* Floating Bottom Player Bar */
.bottom-player {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 50;
  width: 90%;
  max-width: 600px;
  border-radius: 24px;
}

.bottom-player.active {
  transform: translateX(-50%) translateY(0);
}

/* Category Chip Styling */
.category-chip {
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.category-chip:hover, .category-chip.active {
  background: linear-gradient(135deg, var(--accent-saffron), #E65100);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 153, 51, 0.4);
  transform: translateY(-1px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(156, 163, 175, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(156, 163, 175, 0.5);
}
