/* ─────────────────────────────────────────────────────────
   QuakeWatch Frontend — Mobile-first responsive design
   Breakpoints:
     ≤ 640px   : Mobile  (single column, bottom tab bar)
     641-1199px: Tablet  (collapsible sidebar + map)
     ≥ 1200px  : Desktop (3-column: sidebar + map + detail)
   ───────────────────────────────────────────────────────── */

:root {
    /* AVO-aligned palette (mirrors shared-rust::avo::AlertLevel) */
    --color-normal:  #10b981;   /* green-500 */
    --color-waspada: #facc15;   /* yellow-400 */
    --color-siaga:   #fb923c;   /* orange-400 */
    --color-awas:    #ef4444;   /* red-500 */

    /* Quake marker colors */
    --marker-preliminary:  #fb923c;  /* dashed outline, oranye */
    --marker-confirmed:    #ef4444;  /* solid, merah */
    --marker-unmatched:    #94a3b8;  /* dotted outline, abu-abu */

    /* Surfaces */
    --bg:        #0a0e1a;
    --bg-elev:   #131a2a;
    --bg-card:   #1e293b;
    --border:    #1f2937;
    --fg:        #e0e6ed;
    --fg-muted:  #94a3b8;
    --fg-dim:    #64748b;

    --accent:    #38bdf8;
    --accent-2:  #22d3ee;

    /* Layout tokens */
    --topbar-h:  48px;
    --tabbar-h:  56px;
    --sidebar-w: 100%;
    --detail-w:  100%;
}

@media (min-width: 641px) {
    :root {
        --topbar-h: 56px;
        --sidebar-w: 320px;
    }
}

@media (min-width: 1200px) {
    :root {
        --topbar-h: 64px;
        --sidebar-w: 360px;
        --detail-w: 380px;
    }
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* ── App shell ── */
.quakewatch-app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: var(--bg);
}

.topbar {
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    padding: 0 1rem;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 50;
}

.topbar-logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--fg);
}

.topbar-logo .globe { color: var(--accent); margin-right: 0.5rem; }

.topbar-spacer { flex: 1; }

.topbar-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--fg-muted);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-normal);
}

.status-dot.disconnected { background: var(--marker-unmatched); }
.status-dot.reconnecting { background: var(--color-waspada); animation: pulse 1s infinite; }

main {
    flex: 1;
    display: flex;
    min-height: 0;
    position: relative;
}

/* ── Mobile layout (default) ── */
.layout-mobile {
    flex-direction: column;
}

.layout-mobile .map-container {
    flex: 1;
    position: relative;
}

.layout-mobile .sidebar-drawer,
.layout-mobile .detail-drawer {
    position: fixed;
    top: var(--topbar-h);
    bottom: var(--tabbar-h);
    left: 0; right: 0;
    background: var(--bg-elev);
    z-index: 40;
    transform: translateY(100%);
    transition: transform 0.2s ease;
    overflow-y: auto;
}

.layout-mobile .sidebar-drawer.open,
.layout-mobile .detail-drawer.open {
    transform: translateY(0);
}

.tabbar {
    display: flex;
    height: var(--tabbar-h);
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    z-index: 50;
}

.tabbar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--fg-muted);
    text-decoration: none;
    font-size: 0.625rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    transition: color 0.15s;
}

.tabbar .tab.active { color: var(--accent); }
.tabbar .tab .icon { font-size: 1.25rem; margin-bottom: 2px; }

/* ── Tablet layout ── */
@media (min-width: 641px) {
    .layout-mobile { display: none; }
    .layout-tablet { display: flex; }

    .layout-tablet .sidebar {
        width: var(--sidebar-w);
        position: fixed;
        top: var(--topbar-h);
        bottom: 0;
        left: 0;
        z-index: 40;
        background: var(--bg-elev);
        border-right: 1px solid var(--border);
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        overflow-y: auto;
    }

    .layout-tablet .sidebar.open { transform: translateX(0); }

    .layout-tablet .map-container { flex: 1; margin-left: 0; }

    .layout-tablet .detail-panel {
        width: 360px;
        position: fixed;
        top: var(--topbar-h);
        bottom: 0;
        right: 0;
        z-index: 40;
        background: var(--bg-elev);
        border-left: 1px solid var(--border);
        transform: translateX(100%);
        transition: transform 0.2s ease;
        overflow-y: auto;
    }

    .layout-tablet .detail-panel.open { transform: translateX(0); }
}

