/* HUD Moderno Estilo Valorant - Elegante e Profissional */

/* HUD Container */
.hud {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    font-family: 'Montserrat', 'DIN Next', sans-serif;
}

/* HUD Left - Stats principais */
.hud-left {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    animation: slideInLeft 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HUD Right - Health e Accuracy */
.hud-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    animation: slideInRight 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* HUD Items - Design Valorant */
.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: linear-gradient(135deg, 
        rgba(15, 25, 35, 0.92) 0%, 
        rgba(20, 30, 40, 0.88) 100%);
    padding: 10px 16px;
    border-radius: 0px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 80px;
}

/* Borda superior neon */
.hud-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 240, 255, 0.8) 50%,
        transparent 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.hud-item:hover::before {
    opacity: 1;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.6);
}

/* Efeito hover */
.hud-item:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, 
        rgba(20, 30, 45, 0.95) 0%, 
        rgba(25, 35, 50, 0.92) 100%);
    box-shadow: 
        0 6px 24px rgba(0, 240, 255, 0.2),
        0 4px 16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Labels - Estilo Valorant */
.hud-label {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 800;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    line-height: 1;
}

/* Values - Números grandes e impactantes */
.hud-value {
    font-size: 26px;
    color: #ffffff;
    font-weight: 900;
    text-shadow: 
        0 2px 8px rgba(0, 240, 255, 0.4),
        0 0 20px rgba(0, 240, 255, 0.2),
        0 1px 2px rgba(0, 0, 0, 0.9);
    line-height: 1;
    font-family: 'Courier New', 'DIN Next', monospace;
    letter-spacing: 0.5px;
}

/* Score especial - Destaque dourado */
#score {
    font-size: 30px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
    animation: scoreGlow 3s ease-in-out infinite;
}

/* Combo - Cores dinâmicas */
#combo {
    transition: all 0.2s ease;
}

#combo[data-combo="high"] {
    color: #FF00FF;
    text-shadow: 
        0 0 20px rgba(255, 0, 255, 0.8),
        0 2px 8px rgba(255, 0, 255, 0.4);
    animation: comboPulse 0.5s ease-in-out;
}

/* Health Bar - Redesenhada */
.health-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, 
        rgba(15, 25, 35, 0.92) 0%, 
        rgba(20, 30, 40, 0.88) 100%);
    padding: 10px 16px;
    border-radius: 0px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    min-width: 200px;
}

/* Borda superior verde para health */
.health-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(76, 175, 80, 0.9) 50%,
        transparent 100%);
    opacity: 0.8;
}

/* Container da barra */
.bar-container {
    flex: 1;
    height: 10px;
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.8) 0%, 
        rgba(0, 0, 0, 0.6) 100%);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7);
    position: relative;
}

/* Barra de HP */
.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, 
        #4CAF50 0%, 
        #66BB6A 50%, 
        #81C784 100%);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease;
    position: relative;
    box-shadow: 
        0 0 16px rgba(76, 175, 80, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Brilho animado na barra */
.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: barShine 3s ease-in-out infinite;
}

/* HP baixo - Vermelho pulsante */
.bar-fill[data-low-hp="true"] {
    background: linear-gradient(90deg, 
        #F44336 0%, 
        #E53935 50%, 
        #D32F2F 100%);
    animation: lowHpPulse 1s ease-in-out infinite;
}

/* Abilities Inventory - Melhorada */
.abilities-inventory {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.ability-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, 
        rgba(255, 70, 85, 0.95) 0%, 
        rgba(255, 100, 100, 0.90) 100%);
    padding: 12px 16px;
    border-radius: 0px;
    border-top: 2px solid rgba(255, 70, 85, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 0 30px rgba(255, 70, 85, 0.5),
        0 4px 16px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: abilityPulse 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.ability-item:hover {
    transform: translateX(-4px);
    box-shadow: 
        0 0 40px rgba(255, 70, 85, 0.7),
        0 6px 20px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ability-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}

.ability-key {
    background: rgba(0, 0, 0, 0.8);
    color: #FFD700;
    padding: 6px 12px;
    border-radius: 2px;
    font-weight: 900;
    font-size: 18px;
    border: 2px solid #FFD700;
    box-shadow: 
        0 0 12px rgba(255, 215, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 1px;
}

.ability-name {
    color: #FFFFFF;
    font-weight: 900;
    font-size: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Animações */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scoreGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.4));
    }
    50% {
        filter: drop-shadow(0 2px 16px rgba(255, 215, 0, 0.8));
    }
}

@keyframes comboPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes abilityPulse {
    0%, 100% {
        box-shadow: 
            0 0 30px rgba(255, 70, 85, 0.5),
            0 4px 16px rgba(0, 0, 0, 0.7),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 0 45px rgba(255, 70, 85, 0.8),
            0 6px 20px rgba(0, 0, 0, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

@keyframes barShine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

@keyframes lowHpPulse {
    0%, 100% {
        box-shadow: 0 0 16px rgba(244, 67, 54, 0.6);
        opacity: 1;
    }
    50% {
        box-shadow: 0 0 24px rgba(244, 67, 54, 1);
        opacity: 0.9;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hud-left, .hud-right {
        gap: 8px;
    }
    
    .hud-item {
        padding: 8px 12px;
        min-width: 65px;
    }
    
    .hud-label {
        font-size: 8px;
        letter-spacing: 1.5px;
    }
    
    .hud-value {
        font-size: 20px;
    }
    
    #score {
        font-size: 24px;
    }
    
    .health-bar {
        min-width: 150px;
        padding: 8px 12px;
    }
    
    .bar-container {
        height: 8px;
    }
}

/* Efeitos especiais para milestones */
.hud-item.milestone {
    animation: milestoneFlash 0.6s ease-in-out;
}

@keyframes milestoneFlash {
    0%, 100% {
        background: linear-gradient(135deg, 
            rgba(15, 25, 35, 0.92) 0%, 
            rgba(20, 30, 40, 0.88) 100%);
    }
    50% {
        background: linear-gradient(135deg, 
            rgba(255, 215, 0, 0.3) 0%, 
            rgba(255, 165, 0, 0.3) 100%);
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
    }
}
