/* Çoklu Radar Halka Animasyonu (Kırmızı - Son Deprem) */
.pulse-container { position: relative; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.pulse-ring { position: absolute; box-sizing: border-box; width: 100px; height: 100px; border-radius: 50%; border: 3px solid #ff3b30; opacity: 0; animation: radar-pulse 4.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; pointer-events: none; }
.pulse-ring:nth-child(1) { animation-delay: 0s; }
.pulse-ring:nth-child(2) { animation-delay: 1.5s; }
.pulse-ring:nth-child(3) { animation-delay: 3.0s; }

/* Çoklu Radar Halka Animasyonu (Yeşil - Odaklanılan Deprem) */
.focus-container { position: relative; display: flex; justify-content: center; align-items: center; pointer-events: none; }
.focus-ring { position: absolute; box-sizing: border-box; width: 120px; height: 120px; border-radius: 50%; border: 3px solid #34c759; opacity: 0; animation: radar-pulse 4.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; pointer-events: none; }
.focus-ring:nth-child(1) { animation-delay: 0s; }
.focus-ring:nth-child(2) { animation-delay: 1.5s; }
.focus-ring:nth-child(3) { animation-delay: 3.0s; }

@keyframes radar-pulse { 0% { transform: scale(0.1); opacity: 0.8; } 100% { transform: scale(1.2); opacity: 0; } }
.custom-radar-icon, .custom-focus-icon { pointer-events: none !important; }

body { margin: 0; padding: 0; background: #0a0a0a; font-family: 'SF Pro Display', -apple-system, sans-serif; overflow: hidden; }
#map { width: 100vw; height: 100vh; background: #0a0a0a; z-index: 1; }

#show-filter-btn { position: absolute; top: 20px; left: 20px; z-index: 999; background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px); border: 1px solid #333; color: #fff; padding: 12px 20px; border-radius: 8px; cursor: pointer; font-weight: bold; box-shadow: 0 4px 15px rgba(0,0,0,0.5); transition: 0.2s; display: flex; gap: 8px; }
#show-filter-btn:hover { background: #333; }

/* Menü Stilleri */
#filter-panel { position: absolute; top: 20px; left: 20px; width: 320px; background: rgba(20, 20, 20, 0.85); backdrop-filter: blur(10px); border: 1px solid #333; border-radius: 12px; padding: 25px; z-index: 1000; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.8); max-height: 85vh; overflow-y: auto; transform: translateX(0); opacity: 1; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s; }
#filter-panel.hidden { transform: translateX(-120%); opacity: 0; pointer-events: none; }
.close-btn { position: absolute; top: 22px; right: 20px; cursor: pointer; color: #888; font-size: 16px; transition: 0.2s; }
.close-btn:hover { color: #fff; }
.panel-title { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: #888; border-bottom: 1px solid #333; padding-bottom: 15px; margin-bottom: 20px; padding-right: 20px; }
.quick-filters { display: flex; gap: 8px; margin-bottom: 20px; }
.btn-outline { flex: 1; background: transparent; border: 1px solid #444; color: #aaa; padding: 8px 0; border-radius: 6px; font-size: 11px; cursor: pointer; transition: 0.2s; }
.btn-outline:hover, .btn-outline.active { background: #0a84ff; color: #fff; border-color: #0a84ff; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 12px; color: #aaa; margin-bottom: 5px; }
.form-row { display: flex; gap: 10px; }
input[type="text"], input[type="number"], input[type="date"] { width: 100%; padding: 10px; background: #0a0a0a; border: 1px solid #333; color: #fff; border-radius: 6px; outline: none; box-sizing: border-box; color-scheme: dark; }
input:focus { border-color: #0a84ff; }
.btn-container { display: flex; gap: 10px; margin-top: 20px; }
button { flex: 1; padding: 12px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; transition: 0.2s; }
.btn-primary { background: #0a84ff; color: white; }
.btn-primary:hover { background: #006ee6; }
.btn-secondary { background: #333; color: white; }
.btn-secondary:hover { background: #444; }
.stats { margin-top: 20px; padding-top: 15px; border-top: 1px solid #333; font-size: 13px; color: #888; text-align: center; }
.stats span { color: #fff; font-weight: bold; font-size: 16px; }

/* Harita Popup Stilleri */
.leaflet-popup-content-wrapper { background: #151515; color: #ddd; border: 1px solid #333; border-radius: 8px; }
.leaflet-popup-tip { background: #151515; border: 1px solid #333; }
.popup-title { font-size: 14px; font-weight: bold; color: #fff; margin-bottom: 5px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.popup-detail { font-size: 12px; color: #aaa; font-family: monospace; line-height: 1.5; }
.mag-high { color: #ff3b30; font-weight: bold;}
.mag-med { color: #ff9500; font-weight: bold;}
.mag-low { color: #bf5af2; font-weight: bold;}
.live-tag { color: #ff3b30; font-weight: bold; font-size: 10px; border: 1px solid #ff3b30; padding: 2px 4px; border-radius: 3px; margin-left: 5px; vertical-align: middle;}
.focus-btn { display: block; width: 100%; margin-top: 10px; padding: 6px 0; background: #34c759; color: #fff; border: none; border-radius: 4px; font-size: 11px; font-weight: bold; cursor: pointer; text-align: center; transition: background 0.2s; }
.focus-btn:hover { background: #28a745; }
.focus-btn.active-focus { background: #ff3b30; }
.focus-btn.active-focus:hover { background: #d32f2f; }

/* Kurum Verisi Etiketleri (Popup İçi) */
.agency-tags {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; 
    gap: 8px; 
    margin-top: 12px;
    margin-bottom: 15px;
}

.agency-tag {
    background-color: #1a222c; 
    border: 1px solid #4a5c70; 
    color: #f8f9fa; 
    padding: 6px 12px; 
    border-radius: 4px; 
    font-size: 12px;
    font-weight: 600;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    letter-spacing: 0.3px;
    white-space: nowrap; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

/* ========================================================
   YENİ EKLENEN: SON DEPREMLER YAN MENÜ STİLLERİ (GÜNCELLENDİ)
   ======================================================== */

/* Sidebar Ana Kapsayıcı */
.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.85); /* Ana menüyle aynı buzlu cam zemin */
    backdrop-filter: blur(10px);
    border-left: 1px solid #333;
    color: #fff;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
}

.sidebar.open {
    right: 0;
}

/* Açma/Kapama Butonu */
.toggle-btn {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 80px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.5);
    transition: color 0.2s, background 0.2s;
    z-index: 10000;
}

.toggle-btn:hover {
    color: #fff;
    background: rgba(30, 30, 30, 0.95);
}

/* İçerik Düzeni */
.sidebar-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

/* Filtre menüsü başlığına (GEÇMİŞ & CANLI AKIŞ YÖNETİMİ) uyumlu hale getirildi */
.sidebar-header h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #888;
    font-weight: normal;
}

.header-actions .btn {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 5px;
    font-weight: bold;
    transition: 0.2s;
}

.btn-dark { background-color: #333; color: #fff; }
.btn-dark:hover { background-color: #444; }
.btn-blue { background-color: #0a84ff; color: #fff; }
.btn-blue:hover { background-color: #006ee6; }

/* Durum Çubuğu */
.sidebar-status {
    display: flex;
    justify-content: space-between;
    background-color: #0a0a0a;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid #333;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #34c759;
    border-radius: 50%;
    margin-right: 5px;
}

.status-left { color: #34c759; font-weight: bold;}
.time { color: #aaa; }

/* Deprem Listesi ve Elemanları */
.earthquake-list {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 5px;
}

.earthquake-list::-webkit-scrollbar { width: 6px; }
.earthquake-list::-webkit-scrollbar-thumb { background-color: #333; border-radius: 3px; }

.earthquake-item {
    display: flex;
    position: relative;
    padding: 15px;
    background-color: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.earthquake-item:hover {
    background-color: #111;
}

/* Sol taraftaki yeşil çizgi ve nokta animasyonu (Timeline) */
.timeline {
    position: absolute;
    left: -15px;
    top: 0;
    bottom: -15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 8px;
    height: 8px;
    background-color: #34c759;
    border-radius: 50%;
    margin-top: 25px;
}

.timeline-line {
    width: 2px;
    background-color: #333;
    flex-grow: 1;
}

.magnitude {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Transparan zeminli modern kutucuk stili */
.magnitude-green { background-color: rgba(52, 199, 89, 0.15); color: #34c759; border: 1px solid rgba(52, 199, 89, 0.4); }

.details { flex-grow: 1; }

.location-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.location-header h3 { margin: 0; font-size: 1rem; color: #fff; font-weight: 500; }
.time-ago { font-size: 0.8rem; color: #aaa; white-space: nowrap; margin-left: 10px; }

.depth { font-size: 0.85rem; color: #aaa; margin-bottom: 10px; }

.sources-action { display: flex; justify-content: space-between; align-items: center; }
.badge { background-color: #222; border: 1px solid #444; color: #aaa; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; margin-right: 5px; }
.btn-detail { background: none; border: none; color: #0a84ff; cursor: pointer; font-size: 0.85rem; padding: 0; font-weight: bold; transition: color 0.2s;}
.btn-detail:hover { color: #006ee6; }

