/* Styles supplémentaires pour le système de replay radar */

/* Rotation des triangles pour indiquer la direction */
.marker-icon {
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Infobulle au survol des joueurs/radios */
.player-info-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 10;
    transform: translate(-50%, -100%);
    pointer-events: none;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
}

/* Animation pour les notifications d'événements */
@keyframes fadeInOut {
    0% { opacity: 0; transform: translateY(20px); }
    10% { opacity: 1; transform: translateY(0); }
    90% { opacity: 1; }
    100% { opacity: 0; }
}

.event-notification {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 100;
    max-width: 250px;
    animation: fadeInOut 5s forwards;
    border-left: 3px solid #4a9aff;
    font-size: 12px;
}

/* Marqueurs de radio personnalisés */
.radio-marker-zenith, .radio-marker-ogv {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.radio-marker-zenith {
    background-color: rgba(100, 100, 150, 0.7);
    border: 2px solid rgba(110, 100, 255, 0.9);
}

.radio-marker-ogv {
    background-color: rgba(150, 100, 100, 0.7);
    border: 2px solid rgba(255, 100, 120, 0.9);
}

/* Effet de pulse amélioré pour les marqueurs */
.unit-marker-zenith .marker-pulse,
.unit-marker-ogv .marker-pulse,
.radio-marker-zenith .marker-pulse,
.radio-marker-ogv .marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.7;
}

.unit-marker-zenith .marker-pulse {
    background-color: rgba(0, 100, 255, 0.3);
}

.unit-marker-ogv .marker-pulse {
    background-color: rgba(220, 0, 0, 0.3);
}

.radio-marker-zenith .marker-pulse {
    background-color: rgba(110, 100, 255, 0.3);
}

.radio-marker-ogv .marker-pulse {
    background-color: rgba(255, 100, 120, 0.3);
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    70% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Styles pour les objectifs stratégiques */
.objective-marker {
    position: absolute;
    z-index: 15;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Désactiver les animations au survol quand la carte est en mode en ligne */
.radar-online .objective-marker:hover {
    transform: none;
}

.objective-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px dashed #222;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.3s ease;
}

.objective-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 1.2rem;
    color: #666;
    transition: all 0.3s ease;
}

.objective-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 0.7rem;
    color: #ccc;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Effet de lueur pour les objectifs - désactivé en mode en ligne */
.radar-online .objective-marker:hover .objective-circle {
    box-shadow: none;
}

