/* Depremİstatistik.com — quake-detail.css
   Deprem detay sayfası: büyüklük başlığı ve paylaşım, harita yüksekliği, deprem bilgileri ve
   ilgili sayfa bağlantıları, bölgedeki diğer depremler. Harita görünümü map.css'ten, liste satırları ve büyüklük
   renkleri quake-list.css'ten gelir. */

/* Başlık kartı: üst çizgi büyüklük seviyesinin renginde; büyüklük kutusu solda, metin ve
   paylaşım sağda alt alta (telefonda paylaşım kartın tam genişliğinde) */
.quake-hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "mag text" "mag share";
    align-items: center;
    column-gap: 18px;
    border-top-color: var(--mag-color);
}

.quake-mag-lg { grid-area: mag; width: 84px; height: 76px; border-radius: 14px; }
.quake-mag-lg strong { font-size: 34px; }
.quake-mag-lg small { font-size: 12px; }

.quake-hero-text { grid-area: text; min-width: 0; }
.quake-hero-kicker { margin: 0 0 2px; font-size: 14px; font-weight: 900; color: var(--mag-text, var(--mag-color)); }
.quake-hero-time { margin: 4px 0 0; font-size: 15px; color: var(--text-muted); }
.quake-hero-time time { font-weight: 700; color: var(--text); }

/* Paylaşım: WhatsApp ve X her zaman; JS varsa bağlantı kopyalama, destekleyen cihazda
   (genellikle telefon) bu ikisinin yerine cihazın kendi paylaşım menüsü */
.quake-share { grid-area: share; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.share-button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s ease;
}

.share-button:hover { border-color: var(--accent); }

.quake-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
}

.quake-map { height: 400px; }

/* Deprem bilgileri */
.quake-facts dl { margin: 10px 0 0; }

.quake-fact {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}

.quake-fact dt { font-size: 14px; color: var(--text-muted); }
.quake-fact dd { margin: 0; font-size: 14px; font-weight: 800; text-align: right; color: var(--text); overflow-wrap: anywhere; }

.quake-facts-source { margin: 10px 0 0; font-size: 13px; color: var(--text-muted); }
.quake-facts-links { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 800; }

@media (max-width: 860px) {
    .quake-detail-grid { grid-template-columns: minmax(0, 1fr); }
    .quake-map { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    .share-button { transition: none; }
}

@media (max-width: 600px) {
    .quake-hero { grid-template-areas: "mag text" "share share"; column-gap: 14px; }
    .quake-mag-lg { width: 68px; height: 62px; border-radius: 12px; }
    .quake-mag-lg strong { font-size: 26px; }
    .quake-map { height: 280px; }
}