/* ── Desktop layout ── */
@media (min-width: 1200px) {
    .layout-tablet { display: none; }
    .layout-desktop { display: flex; }

    .layout-desktop .sidebar {
        width: var(--sidebar-w);
        flex-shrink: 0;
        background: var(--bg-elev);
        border-right: 1px solid var(--border);
        overflow-y: auto;
    }

    .layout-desktop .map-container { flex: 1; min-width: 0; }

    .layout-desktop .detail-panel {
        width: var(--detail-w);
        flex-shrink: 0;
        background: var(--bg-elev);
        border-left: 1px solid var(--border);
        overflow-y: auto;
    }
}

/* ── Map container ── */
.map-container {
    position: relative;
    background: #0a0e17;
    overflow: hidden;
}

.map-canvas {
    width: 100%;
    height: 100%;
}

.map-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--fg-dim);
    text-align: center;
    padding: 2rem;
}

.map-fallback .globe { font-size: 4rem; margin-bottom: 1rem; }
.map-fallback p { font-size: 0.875rem; max-width: 320px; line-height: 1.5; }

/* ── Sidebar / list ── */
.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.25rem 0.625rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--fg-muted);
    cursor: pointer;
    transition: all 0.15s;
}

.filter-chip.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.quake-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quake-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.1s;
}

.quake-item:hover { background: var(--bg-card); }
.quake-item.selected { background: var(--bg-card); border-left: 3px solid var(--accent); }

.quake-mag {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
    position: relative;
}

.quake-mag.preliminary {
    background: var(--marker-preliminary);
    border: 2px dashed rgba(255, 255, 255, 0.5);
}
.quake-mag.confirmed {
    background: var(--marker-confirmed);
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.quake-mag.unmatched_foreign {
    background: var(--marker-unmatched);
    border: 1px dotted rgba(255, 255, 255, 0.5);
    color: #000;
}

.quake-info { flex: 1; min-width: 0; }
.quake-place {
    font-size: 0.875rem;
    color: var(--fg);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.quake-meta {
    font-size: 0.75rem;
    color: var(--fg-dim);
    margin-top: 2px;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.quake-status-badge {
    font-size: 0.625rem;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 600;
}
.quake-status-badge.preliminary {
    background: rgba(251, 146, 60, 0.2);
    color: var(--marker-preliminary);
}
.quake-status-badge.confirmed {
    background: rgba(239, 68, 68, 0.2);
    color: var(--marker-confirmed);
}
.quake-status-badge.unmatched_foreign {
    background: rgba(148, 163, 184, 0.2);
    color: var(--marker-unmatched);
}

/* ── Detail panel ── */
.detail-panel-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--fg-dim);
    font-size: 0.875rem;
}

.detail-section {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-muted);
    margin: 0 0 0.5rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.875rem;
}

.detail-label { color: var(--fg-dim); }
.detail-value { color: var(--fg); font-weight: 500; }

.alert-banner {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Detail panel alert banners (inline, NOT fixed) ── */
.detail-section .alert-banner,
div > .alert-banner:not([role="alert"]) {
    position: static;
    top: auto;
    left: auto; right: auto;
    z-index: auto;
    animation: none;
}

.alert-banner.normal    { background: rgba(16, 185, 129, 0.15); color: var(--color-normal); }
.alert-banner.waspada   { background: rgba(250, 204, 21, 0.15);  color: var(--color-waspada); }
.alert-banner.siaga     { background: rgba(251, 146, 60, 0.15);  color: var(--color-siaga); }
.alert-banner.awas      { background: rgba(239, 68, 68, 0.15);   color: var(--color-awas); }

/* quake-time in list */
.quake-time {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.625rem;
    font-variant-numeric: tabular-nums;
}

/* detail-link for shakemap etc */
.detail-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.15s;
}
.detail-link:hover { opacity: 0.75; text-decoration: underline; }

