/* ========================================
   GLASSMORPHISM 2026 STYLES
   Modern glass effects & animations
   ======================================== */

/* Enhanced Card Glassmorphism */
.card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(var(--blur-amount, 20px)) saturate(180%) !important;
    -webkit-backdrop-filter: blur(var(--blur-amount, 20px)) saturate(180%) !important;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1),
        inset 0 -1px 0 rgba(0,0,0,0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: left 0.6s;
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    border-color: rgba(255,255,255,0.15) !important;
    transform: translateY(-2px);
}

/* Card Glow Effect */
.card-glow::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
    background-size: 300% 300%;
    opacity: 0;
    z-index: -1;
    filter: blur(15px);
    transition: opacity 0.5s;
    animation: gradientShift 8s ease infinite;
}

.card-glow:hover::after {
    opacity: 0.4;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Hover Lift */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s !important;
}

.hover-lift:hover {
    transform: translateY(-6px) scale(1.01) !important;
}

/* Enhanced Live Dot */
.live-dot {
    width: 10px !important;
    height: 10px !important;
    background: linear-gradient(135deg, #ff3b5c, #ff006e) !important;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff3b5c, 0 0 30px rgba(255,59,92,0.5);
    animation: livePulseEnhanced 1.5s ease-in-out infinite !important;
}

@keyframes livePulseEnhanced {
    0%, 100% { 
        transform: scale(1); 
        box-shadow: 0 0 15px #ff3b5c, 0 0 30px rgba(255,59,92,0.5);
    }
    50% { 
        transform: scale(1.3); 
        box-shadow: 0 0 25px #ff3b5c, 0 0 50px rgba(255,59,92,0.7);
    }
}

/* Tags */
.tag {
    padding: 6px 14px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s !important;
}

.tag-live {
    background: linear-gradient(135deg, rgba(255,59,92,0.2), rgba(255,0,110,0.2)) !important;
    border: 1px solid rgba(255,59,92,0.3) !important;
    color: #ff3b5c !important;
}

.tag-accent {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, transparent), color-mix(in srgb, var(--accent-2) 20%, transparent)) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent) !important;
    color: var(--accent) !important;
}

/* Buttons */
.btn-glass {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 14px !important;
    backdrop-filter: blur(10px) !important;
    color: var(--text) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.1) !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 20px color-mix(in srgb, var(--accent) 20%, transparent);
}

/* Play Button */
.play-glass {
    background: linear-gradient(135deg, var(--accent), var(--accent-2)) !important;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 8px 25px color-mix(in srgb, var(--accent) 40%, transparent);
}

.play-glass:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Equalizer */
.eq-modern span {
    background: linear-gradient(to top, var(--accent), var(--accent-2)) !important;
    box-shadow: 0 0 10px var(--accent);
}

/* Album Art */
.album-art-bg {
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 60px rgba(0,0,0,0.3) !important;
    border: 2px solid rgba(255,255,255,0.1) !important;
}

/* Glow Text */
.glow-text {
    text-shadow: 
        0 0 10px color-mix(in srgb, var(--accent) 50%, transparent),
        0 0 30px color-mix(in srgb, var(--accent) 30%, transparent),
        0 0 60px color-mix(in srgb, var(--accent) 15%, transparent) !important;
}

/* Accent Line Animated */
.accent-line {
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3)) !important;
    background-size: 200% 100%;
    animation: accentFlow 3s ease infinite;
}

@keyframes accentFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating Player */
.floating-player {
    background: linear-gradient(135deg, rgba(10,10,18,0.95), rgba(5,5,10,0.98)) !important;
    backdrop-filter: blur(30px) saturate(200%) !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5) !important;
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse-glow { animation: pulseGlow 2s ease-in-out infinite; }
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 30%, transparent); }
    50% { box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 50%, transparent); }
}

/* Light Theme */
[data-theme="light"] .card {
    background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(255,255,255,0.5)) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1) !important;
}

/* ========================================
   NOW PLAYING ULTRA STYLES
   ======================================== */

/* Album Glow Animation */
@keyframes albumGlow {
    0%, 100% { 
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 40px color-mix(in srgb, var(--accent) 20%, transparent);
    }
    50% { 
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5), 0 0 60px color-mix(in srgb, var(--accent) 40%, transparent);
    }
}

.album-glow-pulse {
    animation: albumGlow 2s ease-in-out infinite;
}

/* Audio Visualizer Styles */
.audio-visualizer {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 40px;
}

.audio-visualizer .bar {
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--accent), var(--accent-2));
    animation: audioBar 0.5s ease-in-out infinite alternate;
}

@keyframes audioBar {
    0% { height: 10%; opacity: 0.5; }
    100% { height: 100%; opacity: 1; }
}

/* Staggered delays for visualizer bars */
.audio-visualizer .bar:nth-child(1) { animation-delay: 0.0s; }
.audio-visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(5) { animation-delay: 0.4s; }
.audio-visualizer .bar:nth-child(6) { animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(7) { animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(8) { animation-delay: 0.1s; }

/* Waveform Animation */
@keyframes waveform {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

.waveform-bar {
    animation: waveform 0.8s ease-in-out infinite;
}

/* Heart Pop Animation */
@keyframes heartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

.heart-pop {
    animation: heartPop 0.4s ease-out;
}

/* Progress Glow */
.progress-glow {
    position: relative;
}

.progress-glow::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
}

/* Marquee for long titles */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-text {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 10s linear infinite;
}

/* Ripple effect */
@keyframes ripple {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(2); opacity: 0; }
}

.ripple {
    animation: ripple 1s ease-out infinite;
}

/* Conic gradient spin */
@keyframes conicSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.conic-spin {
    animation: conicSpin 4s linear infinite;
}

/* Collapse transition for Alpine */
[x-cloak] { display: none !important; }
