/* ==========================================================================
   PERICCA STREAMING & RADIO - CUSTOM STYLES & ANIMATIONS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --color-brand-cyan: #06b6d4;
  --color-brand-purple: #8b5cf6;
  --color-brand-pink: #ec4899;
  --color-bg-dark: #080c14;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: #f1f5f9;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0b0f19;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-nav {
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Glow & Gradient Utilities */
.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #22d3ee 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-gradient {
  background: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  transition: all 0.4s ease;
}

.btn-gradient:hover {
  background-position: right center;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

/* Live Equalizer Animation */
.equalizer-bar {
  display: inline-block;
  width: 3.5px;
  background: linear-gradient(to top, #06b6d4, #38bdf8);
  border-radius: 2px;
  margin: 0 1.5px;
  transform-origin: bottom;
  height: 5px;
  transition: height 0.2s ease;
}

.is-playing .equalizer-bar:nth-child(1) {
  animation: eqAnimation 0.8s infinite ease-in-out alternate;
}
.is-playing .equalizer-bar:nth-child(2) {
  animation: eqAnimation 1.1s infinite 0.2s ease-in-out alternate;
}
.is-playing .equalizer-bar:nth-child(3) {
  animation: eqAnimation 0.7s infinite 0.4s ease-in-out alternate;
}
.is-playing .equalizer-bar:nth-child(4) {
  animation: eqAnimation 1.3s infinite 0.1s ease-in-out alternate;
}
.is-playing .equalizer-bar:nth-child(5) {
  animation: eqAnimation 0.9s infinite 0.3s ease-in-out alternate;
}

@keyframes eqAnimation {
  0% { height: 4px; }
  50% { height: 22px; }
  100% { height: 10px; }
}

/* Pulse Ripple Glow for Hero Button */
@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.6);
  }
  70% {
    box-shadow: 0 0 0 25px rgba(6, 182, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

.pulse-playing {
  animation: pulseGlow 2s infinite;
}

/* Floating animation */
@keyframes floatAnim {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.animate-float {
  animation: floatAnim 6s ease-in-out infinite;
}

/* Background Animated Gradient Blobs */
.bg-blob-1 {
  position: absolute;
  top: 5%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.bg-blob-2 {
  position: absolute;
  top: 25%;
  right: 5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.14) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Pricing Card Popular Glow */
.pricing-popular {
  position: relative;
  border: 1px solid rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 40px -10px rgba(6, 182, 212, 0.35);
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22d3ee;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.8);
}