/* monospace detail values (BMKG ID etc) */
.detail-value--mono {
    font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--fg-muted);
    word-break: break-all;
}


@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ====================================================================== */
/* Phase 8.1-8.4 styles: alert banner, map markers, CCTV grid.            */
/* ====================================================================== */

/* Alert banner — M>=6 confirmed, fixed to top under the topbar. */
.alert-banner {
  position: fixed;
  top: 56px; /* below topbar */
  left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.95), rgba(251, 146, 60, 0.95));
  color: white;
  font-weight: 600;
  border-bottom: 2px solid #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: alert-slide 0.3s ease-out;
}
@keyframes alert-slide {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.alert-icon { font-size: 1.5rem; }
.alert-text { flex: 1; }

/* MapLibre markers — three distinct styles. */
.qk-marker {
  --qk-color: #6b7280;
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--qk-color);
  border: 2px solid white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease;
}
.qk-marker:hover { transform: translate(-50%, -50%) scale(1.4); z-index: 10; }
.qk-marker--preliminary {
  border-style: dashed;
  background: rgba(107, 114, 128, 0.4);
  --qk-color: #6b7280;
}
.qk-marker--confirmed {
  border-style: solid;
  border-width: 3px;
  width: 18px; height: 18px;
  --qk-color: #ef4444;
}
.qk-marker--unmatched-foreign {
  border-style: dotted;
  border-width: 3px;
  background: rgba(148, 163, 184, 0.3);
  --qk-color: #94a3b8;
}

.map-legend {
  list-style: none; padding: 0; margin: 0.75rem 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  font-size: 0.75rem; color: #94a3b8;
}
.map-legend li { display: flex; align-items: center; gap: 0.5rem; }
.map-legend .qk-marker { position: static; transform: none; }

