/* hud.css - Game HUD Panel (Desktop Base Styles) */

.ui-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.ui-overlay > * {
    pointer-events: auto;
}

/* Game HUD Sidebar */
.info-panel {
    position: fixed;
    top: 50%;
    left: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 100;
    pointer-events: auto;

    /* Video game panel styling */
    background: linear-gradient(180deg,
        rgba(20, 20, 30, 0.95) 0%,
        rgba(10, 10, 20, 0.98) 100%);
    border: 2px solid rgba(100, 120, 255, 0.3);
    border-radius: 12px;
    padding: 0;
    min-width: 180px;
    overflow: hidden;

    /* Glow effect */
    box-shadow:
        0 0 20px rgba(100, 120, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

/* HUD Panel Header Glow */
.info-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(100, 150, 255, 0.8),
        transparent);
}

/* HUD Stat Items */



.lives-count {
    padding: 0.875rem 1rem;
    font-family: 'Orbitron', 'Rajdhani', 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(100, 120, 255, 0.15);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stat Labels */



.lives-count .label {
    color: rgba(150, 180, 255, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.125rem;
}

/* Stat Values */



/* Lives with hearts */
.lives-count {
    color: #ff6b6b;
    font-size: 1.25rem;
    letter-spacing: 0.25rem;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
}

/* Power-ups Section */
.power-ups-inventory {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(100, 120, 255, 0.15);
}

.power-ups-inventory .label {
    color: rgba(150, 180, 255, 0.7);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', 'Rajdhani', sans-serif;
}

/* Status Bar (Objective) */
.status {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.625rem 1.5rem;
    background: linear-gradient(180deg,
        rgba(20, 25, 40, 0.95) 0%,
        rgba(15, 20, 35, 0.98) 100%);
    border: 2px solid rgba(100, 180, 255, 0.4);
    border-radius: 25px;
    font-size: 0.875rem;
    font-family: 'Rajdhani', 'Share Tech', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
    z-index: 100;
    white-space: nowrap;

    box-shadow:
        0 0 15px rgba(100, 180, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.3);
}

/* Pulsing dot indicator */
.status::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 0.75rem;
    box-shadow: 0 0 10px #4ade80;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px #4ade80; }
    50% { opacity: 0.6; box-shadow: 0 0 5px #4ade80; }
}

/* Return Button Container */
#return-button-container {
    position: fixed;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    pointer-events: auto;
}

#return-to-lobby {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 180px;
    background: linear-gradient(180deg,
        rgba(40, 40, 50, 0.95) 0%,
        rgba(25, 25, 35, 0.98) 100%);
    border: 2px solid rgba(100, 150, 255, 0.3);
    border-radius: 25px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;

    box-shadow:
        0 0 15px rgba(100, 150, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#return-to-lobby:hover {
    border-color: rgba(100, 180, 255, 0.6);
    box-shadow:
        0 0 25px rgba(100, 150, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Hide legacy elements */
.network-notification,
.connection-banner,
.server-message,
.server-notification,
.network-status,
.connection-status-banner {
    display: none !important;
}

/* Top Left Stats Container (Time and Flags) */
.top-left-stats {
    position: fixed;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 150;
    pointer-events: auto;
}

.top-left-stats .game-timer,
.top-left-stats .flag-count {
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg,
        rgba(20, 20, 30, 0.95) 0%,
        rgba(10, 10, 20, 0.98) 100%);
    border: 2px solid rgba(100, 120, 255, 0.3);
    border-radius: 8px;
    font-family: 'Orbitron', 'Rajdhani', 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(100, 200, 255, 0.5);
    box-shadow:
        0 0 15px rgba(100, 120, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.top-left-stats .game-timer {
    border-color: rgba(100, 200, 255, 0.4);
}

.top-left-stats .flag-count {
    border-color: rgba(255, 180, 100, 0.4);
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 200, 100, 0.5);
}

/* Bottom HUD Container (Power-ups and Attacks) */
.bottom-hud {
    position: fixed;
    bottom: 10rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    gap: 1rem;
    z-index: 150;
    pointer-events: auto;
}

.bottom-hud .attack-inventory,
.bottom-hud .power-ups-inventory {
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg,
        rgba(20, 20, 30, 0.95) 0%,
        rgba(10, 10, 20, 0.98) 100%);
    border: 2px solid rgba(100, 120, 255, 0.3);
    border-radius: 10px;
    box-shadow:
        0 0 15px rgba(100, 120, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.bottom-hud .attack-inventory {
    border-color: rgba(255, 100, 100, 0.4);
}

.bottom-hud .power-ups-inventory {
    border-color: rgba(100, 255, 150, 0.4);
}

.bottom-hud .attack-inventory-title,
.bottom-hud .power-ups-inventory-title {
    display: none;
}

.bottom-hud .attack-inventory-items,
.bottom-hud .power-ups-inventory-items {
    display: flex;
    gap: 0.375rem;
}

/* Lives in Top Left Stats */
.top-left-stats .lives-count {
    padding: 0.5rem 1rem;
    background: linear-gradient(180deg,
        rgba(20, 20, 30, 0.95) 0%,
        rgba(10, 10, 20, 0.98) 100%);
    border: 2px solid rgba(255, 100, 100, 0.4);
    border-radius: 8px;
    font-family: 'Orbitron', 'Rajdhani', 'Share Tech Mono', monospace;
    font-size: 0.9rem;
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 100, 100, 0.5);
    box-shadow:
        0 0 15px rgba(255, 100, 100, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
