/* SpotiBox - Modern Clean Styling & Micro-Animations */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: 9999px;
}

.dark ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.45);
}

/* Glassmorphism Styles */
.glass-panel {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-panel {
  background: rgba(18, 20, 29, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(241, 245, 249, 0.9);
}

.dark .glass-card {
  background: rgba(26, 29, 41, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ambient Album Glow */
.ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  filter: blur(48px);
  opacity: 0.55;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
  transition: all 1s ease-in-out;
}

/* Vinyl Spin */
@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

/* Floating Crowd Reaction Animation */
@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(-20px) scale(1.1) rotate(-8deg);
  }
  85% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(-160px) scale(0.9) rotate(12deg);
    opacity: 0;
  }
}

.floating-reaction {
  position: absolute;
  pointer-events: none;
  animation: floatUp 2.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  will-change: transform, opacity;
}

/* Podium Shimmer */
@keyframes goldShine {
  0%, 100% {
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  }
  50% {
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.65);
  }
}

.gold-podium {
  animation: goldShine 3s infinite ease-in-out;
}

/* Pulse Glow */
@keyframes gentlePulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.03);
  }
}

.pulse-glow {
  animation: gentlePulse 4s infinite ease-in-out;
}

/* Vote Button active state bounce */
.vote-bounce:active {
  transform: scale(0.88);
}

/* Clean Touch Feedback for Mobile */
.tap-highlight-none {
  -webkit-tap-highlight-color: transparent;
}
