/* === public/css/app/appRanking.css (ESTILOS DE LA APP VOTACIÓN) === */

/* --- 1. LA TARJETA PRINCIPAL Y EL TEMPORIZADOR --- */
.ranking-container { width: 100%; display: flex; justify-content: center; }

#voting-card { 
    background: #000; 
    border: 1px solid #333; 
    border-top: 3px solid #00ff00; 
    border-radius: 16px; 
    padding: 20px 10px; 
    width: 95%; 
    max-width: 450px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    /* 🔥 Magia del brillo: Sombra negra hacia abajo + Resplandor verde suave hacia arriba */
    box-shadow: 0 10px 50px rgba(0,0,0,0.9), 0 -5px 55px rgba(0, 255, 0, 0.6); 
    margin-bottom: 20px; 
    animation: slideDown 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
@keyframes slideDown { from { transform: translateY(-50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.card-header { width: 100%; text-align: center; margin-bottom: 10px; border-bottom: 1px solid #222; padding-bottom: 15px; }
.voting-label { font-size: 0.7rem; color: #00ff00; font-weight: bold; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; display: block; text-shadow: 0 0 8px rgba(0, 255, 0, 0.4); }

.timer-wrapper { display: flex; align-items: center; gap: 15px; width: 90%; margin: 0 auto 10px auto; }
.timer-container { flex: 1; height: 8px; background: #333; border-radius: 4px; overflow: hidden; margin: 0; }
#timer-bar { height: 100%; background: #00ff00; width: 100%; transition: width 0.1s linear; box-shadow: 0 0 10px #00ff00; }
#timer-text { font-size: 2.8rem; color: #ff0000 !important; font-weight: 400; font-family: 'Share Tech Mono', monospace; line-height: 1; min-width: 60px; text-align: right; text-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.4); animation: pulseRed 1s infinite; }
@keyframes pulseRed { 0% { opacity: 1; } 50% { opacity: 0.8; } 100% { opacity: 1; } }

#song-title { font-size: 1.8rem; font-weight: 900; color: #fff; margin: 0; line-height: 1.1; text-transform: uppercase; text-shadow: 0 2px 10px rgba(255,255,255,0.1); }
#vote-container { width: 100%; margin-top: 10px; }
.login-wall { color: #ff5555; border: 1px dashed #ff5555; padding: 15px; border-radius: 8px; background: rgba(255, 85, 85, 0.05); width: 100%; text-align: center; }


/* --- 2. LOS BOTONES Y MUNICIÓN --- */
#vote-buttons {
    display: flex; flex-direction: column; gap: 20px; padding-top: 30px; width: 100%;
}

#row-top { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; width: 100%; }
#row-bot { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 85%; margin: 0 auto; }

.btn-vote {
    width: 100%; height: 65px; font-size: 2em; font-weight: 800; border: none; border-radius: 12px;
    background: rgba(255,255,255,0.1); color: #fff; cursor: pointer; transition: all 0.2s ease;
    box-shadow: 0 4px 0px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
}

.btn-vote:active { transform: translateY(4px); box-shadow: none; }

.btn-vote.selected { 
    background: #00ff00 !important; color: #000 !important; transform: translateY(4px) !important; 
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.5) !important; opacity: 1 !important; 
}

.vote-wrapper { position: relative; width: 100%; height: 100%; }

.ammo-badge {
    position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
    font-size: 0.75em; font-weight: 700; text-shadow: 0px 1px 3px rgba(0,0,0,0.9);
    pointer-events: none; z-index: 2;
}

.ammo-inf { color: #39ff14; } 
.ammo-num { color: #ffffff; } 
.ammo-zero { color: #ff3333; font-size: 1.0em;} 

.btn-vote.disabled {
    opacity: 0.25; background: rgba(50,0,0,0.5); color: #aaa;
    cursor: not-allowed; pointer-events: none; box-shadow: none; transform: translateY(2px);
}


/* --- 3. COOLDOWNS / HORNO --- */
.cooldown-container {
    position: absolute; bottom: 4px; left: 0; width: 100%;
    display: flex; justify-content: center; align-items: center; gap: 3px; pointer-events: none;
}
.cd-dot { width: 6px; height: 6px; background-color: #e67e22; border-radius: 50%; box-shadow: 0 0 3px rgba(0,0,0,0.5); }
.cd-plus-css { position: relative; width: 6px; height: 6px; margin-left: 2px; }
.cd-plus-css::before, .cd-plus-css::after { content: ''; position: absolute; background-color: #e67e22; box-shadow: 0 0 3px rgba(0,0,0,0.5); }
.cd-plus-css::before { top: 2px; left: 0; width: 6px; height: 2px; }
.cd-plus-css::after { top: 0; left: 2px; width: 2px; height: 6px; }


/* ==============================================================
   --- 4. TEMA DEL LIMBO (Dimensión Paralela para la APP) --- 
   ============================================================== */

body.limbo-theme #voting-card { 
    border-top: 3px solid #ffd700; 
    /* 🔥 Brillo equivalente en amarillo oro */
    box-shadow: 0 10px 50px rgba(0,0,0,0.9), 0 -5px 55px rgba(255, 215, 0, 0.6); 
}

body.limbo-theme .voting-label { 
    color: #ffd700; 
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); 
}

body.limbo-theme #timer-bar { 
    background: #ffd700; 
    box-shadow: 0 0 10px #ffd700; 
}

body.limbo-theme .btn-vote.selected {
    background: #ffd700 !important;
    color: #000 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), inset 0 1px 0 rgba(255,255,255,0.5) !important;
}

body.limbo-theme .btn-vote.disabled {
    opacity: 1 !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: 0 4px 0px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

body.limbo-theme .cooldown-container { display: none !important; }

body.limbo-theme #heart-btn {
    border-color: #ffd700;
    box-shadow: 0 0 55px rgba(255, 215, 0, 0.6); 
}
body.limbo-theme #heart-btn:active {
    background: rgba(255, 215, 0, 0.1);
}

/* 🔥 FORZAR LOS INFINITOS A AMARILLO ORO 🔥 */
body.limbo-theme .ammo-badge.ammo-inf {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8) !important;
}

/* 🌌 IMAGEN DE FONDO PARA EL LIMBO 🌌 ('../../imagenes/sueño_limbo.jpg') */
body.limbo-theme {
    background: 
        /*radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.95) 100%),*/
        radial-gradient(circle at center, rgba(60, 45, 0, 0.65) 0%, rgba(0, 0, 0, 0.95) 100%),
        url('../../imagenes/suelo_limbo.jpg') no-repeat center center fixed;
    background-size: cover;
}