/* Son Depremler — sayfaya özel stiller */
.quake-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.filter-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  font: inherit; font-weight: 600; cursor: pointer; padding: .45rem .9rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  border-radius: 999px; transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.quake-status { color: var(--text-muted); font-size: var(--step--1); margin: .5rem 0 1rem; }

.quake-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.quake-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .8rem 1rem; box-shadow: var(--shadow);
}
.mag {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  font-weight: 800; font-size: 1.25rem; color: #fff; flex: none;
}
.mag-s { background: #4a9e6f; }   /* < 3 */
.mag-m { background: #e0a500; }   /* 3-3.9 */
.mag-l { background: #e07a2f; }   /* 4-4.9 */
.mag-x { background: #d24141; }   /* 5+ */
.quake-info { min-width: 0; }
.quake-place { font-weight: 700; margin: 0 0 .2rem; overflow-wrap: anywhere; }
.quake-meta { margin: 0; color: var(--text-muted); font-size: var(--step--1); }
.quake-map { white-space: nowrap; font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.quake-map:hover { text-decoration: underline; }

.quake-source { margin-top: 1.25rem; }
.quake-error { border-left: 3px solid #d24141; background: var(--surface-2); padding: 1rem 1.25rem; border-radius: var(--radius-sm); }

@media (max-width: 560px) {
  .quake-item { grid-template-columns: auto 1fr; }
  .quake-map { grid-column: 1 / -1; }
}

/* Mod çubuğu: Canlı / Bugün / Dün / takvim */
.mode-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin: 0 0 1.25rem; padding: .45rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  width: fit-content; max-width: 100%;
}
.mode-pill {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  font: inherit; font-size: var(--step--1); font-weight: 600; cursor: pointer;
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.mode-pill:hover { color: var(--text); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.mode-pill:active { transform: scale(.97); }
.mode-pill.is-active {
  background: var(--brand); color: #fff;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 40%, transparent);
}
.mode-pill svg { width: 15px; height: 15px; }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #e04a4a;
  animation: livePulse 2s ease-out infinite;
}
.mode-pill.is-active .live-dot { background: #fff; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(224,74,74,.45); }
  70% { box-shadow: 0 0 0 7px rgba(224,74,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,74,74,0); }
}
.mode-date input[type="date"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; border: 0;
}
.mode-date input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
}
.mode-hint { padding: 0 .75rem 0 .25rem; }
@media (max-width: 560px) { .mode-hint { display: none; } .mode-bar { width: 100%; justify-content: center; } }

/* Son 5 deprem diyagramı */
.quake-chart { margin: 0 0 1.5rem; }
.quake-chart h3 { margin: 0 0 .25rem; font-size: var(--step-0); }
.quake-chart svg { width: 100%; max-width: 640px; height: auto; display: block; }
.quake-chart .c-val { font: 700 15px/1 system-ui, sans-serif; fill: var(--text); }
.quake-chart .c-lbl { font: 600 11px/1 system-ui, sans-serif; fill: var(--text); }
.quake-chart .c-sub { font: 500 10px/1 system-ui, sans-serif; fill: var(--text-muted); }
.quake-chart .c-axis { stroke: var(--border); stroke-width: 1.5; }
