/* ==============================================================
   HALLOWEEN PLAYER MAP RADAR (ANIMOWANY RADAR GPS DLA GIER)
   ============================================================== */

/* Główny kontener nakładki radaru na mapie Google */
.player-map-radar-container {
    position: absolute;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Zewnętrzny pierścień radaru z poświatą */
.radar-outer-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(255, 117, 24, 0.75);
    background: radial-gradient(circle, rgba(142, 68, 173, 0.08) 0%, rgba(255, 117, 24, 0.04) 70%, rgba(255, 117, 24, 0.12) 100%);
    box-shadow: 0 0 25px rgba(255, 117, 24, 0.35), inset 0 0 25px rgba(142, 68, 173, 0.25);
    box-sizing: border-box;
}

/* Wewnętrzny okrąg (strefa aktywacji ~35m) */
.radar-inner-ring {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255, 208, 116, 0.55);
    box-sizing: border-box;
}

/* Linie celownika / krzyżaka radaru */
.radar-crosshair-v {
    position: absolute;
    width: 1px;
    height: 220px;
    background: linear-gradient(180deg, rgba(255, 208, 116, 0.4) 0%, transparent 45%, transparent 55%, rgba(255, 208, 116, 0.4) 100%);
}
.radar-crosshair-h {
    position: absolute;
    height: 1px;
    width: 220px;
    background: linear-gradient(90deg, rgba(255, 208, 116, 0.4) 0%, transparent 45%, transparent 55%, rgba(255, 208, 116, 0.4) 100%);
}

/* Obracający się promień skanera radaru (Radar Sweep Beam) */
.radar-sweep-beam {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        transparent 260deg,
        rgba(142, 68, 173, 0.18) 290deg,
        rgba(255, 117, 24, 0.35) 335deg,
        rgba(255, 208, 116, 0.75) 360deg
    );
    animation: radarSweepAnim 3.2s linear infinite;
    pointer-events: none;
    box-sizing: border-box;
}

/* Rozchodzące się fale impulsowe sonaru */
.radar-pulse-wave {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 2px solid rgba(255, 117, 24, 0.8);
    box-shadow: 0 0 15px rgba(255, 117, 24, 0.6);
    animation: radarPulseWaveAnim 2.6s cubic-bezier(0.1, 0.5, 0.4, 1) infinite;
    pointer-events: none;
    box-sizing: border-box;
}
.radar-pulse-wave.delay {
    animation-delay: 1.3s;
}

/* Centralny punkt / znacznik gracza */
.radar-center-core {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffa251 0%, #e67e22 55%, #8e44ad 100%);
    border: 2.5px solid #ffffff;
    box-shadow: 0 0 16px rgba(255, 117, 24, 0.9), 0 0 28px rgba(142, 68, 173, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.radar-center-core:hover {
    transform: scale(1.18);
}

/* Etykietka statusu radaru pływająca nad środkiem */
.radar-status-badge {
    position: absolute;
    top: -24px;
    background: rgba(23, 17, 37, 0.92);
    border: 1.5px solid #ff7518;
    color: #ffd074;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 117, 24, 0.35);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 3;
}

.radar-status-badge .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 6px #2ecc71;
    animation: radarDotBlink 1.4s ease-in-out infinite;
}

/* Animacje CSS Radaru */
@keyframes radarSweepAnim {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes radarPulseWaveAnim {
    0% {
        transform: scale(0.15);
        opacity: 0.95;
        border-color: rgba(255, 208, 116, 0.9);
    }
    60% {
        opacity: 0.6;
        border-color: rgba(255, 117, 24, 0.7);
    }
    100% {
        transform: scale(1.0);
        opacity: 0;
        border-color: rgba(142, 68, 173, 0.2);
    }
}

@keyframes radarDotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* Styl przycisku włączania radaru na mapie */
.map-radar-toggle-btn {
    position: absolute;
    right: 18px;
    top: 75px;
    z-index: 20;
    background: #251b35;
    border: 2px solid #523963;
    color: #ffd074;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.4);
    transition: all 0.2s ease;
}

.map-radar-toggle-btn:hover {
    background: #36224e;
    border-color: #ff7518;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 117, 24, 0.35);
}

.map-radar-toggle-btn.active {
    background: linear-gradient(135deg, #ff7518 0%, #d35400 100%);
    border-color: #ffd074;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 117, 24, 0.6), 0 4px 10px rgba(0,0,0,0.5);
}

.map-radar-toggle-btn .radar-btn-icon {
    font-size: 15px;
    animation: radarIconSpin 6s linear infinite;
}

@keyframes radarIconSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .map-radar-toggle-btn {
        right: 12px;
        top: 65px;
        padding: 6px 10px;
        font-size: 11px;
    }
    .player-map-radar-container {
        width: 190px;
        height: 190px;
    }
    .radar-outer-ring, .radar-sweep-beam, .radar-pulse-wave {
        width: 180px;
        height: 180px;
    }
    .radar-inner-ring {
        width: 90px;
        height: 90px;
    }
    .radar-crosshair-v { height: 180px; }
    .radar-crosshair-h { width: 180px; }
}
