/* Custom Styles for Klezmer.cz */

/* Hero Background Gradient */
.hero-gradient {
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 25%, 
        #0f172a 50%, 
        #1a1a3e 75%, 
        #0f172a 100%
    );
}

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

.vinyl-spin {
    animation: none;
}

.vinyl-spin.playing {
    animation: vinyl-spin 3s linear infinite;
}

/* Pulse Slow Animation */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Equalizer Animation */
@keyframes eq-bar {
    0%, 100% {
        height: 4px;
    }
    50% {
        height: 20px;
    }
}

.eq-bar {
    animation: none;
}

.playing .eq-bar:nth-child(1) {
    animation: eq-bar 0.4s ease-in-out infinite;
}

.playing .eq-bar:nth-child(2) {
    animation: eq-bar 0.5s ease-in-out infinite 0.1s;
}

.playing .eq-bar:nth-child(3) {
    animation: eq-bar 0.3s ease-in-out infinite 0.2s;
}

.playing .eq-bar:nth-child(4) {
    animation: eq-bar 0.45s ease-in-out infinite 0.15s;
}

/* Track Item Hover Animation */
.track-item {
    transition: all 0.3s ease;
}

.track-item:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(4px);
}

.track-item.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
}

/* Custom Range Slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 6px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d4af37;
    cursor: pointer;
    border: none;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #d4af37, #f5d77a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

/* Fade In Animation */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in 0.5s ease forwards;
}

/* Wave Animation for Background */
@keyframes wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1);
    }
    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55);
    }
    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1);
    }
}

.wave {
    animation: wave 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

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