/* ==========================================================================
   ZGMusic - Custom Stylesheet & Design System
   The Official Zubeen Garg Digital Music Experience
   ========================================================================== */

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

:root {
    --bg-dark: #070A12;
    --bg-card: rgba(15, 23, 42, 0.7);
    --border-color: rgba(51, 65, 85, 0.6);
    --primary-red: #E11D48;
    --primary-rose: #F43F5E;
    --accent-indigo: #6366F1;
    --accent-emerald: #10B981;
    --accent-amber: #F59E0B;
}

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

html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: #F8FAFC;
    selection-background-color: #E11D48;
    selection-color: #ffffff;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(51, 65, 85, 0.5);
}

.glass-panel-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel-hover:hover {
    background: rgba(30, 41, 59, 0.75);
    border-color: rgba(225, 29, 72, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.15);
}

/* Ambient Radial Glows */
.ambient-glow-red {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(225, 29, 72, 0.15) 0%, rgba(225, 29, 72, 0) 70%);
    pointer-events: none;
    filter: blur(40px);
}

.ambient-glow-indigo {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    pointer-events: none;
    filter: blur(40px);
}

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

::-webkit-scrollbar-track {
    background: #070A12;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #E11D48;
}

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

.sound-wave-bar {
    width: 3px;
    background-color: #E11D48;
    border-radius: 9999px;
    animation: waveAnimation 1.2s ease-in-out infinite alternate;
}

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

@keyframes waveAnimation {
    0% { height: 20%; }
    100% { height: 100%; }
}

/* Vinyl Rotating Animation */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.paused {
    animation-play-state: paused !important;
}

/* Gradient Text */
.gradient-text-red {
    background: linear-gradient(135deg, #FFF 30%, #FDA4AF 70%, #E11D48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom Range Slider */
input[type=range].custom-slider {
    -webkit-appearance: none;
    background: #334155;
    height: 4px;
    border-radius: 9999px;
    outline: none;
}

input[type=range].custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E11D48;
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type=range].custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

/* Hide scrollbar for category tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ============================================
   Hero Waveform / Equalizer Bars
   ============================================ */
.wave-bar {
    animation: heroPulse 0.9s ease-in-out infinite alternate;
    transform-origin: bottom;
    will-change: transform, height;
    min-height: 6px;
}

@keyframes heroPulse {
    0%   { transform: scaleY(0.15); opacity: 0.6; }
    25%  { transform: scaleY(0.55); opacity: 0.8; }
    60%  { transform: scaleY(0.9);  opacity: 1;   }
    80%  { transform: scaleY(1.05); opacity: 1;   }
    100% { transform: scaleY(0.2);  opacity: 0.5; }
}

/* Pause wave when tab is not visible */
@media (prefers-reduced-motion: reduce) {
    .wave-bar {
        animation: none;
    }
}
