/* ================= Halk sismografi (public/js/sismograf.js) ================= */
:root { --sm-land: #262b33; --sm-none: #3a414c; }
:root[data-theme="light"] { --sm-land: #e5e7eb; --sm-none: #cbd0d8; }

/* bildirim penceresi */
.sm-dlg { border: none; padding: 0; background: transparent; max-width: min(460px, calc(100vw - 28px)); width: 100%; color: var(--text-primary); }
.sm-dlg::backdrop { background: rgba(4, 8, 18, 0.62); backdrop-filter: blur(4px); }
.sm-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: var(--surface); box-shadow: var(--shadow-soft); }
.sm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sm-head h3 { margin: 0; font-size: 1.12rem; }
.sm-x { width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sm-sub { margin: -4px 0 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.45; }
.sm-levels, .sm-ask { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.sm-levels button, .sm-ask button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-left: 3px solid var(--t); background: var(--surface-2); color: var(--text-primary); font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sm-levels button b, .sm-ask button b { font-size: 0.95rem; }
.sm-levels button small, .sm-ask button small { color: var(--text-muted); font-size: 0.76rem; line-height: 1.3; }
.sm-levels button:hover, .sm-ask button:hover { border-color: var(--border-strong); }
.sm-levels button[aria-checked="true"], .sm-ask button[aria-pressed="true"] { border-color: var(--t); background: color-mix(in srgb, var(--t) 14%, var(--surface-2)); }
.sm-place { display: flex; flex-direction: column; gap: 8px; }
.sm-label { font-size: 0.82rem; font-weight: 700; color: var(--text-secondary); }
.sm-place-row { display: flex; gap: 8px; flex-wrap: wrap; }
.sm-place-row select { flex: 1; min-width: 140px; }
#smGeo.is-on { border-color: var(--status-good); color: var(--status-good); }
.sm-hint { color: var(--text-muted); font-size: 0.76rem; }
.sm-note { margin: 0; color: var(--text-muted); font-size: 0.74rem; line-height: 1.4; }

/* canli serit: sabit menunun altinda tek ince satir; "+N" listesi icerigi itmeden ustte acilir */
.sm-live { position: fixed; top: var(--nav-h, calc(62px + var(--safe-top, 0px))); left: 0; right: 0; z-index: 190;
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body.sm-on { padding-top: var(--sm-h, 0px); }
body.sm-on .dash-tabs, body.sm-on .wx-tabs { top: calc(var(--nav-h, 62px) + var(--sm-h, 0px) + 6px) !important; }
.sm-line { position: relative; display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.sm-line > .live-dot { flex: none; background: var(--c); box-shadow: 0 0 0 0 var(--c); }
.sm-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 0.88rem; color: var(--text-primary); text-decoration: none; cursor: pointer; text-align: left; }
.sm-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sm-main:hover .sm-txt { text-decoration: underline; }
.sm-more { flex: none; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-secondary); font: inherit; font-size: 0.78rem; font-weight: 700; cursor: pointer; }
.sm-more[aria-expanded="true"] { color: var(--text-primary); border-color: var(--text-muted); }
.sm-x { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: none; color: var(--text-muted); cursor: pointer; }
.sm-x:hover { background: var(--surface-2); color: var(--text-primary); }
.sm-drop { position: absolute; top: calc(100% + 6px); right: 16px; width: min(460px, calc(100vw - 32px)); display: flex; flex-direction: column; gap: 2px; padding: 6px;
  border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface); box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.55); }
.sm-row { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--text-primary); font: inherit; font-size: 0.86rem; text-align: left; text-decoration: none; cursor: pointer; }
.sm-row:hover { background: var(--surface-2); }
.sm-row > span:last-child { min-width: 0; }
.sm-live-tag { flex: none; padding: 2px 7px; border-radius: 6px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--t); background: color-mix(in srgb, var(--t) 16%, transparent); }
.sm-live-note { margin: 4px 10px 4px; color: var(--text-muted); font-size: 0.74rem; }
@media (max-width: 560px) {
  .sm-line { gap: 8px; min-height: 38px; }
  .sm-main { font-size: 0.82rem; }
  .sm-more { padding: 3px 8px; }
  .sm-drop { right: 8px; }
}

/* deprem sayfasi: Hissettin mi? */
.sm-quake .sm-ask { margin: 4px 0 16px; }
.sm-res { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: start; }
.sm-map-wrap { min-width: 0; }
.sm-map { width: 100%; height: auto; display: block; }
.sm-map path { stroke: var(--surface); stroke-width: 1.2; }
.sm-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sm-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sm-big b { font-size: 2.2rem; line-height: 1; letter-spacing: -0.02em; }
.sm-big span { color: var(--text-secondary); font-size: 0.9rem; }
.sm-bar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.sm-bar-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.8rem; color: var(--text-secondary); }
.sm-bar-key i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.sm-il, .sm-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.sm-il li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 0.9rem; }
.sm-il li span { color: var(--text-secondary); text-align: right; }
.sm-facts { gap: 6px; }
.sm-facts li { display: flex; gap: 7px; align-items: flex-start; font-size: 0.86rem; color: var(--text-secondary); line-height: 1.4; }
.sm-facts li svg, .sm-facts li .ic { flex: none; margin-top: 2px; }

/* deprem listesinde "N kisi hissetti" */
.lp-q-meta .sm-cnt { color: var(--c-quake); font-weight: 600; }

@media (max-width: 760px) {
  .sm-res { grid-template-columns: 1fr; }
}
