/* =========================================
   1. YENİ VE KORUMALI HEADER TASARIMI
   ========================================= */

   header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
    font-family: 'Inter', system-ui, sans-serif;
}

.header-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

/* Logo Alanı */
.header-container .logo {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 18px; /* Yazı logosuysa buradan ufalttık (eskiden 22px'di) */
    font-weight: bold;
    color: #2c3e50 !important;
    text-decoration: none !important;
}

.header-container .logo img {
    max-height: 35px; /* Resmin çok büyümesini engeller. Gözüne küçük gelirse 40px yapabilirsin */
    width: auto;
    object-fit: contain;
}

/* Kırmızı Canlı Nokta */
.live-dot {
    width: 12px;
    height: 12px;
    background-color: #e74c3c;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7); }
    70% { opacity: 0.5; box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

/* Masaüstü Menü */
.desktop-nav {
    display: flex !important;
    align-items: center;
    gap: 25px;
}

.desktop-nav a {
    text-decoration: none !important;
    color: #555555;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: #e74c3c !important;
}

/* Açılır Menü (Dropdown) */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Açılır menü ile buton arasındaki görünmez köprü */
.dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px; /* menünün margin-top mesafesi kadar */
    bottom: -15px;
    left: 0;
    background: transparent;
}

.dropbtn {
    background: transparent !important;
    border: none !important;
    color: #555555;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    font-family: inherit;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px; 
}

.dropdown:hover .dropdown-content {
    display: flex !important;
    flex-direction: column;
}

.dropdown-content a {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none !important;
    display: block;
    border-bottom: 1px solid #f1f1f1;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
    color: #e74c3c !important;
}

/* Mobil Menü Butonu */
.mobile-menu-btn {
    display: none !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: #333;
    padding: 5px;
}

/* Mobil Menü İçeriği */
.mobile-nav {
    display: none;
    background-color: #f9f9f9;
    flex-direction: column;
    padding: 10px 20px;
    border-top: 1px solid #eee;
}

.mobile-nav.show {
    display: flex !important;
}

.mobile-nav a {
    padding: 15px 0;
    text-decoration: none !important;
    color: #333;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

/* Header Mobil Uyumluluk */
@media (max-width: 850px) {
    .desktop-nav { display: none !important; }
    .mobile-menu-btn { display: block !important; }
}


/* =========================================
   2. ANA SAYFA VE HERO ALANI TASARIMI
   ========================================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', system-ui, sans-serif;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero-text p {
    color: #9ca3af;
    font-size: 16px;
    max-width: 600px;
    line-height: 1.5;
}

.btn-map {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ef4444;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-map:hover {
    background-color: #dc2626;
}


/* =========================================
   3. DEPREM LİSTESİ VE TABLO TASARIMI
   ========================================= */

.earthquake-list-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f3f4f6;
    background-color: #f9fafb;
}

.list-header h2 {
    font-size: 18px;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.update-time {
    font-size: 14px;
    color: #6b7280;
}

.table-responsive {
    overflow-x: auto;
}

.earthquake-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.earthquake-table th {
    background-color: #ffffff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
}

.earthquake-table td {
    padding: 16px 24px;
    border-bottom: 1px solid #f3f4f6;
    color: #374151;
    font-size: 15px;
}

.earthquake-table tr:hover {
    background-color: #f9fafb;
}

/* Büyüklük Renkleri ve Etiketleri */
.magnitude-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.mag-low { background-color: #10b981; } /* Yeşil: 3.5 altı */
.mag-medium { background-color: #f59e0b; } /* Turuncu: 3.5 - 5.0 arası */
.mag-high { background-color: #ef4444; animation: pulse-high 2s infinite; } /* Kırmızı: 5.0 üstü */

@keyframes pulse-high {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.eq-time { color: #6b7280; font-size: 14px; }
.eq-location { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.eq-location svg { color: #9ca3af; }


/* =========================================
   4. İÇERİK MOBİL UYUMLULUK
   ========================================= */

@media (max-width: 768px) {
    .hero-section { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        padding: 30px 20px; 
    }
    .hero-text p { 
        font-size: 14px; 
    }
    .btn-map { 
        width: 100%; 
        justify-content: center; 
    }
    .earthquake-table td, 
    .earthquake-table th { 
        padding: 12px 15px; 
    }
    .eq-location { 
        font-size: 14px; 
    }
}

/* =========================================
   ANA SAYFA ORTASINDAKİ BÜYÜK LOGO
   ========================================= */

   main img.logo, 
   .logovebasik img.logo {
       max-width: 280px; /* Logoyu ufalttığımız yer burası. İstersen 200px veya 350px yapabilirsin */
       height: auto;
       display: block;
       margin: 0 auto 30px auto; /* Logoyu tam ortaya hizalar ve butonlarla arasına boşluk bırakır */
       object-fit: contain;
   }

   /* =========================================
   TOPBAR TASARIMI
   ========================================= */
.topbar {
    background-color: #1f2937; /* Koyu gri/lacivert tonu */
    color: #ffffff;
    font-size: 13px;
    height: 38px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

.topbar-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    overflow: hidden;
    margin-right: 30px;
}

.ticker-divider {
    margin: 0 15px;
    color: #4b5563;
    font-weight: bold;
}

.topbar-badge {
    background-color: #ef4444;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Kayan Yazı Animasyonu */
.ticker-wrapper {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ticker-item {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite; /* Hızı biraz daha yavaşlattım (30s) */
    color: #d1d5db;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-date {
    color: #9ca3af;
    font-weight: 500;
    white-space: nowrap;
}

.topbar-social {
    display: flex;
    gap: 12px;
}

.topbar-social a {
    color: #9ca3af;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.topbar-social a:hover {
    color: #ffffff;
}

/* Mobil için Ayarlar */
@media (max-width: 768px) {
    .topbar-date, .topbar-social {
        display: none; /* Mobilde yer kaplamasın */
    }
    .topbar-container {
        justify-content: center;
    }
}

/* Stil kısmına (push styles) ekle */
.leaflet-tile[data-cmp-src] {
    content: attr(data-cmp-src, url) !important;
}

/* Eklentinin gizlediği resimleri zorla gösterir */


/* Eğer eklenti resim yolunu data-cmp-src içine sakladıysa onu geri çağırır */
img[data-cmp-src] {
    content: attr(data-cmp-src, url) !important;
}

/* Eklentinin tile'ları şeffaf yapmasını veya gizlemesini engelle */
.leaflet-tile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Eklenti cmplazyload class'ı ile resimleri flu yapıyorsa düzelt */
.cmplazyload {
    filter: none !important;
    transition: none !important;
}

#map {
    background-color: #f0f0f0 !important;
    height: 600px !important;
}