/* players.css */
.players-grid {
    position: fixed;
    top: 5%;
    right: 2%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 200px;
    z-index: 100;
    pointer-events: auto;
}

.player-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.player-card.dead {
    opacity: 0.5;
}

.player-card.attackable {
    cursor: pointer;
    position: relative;
}

.player-card.attackable:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-2px);
}

.player-card.attackable::after {
    content: '🎯';
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-card.attackable:hover::after {
    opacity: 1;
}

.player-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #2563eb;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 0.25rem;
    color: #9ca3af;
}

/* Attack target highlight effect */
@keyframes targetPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.player-card.attack-target {
    animation: targetPulse 1.5s infinite;
}

.attack-slots {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.attack-slots .slot {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.attack-slots .slot.filled {
    background: rgba(37, 99, 235, 0.5);
}