/* CCTV panel. */
.cctv-panel {
  padding: 0.75rem 1rem;
  background: var(--bg-elev, #0f172a);
  border-top: 1px solid var(--border, #1e293b);
}
.cctv-header h2 {
  margin: 0 0 0.25rem 0;
  font-size: 0.875rem;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cctv-attribution {
  margin: 0 0 0.75rem 0;
  font-size: 0.625rem;
  color: #64748b;
}
.cctv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
}
.cctv-card {
  margin: 0;
  position: relative;
  background: #1e293b;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.cctv-card img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.cctv-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.25rem 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 0.625rem;
  text-align: center;
}
.cctv-live-link {
  position: absolute; top: 4px; right: 4px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.625rem;
  text-decoration: none;
}
.cctv-loading, .cctv-error, .cctv-empty {
  margin: 0; padding: 0.5rem 0;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}
.cctv-error { color: #fca5a5; }

/* Notify opt-in button in topbar (Phase 8.4). */
.notify-toggle {
  background: none; border: 1px solid var(--border, #1e293b);
  color: #94a3b8; padding: 4px 8px; border-radius: 4px;
  font-size: 0.625rem; cursor: pointer;
  margin-right: 0.5rem;
}
.notify-toggle.on { color: #10b981; border-color: #10b981; }

/* ====================================================================== */
/* Enrichment Panel Styles                                              */
/* ====================================================================== */

.enrichment-panel {
  padding: 0.75rem 1rem;
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  max-height: 350px;
  overflow-y: auto;
}

.enrichment-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.enrichment-header h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.enrichment-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.enrichment-tab {
  padding: 0.25rem 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.625rem;
  color: var(--fg-muted);
  cursor: pointer;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.enrichment-tab:hover {
  background: var(--bg);
  color: var(--fg);
}

.enrichment-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.enrichment-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-header h3,
.section-header h4 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.attribution {
  margin: 0;
  font-size: 0.625rem;
  color: var(--fg-dim);
}

.avo-levels {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.avo-level {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 4px solid var(--level-color);
}

.avo-level-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.avo-level-badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--level-color);
  color: #000;
}

.avo-level-pvmbg {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg);
}

.avo-level-avo {
  font-size: 0.625rem;
  color: var(--fg-muted);
  text-transform: lowercase;
}

.avo-level-color {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}

.avo-level-action {
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.4;
}

.gvp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.gvp-field {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.gvp-field label {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

.gvp-field span {
  font-size: 0.75rem;
  color: var(--fg);
}

.gvp-summary {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--fg);
  white-space: pre-wrap;
}

.eruption-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.eruption-item {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.eruption-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.eruption-details {
  font-size: 0.625rem;
  color: var(--fg-muted);
  margin-bottom: 0.25rem;
}

.eruption-evidence {
  font-size: 0.625rem;
  color: var(--fg-dim);
  font-style: italic;
}

.unrest-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.unrest-item {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.unrest-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.unrest-id {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #000;
}

.unrest-date {
  font-size: 0.625rem;
  color: var(--fg-dim);
}

.unrest-description {
  font-size: 0.75rem;
  color: var(--fg);
  margin-bottom: 0.375rem;
}

.unrest-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.evidence-tag {
  font-size: 0.5625rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent);
  color: #000;
  opacity: 0.7;
}

.insar-bbox {
  font-size: 0.625rem;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
  font-family: monospace;
}

.insar-measurements {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.insar-item {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.insar-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.insar-id {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--color-siaga);
  color: #000;
}

.insar-date {
  font-size: 0.625rem;
  color: var(--fg-dim);
}

.insar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
  font-size: 0.625rem;
  color: var(--fg-muted);
}

.insar-notes {
  font-size: 0.75rem;
  color: var(--fg);
  line-height: 1.5;
}

.insar-phases {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phase-item {
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 4px solid var(--color-siaga);
}

.phase-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.phase-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg);
}

.phase-date {
  font-size: 0.625rem;
  color: var(--fg-dim);
}

.phase-summary {
  font-size: 0.75rem;
  color: var(--fg);
  line-height: 1.5;
  margin-bottom: 0.375rem;
}

.phase-refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.ref-tag {
  font-size: 0.5625rem;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--fg-dim);
  color: var(--bg);
  opacity: 0.7;
}

.enrichment-loading,
.enrichment-error {
  padding: 1rem;
  text-align: center;
  font-size: 0.75rem;
}

.enrichment-loading { color: var(--fg-dim); }
.enrichment-error { color: #fca5a5; }

/* ── Marquee (Running Text) ── */
.quake-marquee-container {
    width: 100%;
    overflow: hidden;
    background: #111827;
    border-top: 1px solid #374151;
    border-bottom: 1px solid #374151;
    padding: 8px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    white-space: nowrap;
    position: relative;
    /* Optional: make it sticky or fixed if needed, 
       but currently it replaces the QuakeList in the sidebar stream */
    display: flex;
    align-items: center;
}

.quake-marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee-scroll 25s linear infinite;
}

.quake-marquee-content:hover {
    animation-play-state: paused;
}

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

.quake-marquee-item {
    display: inline-flex;
    align-items: center;
    margin-right: 2rem;
    font-family: 'Inter', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quake-marquee-item:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.marquee-icon { margin-right: 0.5rem; }
.marquee-mag { font-weight: bold; color: var(--color-awas); margin-right: 0.5rem; }
.marquee-place { color: var(--fg); margin-right: 0.5rem; }
.marquee-time { color: var(--fg-muted); font-size: 0.8rem; margin-right: 0.5rem; }
.marquee-separator { color: var(--border); font-weight: bold; margin: 0 1rem; }

/* ── Smart Map Pulse ── */
@keyframes qk-pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
        transform: scale(1.3);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        transform: scale(1);
    }
}

.qk-marker-pulse {
    animation: qk-pulse-anim 1.5s infinite;
    z-index: 1000 !important;
    border-radius: 50%;
    background-color: var(--color-awas) !important;
    border: 2px solid white !important;
}
