/* ================================================
   BARRAS.CSS - Barras de energía y progreso
   ================================================ */

/* ========== BARRA DE ENERGÍA BÁSICA ========== */
.energia-basica-container {
    margin-bottom: 20px;
    text-align: left;
}

.energia-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.energia-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.energia-icon {
    font-size: 18px;
    transition: all 0.3s ease;
    display: inline-block;
}

.energia-icon.low {
    color: #ff6666;
    text-shadow: 0 0 6px #ff0000;
}

.energia-icon.medium {
    color: var(--premium);
    text-shadow: 0 0 6px rgba(255,204,0,0.6);
}

.energia-icon.high,
.energia-icon.full {
    color: #ffdd44;
    text-shadow: 0 0 14px #ffaa00;
    animation: pulseGlow 1.5s infinite;
}

.energia-label {
    font-size: 13px;
    font-weight: bold;
    color: #ddd;
}

.energy-segments {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 5px;
}

.energy-segment {
    flex: 1;
    height: 12px;
    background-color: #2a2a2a;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.energy-segment.active {
    background: linear-gradient(180deg, #ffcc00, #ffaa00, #ff8800);
    box-shadow: 0 0 6px rgba(255,204,0,0.6);
}

.energy-segment.active.low {
    background: linear-gradient(180deg, #ff6666, #ff4444, #cc0000);
    box-shadow: 0 0 5px rgba(255,68,68,0.5);
}

/* ========== BARRA DE ENERGÍA PREMIUM ========== */
#energiaPremiumContainer {
    margin: 12px 0;
}

#energiaPremiumBarra {
    display: flex;
    gap: 1.5px;
    background: rgba(0,0,0,0.3);
    padding: 3px 4px;
    border-radius: 12px;
    border: 1px solid rgba(255,204,0,0.15);
}

/* ========== BARRAS DE SENSIBILIDAD (Free Fire Style) ========== */
.sensi-ff-bar-container {
    margin-bottom: 12px;
}

.sensi-ff-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.sensi-ff-bar-name {
    font-size: 11px;
    color: #ccc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sensi-ff-bar-value {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.sensi-ff-bar-track {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sensi-ff-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease-out;
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    box-shadow: 0 0 8px rgba(255,204,0,0.6);
}

/* ========== PROGRESO GENERAL (Perfil y otros) ========== */
.perfil-progress-bar {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.perfil-progress-fill {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    height: 100%;
    border-radius: 8px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

/* ========== PROGRESO DE NIVEL (Barra delgada) ========== */
.level-wrapper {
    text-align: center;
    margin: 5px 0;
}

.rank-icon-top {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 6px rgba(255,204,0,0.4));
}

.progress-bar-thin {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    height: 6px;
    overflow: hidden;
    margin: 4px 0;
}

.progress-fill-thin {
    background: linear-gradient(90deg, #ffcc00, #ffaa00);
    height: 100%;
    border-radius: 6px;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(255,204,0,0.4);
}

.xp-text-small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* ========== CONTADOR VIP ========== */
.vip-timer {
    margin-top: 5px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: bold;
    color: var(--premium);
    text-shadow: 0 0 5px rgba(255, 204, 0, 0.5);
    letter-spacing: 0.5px;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-block;
    width: auto;
}

#vipTiempoRestante {
    font-family: 'Segoe UI', monospace;
}

.vip-icon {
    color: var(--premium);
    font-size: 15px;
    margin-right: 5px;
    text-shadow: 0 0 5px #ffcc00;
}

.vip-label {
    color: var(--premium);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-right: 5px;
    text-shadow: 0 0 6px rgba(255, 204, 0, 0.6);
}

.vip-bracket-open,
.vip-bracket-close {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.vip-bracket-open {
    margin-right: 3px;
}

.vip-bracket-close {
    margin-left: 3px;
}

.vip-value {
    color: var(--premium);
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.6px;
}

.vip-unit-d,
.vip-unit-h,
.vip-unit-a,
.vip-unit-m {
    color: black;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 2px;
    margin-right: 2px;
}

/* ========== ANIMACIONES DE BARRAS ========== */
@keyframes pulseGlow {
    0%, 100% { text-shadow: 0 0 0px rgba(255,204,0,0.5); }
    50% { text-shadow: 0 0 12px rgba(255,204,0,0.9); }
}

.flash-animation {
    animation: flash 0.3s ease-out;
}

@keyframes flash {
    0% { opacity: 0.5; box-shadow: 0 0 0px var(--premium); }
    100% { opacity: 1; box-shadow: 0 0 8px var(--premium); }
}

.pulse-animation {
    animation: pulseGlow 0.6s ease-out;
}

/* ========== ANUNCIO ESPERA ========== */
.anuncio-espera {
    font-size: 10px;
    color: var(--premium);
    text-align: center;
    margin-top: 8px;
    margin-bottom: 0;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.0);
    border-radius: 20px;
    width: 100%;
    animation: fadeIn 0.3s ease;
}

/* ========== MULTIPLIER INDICATOR ========== */
.multiplier-indicator {
    font-size: 11px;
    color: var(--premium);
    text-align: center;
    margin-top: 4px;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(255,204,0,0.5);
}