@import url('themes.css');
/* ═══════════════════════════════════════════════════════════════
   SendenSana — Sessiz Oturum (js/SilentTimer.js ile birlikte)
   Renkler YALNIZ css/themes.css belirteçlerinden (.st[data-theme]);
   Nefes Stüdyosu'nun (.bs) kardeşi: ince halka, iri mono sayaç, hap çipler.
   ═══════════════════════════════════════════════════════════════ */
.st {
  --st-bg1: var(--th-bg1);
  --st-bg2: var(--th-bg2);
  --st-ink: var(--th-ink);
  --st-muted: var(--th-muted);
  --st-in: var(--th-in);
  --st-out: var(--th-out);
  --st-hold: var(--th-hold);
  --st-panel: var(--th-panel);
  --st-line: var(--th-line);
  --st-chip: var(--th-chip);
  --st-chip-on: var(--th-chip-on);
  --st-chip-on-ink: var(--th-chip-on-ink);
  --st-shadow: var(--th-shadow);
  --st-display: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --st-body: 'Karla', 'Helvetica Neue', Arial, sans-serif;
  --st-mono: 'JetBrains Mono', Consolas, 'Courier New', monospace;

  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: min(78vh, 720px);
  background: radial-gradient(75% 75% at 50% 46%, var(--st-bg2), var(--st-bg1) 72%);
  color: var(--st-ink);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--st-body);
  text-align: start;
  box-sizing: border-box;
}
.st *, .st *::before, .st *::after { box-sizing: border-box; }

/* ── Sahne: halka + sayaç ── */
.st-stage {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 36px 20px 30px; min-height: 460px; outline: none; min-width: 0;
}
.st-stage:focus-visible { box-shadow: inset 0 0 0 2px var(--st-in); }
.st-dial { position: relative; width: min(100%, 380px); aspect-ratio: 1; }
.st-ring { display: block; width: 100%; height: 100%; transform: rotate(0deg); overflow: visible; }
.st-ring__track { fill: none; stroke: var(--st-line); stroke-width: 1.5; }
.st-ring__prog {
  fill: none; stroke: var(--st-in); stroke-width: 2.5; stroke-linecap: round;
  transform: rotate(-90deg); transform-origin: 100px 100px; transition: stroke-dashoffset 0.25s linear;
}
.st-ring__ticks line { stroke: var(--st-hold); stroke-width: 1.4; stroke-linecap: round; opacity: 0.75; }
.st-ring__dot { fill: var(--st-ink); filter: drop-shadow(0 0 6px var(--st-in)); }
.st:not(.st--active) .st-ring__dot { opacity: 0.6; }

.st-center {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 18%;
}
.st-word {
  font-family: var(--st-mono); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--st-muted);
  max-width: 100%; overflow-wrap: anywhere; line-height: 1.4;
}
.st--running .st-word { color: var(--st-in); }
.st-time {
  font-family: var(--st-mono); font-weight: 500; font-size: clamp(3rem, 9vw, 4.6rem); line-height: 1;
  letter-spacing: -0.04em; color: var(--st-ink); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
}
.st-sub { min-height: 1.2em; font-family: var(--st-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-muted); }
.st-next {
  min-height: 1.3em; font-family: var(--st-mono); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--st-hold);
  font-variant-numeric: tabular-nums; text-align: center;
}

.st-bar {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 999px; background: var(--st-panel); border: 1px solid var(--st-line);
}
.st-btn {
  appearance: none; border: 0; background: transparent; color: var(--st-ink);
  font: 600 0.95rem/1 var(--st-body);
  min-width: 44px; min-height: 44px; padding: 10px 16px; border-radius: 999px; cursor: pointer;
}
.st-btn[hidden] { display: none; }
.st-btn:hover { background: var(--st-chip); }
.st-btn--main { background: var(--st-chip-on); color: var(--st-chip-on-ink); padding-inline: 28px; min-width: 132px; }
.st-btn--main:hover { background: var(--st-chip-on); filter: brightness(1.08); }
.st-btn:focus-visible, .st-link:focus-visible { outline: 2px solid var(--st-in); outline-offset: 2px; }

