/* ==========================================================================
   LiveTrack - Rockola Digital PWA
   Tema: Bar Dark Mode con Acentos Neón (Violeta, Fucsia, Cian)
   ========================================================================== */

:root {
    --bg-main: #0a0714;
    --bg-surface: rgba(22, 17, 39, 0.75);
    --bg-surface-elevated: rgba(30, 23, 54, 0.85);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-neon-violet: rgba(168, 85, 247, 0.4);
    --border-neon-fuchsia: rgba(236, 72, 153, 0.5);
    --border-neon-cyan: rgba(6, 182, 212, 0.4);

    --neon-fuchsia: #ec4899;
    --neon-violet: #a855f7;
    --neon-cyan: #06b6d4;
    --neon-green: #10b981;

    --glow-fuchsia: 0 0 20px rgba(236, 72, 153, 0.45);
    --glow-violet: 0 0 20px rgba(168, 85, 247, 0.45);
    --glow-cyan: 0 0 20px rgba(6, 182, 212, 0.45);
    --glow-btn: 0 4px 20px rgba(236, 72, 153, 0.55), 0 0 10px rgba(168, 85, 247, 0.4);
}

/* Reset táctil móvil */
* {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    box-sizing: border-box;
}

input, button, a {
    user-select: auto;
}

body {
    background-color: var(--bg-main);
    color: #f3f4f6;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* Luces ambientales de fondo (Efecto Bar Lounge) */
.ambient-glow-1 {
    position: fixed;
    top: -100px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(10, 7, 20, 0) 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
}

.ambient-glow-2 {
    position: fixed;
    bottom: 10%;
    left: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.18) 0%, rgba(6, 182, 212, 0.08) 50%, rgba(10, 7, 20, 0) 75%);
    pointer-events: none;
    z-index: 0;
    filter: blur(50px);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-subtle);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-elevated {
    background: var(--bg-surface-elevated);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Borde Neón Activo */
.neon-border-active {
    border: 1px solid rgba(236, 72, 153, 0.55);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.2), inset 0 0 15px rgba(168, 85, 247, 0.1);
}

/* Ecualizador Animado */
.equalizer-container {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
    padding: 2px 4px;
}

.eq-bar {
    width: 3.5px;
    background: linear-gradient(180deg, #ec4899 0%, #a855f7 50%, #06b6d4 100%);
    border-radius: 2px;
    animation: eqWave 1.2s infinite ease-in-out alternate;
}

.eq-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; animation-duration: 0.8s; }
.eq-bar:nth-child(2) { height: 75%; animation-delay: 0.35s; animation-duration: 1.1s; }
.eq-bar:nth-child(3) { height: 100%; animation-delay: 0.05s; animation-duration: 0.9s; }
.eq-bar:nth-child(4) { height: 55%; animation-delay: 0.45s; animation-duration: 1.2s; }
.eq-bar:nth-child(5) { height: 85%; animation-delay: 0.2s; animation-duration: 0.75s; }

@keyframes eqWave {
    0% {
        height: 20%;
        opacity: 0.6;
    }
    50% {
        height: 95%;
        opacity: 1;
        filter: drop-shadow(0 0 4px #ec4899);
    }
    100% {
        height: 35%;
        opacity: 0.75;
    }
}

/* Animación de pulso vivo */
.pulse-live {
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 6px rgba(236, 72, 153, 0);
    }
}

/* Botón Crítico: "Añadir - $1000" */
.btn-add-neon {
    background: linear-gradient(135deg, #ec4899 0%, #9333ea 60%, #4f46e5 100%);
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.01em;
    padding: 0.65rem 0.95rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: var(--glow-btn);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-add-neon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-add-neon:hover::before,
.btn-add-neon:active::before {
    left: 100%;
}

.btn-add-neon:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 24px rgba(236, 72, 153, 0.7), 0 0 14px rgba(168, 85, 247, 0.6);
}

.btn-add-neon:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(236, 72, 153, 0.4);
}

/* Toast flotante de Mercado Pago */
.toast-mp-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: calc(100% - 32px);
    max-width: 420px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-mp-container.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-mp-box {
    background: linear-gradient(135deg, rgba(16, 21, 38, 0.95) 0%, rgba(20, 14, 38, 0.95) 100%);
    backdrop-filter: blur(20px);
    border: 1.5px solid #009ee3;
    border-radius: 1.15rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 158, 227, 0.35);
    padding: 1rem 1.25rem;
}

/* Spinner animado */
.spinner-mp {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 158, 227, 0.25);
    border-top-color: #009ee3;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Transición suave para colapso de cola */
.queue-content {
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}

.queue-content.collapsed {
    max-height: 0 !important;
    opacity: 0;
    pointer-events: none;
}

.queue-arrow {
    transition: transform 0.3s ease;
}

.queue-arrow.rotated {
    transform: rotate(180deg);
}

/* Barra de progreso de la canción actual */
.progress-bar-glow {
    box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
}

/* Scrollbar personalizado para estética dark */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #0a0714;
}
::-webkit-scrollbar-thumb {
    background: #251d40;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #a855f7;
}
