/* hud.css */

.hud-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 21;
    top: 0px;
    pointer-events: none;
}

.hud-respawn-cooldown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Orbitron', monospace;
    font-size: 34px;
    color: #0f0;
    text-shadow: 0 0 10px #0f0;
    font-weight: bold;
    pointer-events: none !important;
    z-index: 100;
}

.hud-top-left {
    position: absolute;
    top: 0;
    left: 0;
}

.hud-top-right {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.hud-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
}

.hud-bottom-right {
    display: flex;
    flex-direction: column;
}

.hud-logo {
    margin: 20px 20px 5px 20px;
    padding: 12px;
}

.hud-ping {
    margin-left: 20px;
    width: fit-content;
    z-index: 10;
    color: #0f0;
    font-family: monospace;
    font-size: 0.8em;
    text-shadow: 0 0 5px #0f0;
    pointer-events: none;
    background: rgba(0,0,0,0.5);
    padding: 3px 5px 2px 5px;
    border: 1px solid rgba(0,255,0,0.5);
}

.hud-compass-container {
    width: 50px;
    height: 50px;
    border: 2px solid #0f0;
    border-radius: 50%;
    position: relative;
    background: rgba(0,255,0,0.1);
    box-shadow: 0 0 10px #0f0;
}

.hud-compass-arrow {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.1s linear;
}

.hud-compass-pointer {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 20px solid #f00;
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.hud-compass-label {
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    font-weight: bold;
    z-index: 2;
}

.hud-radar-filters {
    margin-top: 10px;
    font-size: 0.8em;
    text-align: left;
    padding: 5px;
    border: 1px solid rgba(0,255,0,0.3);
    background: rgba(0,0,0,0.7);
    color: #0f0;
}

.hud-toggle-btn {
    flex: 1;
    background: rgba(0,0,0,0.5);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 0.9em;
    text-shadow: 0 0 5px #0f0;
    outline: none;
}

.hud-craft-btn {
    margin: 10px 20px 0 20px;
    background: rgba(0,255,0,0.2);
    border: 1px solid #0f0;
    color: #0f0;
    padding: 5px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
    font-family: monospace;
    outline: none;
    transition: background 0.1s ease, box-shadow 0.1s ease, color 0.1s ease;
}