.st-done {
  position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 16px;
  background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.st-done[hidden] { display: none; }
.st-done__card {
  display: grid; gap: 12px; justify-items: center; text-align: center;
  max-width: min(100%, 380px); padding: 28px 30px; border-radius: 20px;
  background: var(--st-panel); border: 1px solid var(--st-line);
}
.st-done__card h3 { margin: 0; color: var(--st-ink); font-family: var(--st-display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.02em; }
.st-done__text { margin: 0; color: var(--st-muted); line-height: 1.5; }

/* ── Ayar paneli ── */
.st-panel {
  display: grid; align-content: start; gap: 16px; min-width: 0; padding: 24px 22px;
  background: var(--st-panel); border-inline-start: 1px solid var(--st-line);
}
.st-head { display: grid; gap: 6px; }
.st-title { margin: 0; font-family: var(--st-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--st-ink); line-height: 1.15; }
.st-tag { margin: 0; color: var(--st-muted); font-size: 0.86rem; line-height: 1.5; }
.st-group { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; transition: opacity 0.2s; }
.st-group:disabled { opacity: 0.45; }
.st-group legend {
  margin-bottom: 8px; padding: 0; font-family: var(--st-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-muted);
}
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-chip { position: relative; cursor: pointer; }
.st-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.st-group:disabled .st-chip, .st-group:disabled .st-chip input { cursor: default; }
.st-chip span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border-radius: 999px;
  background: var(--st-chip); border: 1px solid var(--st-line); color: var(--st-ink);
  font-size: 0.86rem; line-height: 1.2; transition: background 0.15s, border-color 0.15s;
}
.st-chip:hover span { border-color: var(--st-in); }
.st-chip input:checked + span { background: var(--st-chip-on); border-color: transparent; color: var(--st-chip-on-ink); font-weight: 600; }
.st-chip input:focus-visible + span { outline: 2px solid var(--st-in); outline-offset: 2px; }
.st-num { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--st-muted); }
.st-num[hidden] { display: none; }
.st-num input {
  width: 84px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--st-line);
  background: var(--st-chip); color: var(--st-ink); font: inherit; font-family: var(--st-mono); font-variant-numeric: tabular-nums;
}
.st-num input:focus-visible { outline: 2px solid var(--st-in); outline-offset: 1px; }
.st-link {
  justify-self: start; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--st-line);
  background: transparent; color: var(--st-ink); font: inherit; font-size: 0.84rem; cursor: pointer; min-height: 38px;
}
.st-link:hover { border-color: var(--st-in); }
.st-vol { display: grid; gap: 8px; font-family: var(--st-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--st-muted); }
.st-range { width: 100%; margin: 0; accent-color: var(--st-chip-on); cursor: pointer; }
.st-note {
  margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--st-line);
  color: var(--st-muted); font-size: 0.78rem; line-height: 1.5;
}

/* ── Dar ekran: sahne üstte, ayarlar altta ── */
@media (max-width: 860px) {
  .st { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 20px; }
  .st-stage { min-height: 0; padding: 28px 16px 24px; }
  .st-dial { width: min(100%, 320px); }
  .st-panel { border-inline-start: 0; border-top: 1px solid var(--st-line); background: transparent; padding: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-ring__prog, .st-chip span, .st-group { transition: none; }
}
.st--still .st-ring__prog { transition: none; }
/* Bitişik / hece yazılarında harf aralığı ve eş-genişlikli yazı kelimeyi koparır (Arapça harfleri ayrılır) → gövde yazısı */
.st:is(:lang(ar), :lang(hi), :lang(th), :lang(ja), :lang(ko), :lang(zh)) :is(.st-word, .st-sub, .st-next, .st-group legend, .st-vol) { letter-spacing: 0; font-family: var(--st-body); font-size: 0.82rem; }
