/* --- assets/style.css (VERSIÓN DEFINITIVA SAAS 2026) --- */

:root {
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --danger: #ff4444;
    /* Las siguientes variables se sobreescriben desde JS, pero dejamos valores base */
    --brand-color: #bb29ff;
    --brand-color-dim: rgba(187, 41, 255, 0.2);
    --accent-color-dim: rgba(0, 229, 255, 0.1); 
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    /* Fondo dinámico usando el color de la marca */
    background-image: 
        radial-gradient(circle at 15% 50%, var(--brand-color-dim) 0%, transparent 25%), 
        radial-gradient(circle at 85% 30%, var(--accent-color-dim) 0%, transparent 25%);
    color: var(--text);
    margin: 0; padding: 0; padding-bottom: 120px;
    min-height: 100vh;
}

/* --- ANIMACIONES --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseVote { 0% { transform: scale(1); } 50% { transform: scale(1.2); color: white; } 100% { transform: scale(1); color: var(--brand-color); } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes equalize { 0% { height: 5px; } 50% { height: 15px; } 100% { height: 5px; } }

.animate-in { animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }

/* --- PANTALLA DE BLOQUEO (LOGIN) --- */
#guest-login {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    padding: 20px;
}

h1 {
    font-family: 'Montserrat', sans-serif; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.pass-input {
    padding: 12px 20px; 
    font-size: 1.2rem; 
    text-align: center; 
    border-radius: 50px;
    border: 2px solid var(--brand-color); 
    background: rgba(255,255,255,0.05); 
    color: white;
    width: 80%; 
    max-width: 300px; 
    margin-bottom: 15px;
    outline: none; 
    font-family: 'Poppins', sans-serif; 
    font-weight: 600;
}

.pass-input::placeholder { color: rgba(255,255,255,0.5); font-size: 1rem; font-weight: 400; }

.btn-enter {
    padding: 15px 50px; 
    background: var(--brand-color); 
    border: none; 
    border-radius: 50px;
    font-weight: 900; 
    font-size: 1.2rem; 
    color: black; 
    cursor: pointer;
    box-shadow: 0 0 20px var(--brand-color-dim); 
    transition: transform 0.2s;
    margin-top: 10px;
}
.btn-enter:active { transform: scale(0.95); }

/* --- HEADER --- */
header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px;
    background: linear-gradient(-45deg, #0f0f0f, #1a1a1a, #0f2027, #203a43);
    background-size: 400% 400%; animation: gradientMove 15s ease infinite;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky; top: 0; z-index: 200;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.brand-container { display: flex; align-items: center; gap: 12px; }

.dj-logo-img {
    width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--brand-color); box-shadow: 0 0 10px var(--brand-color-dim);
}

.equalizer { display: flex; gap: 3px; align-items: center; height: 20px; margin-right: 5px; }
.bar { width: 3px; background: var(--brand-color); border-radius: 3px; animation: equalize 1s ease-in-out infinite; }
.bar:nth-child(2) { animation-delay: 0.2s; height: 10px; } 
.bar:nth-child(3) { animation-delay: 0.4s; height: 8px; }

.dj-name {
    font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 1.2rem;
    letter-spacing: 1px; text-transform: uppercase; color: white;
    display: flex; flex-direction: column; line-height: 1;
}

.social-btn, .whatsapp-btn, .insta-btn {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--brand-color);
    color: white; padding: 8px 12px; 
    border-radius: 30px; 
    text-decoration: none; 
    font-size: 0.8rem; font-weight: 700;
    transition: all 0.3s ease; backdrop-filter: blur(5px);
}

.social-btn:hover { background: var(--brand-color); color: black; }
.social-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

.credits-bar {
    background: #111; padding: 4px 12px; border-radius: 20px; border: 1px solid #333;
    font-size: 0.75rem; color: #aaa; margin-top: 5px; display: inline-block;
}
.credits-val { color: var(--brand-color); font-weight: 900; font-size: 0.9rem; }

/* --- CONTENEDOR Y BUSCADOR --- */
.container { padding: 20px; max-width: 550px; margin: 0 auto; }

.search-container {
    background: var(--glass-bg); border: 1px solid var(--glass-border);
    padding: 6px; border-radius: 35px; display: flex; gap: 10px; margin-top: 20px;
    backdrop-filter: blur(10px); box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: all 0.3s;
}
.search-blocked { opacity: 0.5; pointer-events: none; filter: grayscale(1); }

input { flex: 1; padding: 12px 20px; border: none; background: transparent; color: #fff; font-size: 16px; outline: none; font-family: 'Poppins', sans-serif; }

button.btn-search {
    background: var(--brand-color); color: #000; border: none; 
    width: 48px; height: 48px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; flex-shrink: 0; min-width: 48px;
    display: flex; align-items: center; justify-content: center;
}

/* --- RESULTADOS DE BÚSQUEDA (Spotify) --- */
#results {
    list-style: none; padding: 0; margin: 15px 0;
    max-height: 400px; overflow-y: auto;
}

#results li {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    border-radius: 12px; padding: 10px; margin-bottom: 10px;
    display: flex; align-items: center; gap: 12px;
}

#results .cover { width: 50px; height: 50px; border-radius: 6px; object-fit: cover; margin-right: 0; }
#results .title { color: white; font-weight: 600; font-size: 0.95rem; white-space: normal; }
#results .artist { color: #aaa; font-size: 0.8rem; }

.btn-pedir {
    background: transparent; color: var(--brand-color); border: 1px solid var(--brand-color);
    padding: 8px 15px; border-radius: 20px; font-weight: bold; font-size: 0.75rem;
    cursor: pointer; transition: all 0.3s; text-transform: uppercase;
}
.btn-pedir:hover { background: var(--brand-color); color: black; box-shadow: 0 0 10px var(--brand-color-dim); }

#status { text-align: center; color: var(--brand-color); margin: 10px 0; font-weight: 600; min-height: 20px; }

/* --- LISTA DE COLA (Requests) --- */
h3 {
    margin-top: 35px; margin-bottom: 15px; color: rgba(255,255,255,0.9); 
    font-weight: 700; font-size: 1rem; font-family: 'Montserrat', sans-serif; 
    display: flex; align-items: center; gap: 10px;
}
h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(to right, var(--glass-border), transparent); }

ul { list-style: none; padding: 0; }

li {
    background: linear-gradient(to right, rgba(25, 25, 25, 0.8), rgba(15, 15, 15, 0.6));
    border: 1px solid var(--glass-border); backdrop-filter: blur(10px);
    margin-bottom: 12px; padding: 12px; border-radius: 16px;
    display: flex; align-items: center; transition: all 0.3s ease;
}

li.played { order: 999; opacity: 0.3; background: transparent !important; filter: grayscale(1); pointer-events: none; }

img.cover { width: 55px; height: 55px; border-radius: 10px; margin-right: 15px; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }

.vote-col { display: flex; flex-direction: column; align-items: center; min-width: 50px; }
.btn-vote { background: none; border: none; color: var(--brand-color); font-size: 1.8rem; cursor: pointer; transition: transform 0.2s; line-height: 1; }
.btn-vote:disabled { color: #444; }
.vote-count { font-weight: bold; font-size: 0.8rem; opacity: 0.8; margin-top: -5px; }

/* CARTEL DE AVISO DE VOTOS */
.voting-tip {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--brand-color);
    padding: 10px 15px; margin-bottom: 15px;
    border-radius: 4px; font-size: 0.85rem; color: #ccc;
    display: flex; align-items: center; gap: 10px;
}
.voting-tip strong { color: var(--brand-color); font-size: 1.2rem; }