/* Styles pour les zones safe */
.safe-zone-marker {
    position: absolute;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Désactiver les animations au survol quand la carte est en mode en ligne */
.radar-online .safe-zone-marker:hover {
    transform: none;
}

.safe-zone-rectangle {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 2px dashed #222;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.safe-zone-label {
    position: absolute;
    bottom: 5px;
    right: 5px;
    z-index: 3;
    font-size: 0.7rem;
    color: #ccc;
    font-weight: bold;
    text-align: right;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.8);
    padding: 3px 6px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Effet de lueur pour les zones safe - désactivé en mode en ligne */
.radar-online .safe-zone-marker:hover .safe-zone-rectangle {
    box-shadow: none;
}

/* ============================================================================
   MAP LEGEND STYLES
   ============================================================================ */

.map-legend {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 100;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95) 0%, rgba(20, 20, 20, 0.95) 100%);
    border: 2px solid #ffd700;
    border-radius: 4px;
    padding: 10px;
    font-size: 0.7rem;
    color: #fff;
    min-width: 190px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 15px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-title {
    font-weight: bold;
    font-size: 0.85rem;
    color: #ffd700;
    text-align: center;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.legend-title:hover {
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.map-legend.collapsed {
    min-width: auto;
    width: auto;
    padding: 8px 12px;
}

.map-legend.collapsed .legend-title {
    margin-bottom: 0;
}

.legend-section {
    margin-bottom: 8px;
}

.legend-section:last-child {
    margin-bottom: 0;
}

.legend-subtitle {
    font-weight: bold;
    color: #ffd700;
    font-size: 0.65rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    border-left: 3px solid #ffd700;
    padding-left: 6px;
    font-family: 'Courier New', monospace;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    padding: 3px 6px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 2px;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.legend-item:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: rgba(255, 215, 0, 0.5);
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.zenith-color {
    background-color: #4a9aff;
}

.ogv-color {
    background-color: #ff4a4a;
}

.legend-symbol {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.spawn-symbol {
    color: #444;
}

.capturable-symbol {
    color: #ffd700;
}

.radio-symbol {
    color: #00bfff;
}

.safe-symbol {
    color: #444;
}

.legend-text {
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

/* ============================================================================
   REPLAY CONTROLS STYLES
   ============================================================================ */

.playback-controls {
    display: flex !important; /* Toujours visible */
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.9) 100%);
    border: 2px solid #ffd700;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.playback-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid #ffd700;
    border-radius: 6px;
    color: #ffd700;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.playback-btn:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.playback-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.playback-timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 4px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
    width: 0%; /* Commence à 0% */
}

.timeline-gauge {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16px;
    height: 16px;
    background: #ffd700;
    border: 3px solid #000;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    transition: left 0.1s ease;
    box-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.timeline-gauge:hover {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 
        0 0 15px rgba(255, 215, 0, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.timeline-gauge:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.timeline-progress::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #fff;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.playback-speed {
    min-width: 50px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    border: 2px solid #ffd700;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

.playback-speed:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.playback-speed:active {
    transform: scale(0.95);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .playback-controls {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .playback-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .playback-speed {
        min-width: 45px;
        height: 35px;
        font-size: 0.7rem;
    }
}

/* ============================================================================
   KILL FEED STYLES
   ============================================================================ */

.kill-feed-section {
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.kill-feed-container {
    max-height: 400px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
}

.kill-feed-list {
    padding: 0.5rem;
}

.kill-feed-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kill-feed-item:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.kill-feed-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #4a9aff 0%, #ff4a4a 100%);
    opacity: 0.7;
}

.kill-main-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.kill-victim {
    font-weight: 600;
    text-shadow: 0 0 4px currentColor;
}

.kill-connector {
    color: #ccc;
    font-weight: 400;
}

.kill-killer {
    font-weight: 600;
    text-shadow: 0 0 4px currentColor;
}

.kill-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.25rem;
}

.kill-time {
    color: #4a9aff;
    font-weight: 500;
    font-family: 'Orbitron', monospace;
}

.kill-separator {
    color: #666;
}

.kill-distance {
    color: #ffd700;
    font-weight: 500;
}

.kill-weapon {
    color: #ff6b6b;
    font-weight: 500;
    font-style: italic;
}

/* États spéciaux des kills */
.kill-suicide {
    border-left-color: #ff6b6b;
}

.kill-suicide::before {
    background: #ff6b6b;
}

.kill-team-kill {
    border-left-color: #ffa500;
}

.kill-team-kill::before {
    background: #ffa500;
}

/* État vide du kill feed */
.kill-feed-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.kill-feed-empty-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.kill-feed-empty-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.kill-feed-empty-subtext {
    font-size: 0.8rem;
    color: #444;
}

/* Scrollbar personnalisée pour le kill feed */
.kill-feed-container::-webkit-scrollbar {
    width: 6px;
}

.kill-feed-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.kill-feed-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.kill-feed-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animation d'apparition des nouveaux kills */
@keyframes killFeedSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.kill-feed-item.new-kill {
    animation: killFeedSlideIn 0.5s ease-out;
}

/* Responsive design pour le kill feed */
@media (max-width: 768px) {
    .kill-feed-section {
        margin-top: 1rem;
    }
    
    .kill-feed-container {
        max-height: 300px;
    }
    
    .kill-feed-item {
        padding: 0.5rem;
    }
    
    .kill-main-line {
        font-size: 0.8rem;
    }
    
    .kill-details {
        font-size: 0.7rem;
    }
}

/* Message Hors Ligne */
.kill-feed-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #ffd700;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.offline-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
    animation: offlinePulse 2s ease-in-out infinite;
}

.offline-text {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.offline-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #ccc;
    text-transform: none;
    letter-spacing: 1px;
}

@keyframes offlinePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}
