/* =====================================================================
   Winzobet — KAYAN YAZILAR bandı (ticker 2026-11-12)
   Sitenin en üstü (header'ın üstü), ince koyu bant: sağdan sola kesintisiz kayar, üstüne gelince / dokununca / odakta durur.
   Görünüm: resources/views/partials/ticker-bar.blade.php · davranış: public/js/wz-ticker.js · veri: App\Services\TickerService.
   Yükseklik 32 px (masaüstü) / 28 px (≤767). Arka plan header'dan (#1a1c20) bir ton koyu, yazı #e8e9ec, ayraç kırmızı nokta.
   Header uyumu (yalnız bant görünürken: html.wz-tk-on):
     ≥768  header fixed → top = --wz-tk-off (sayfa en üstteyken bant yüksekliği, kaydırdıkça 0; değeri bantın satır içi betiği
           yalnız .topbar ve #mainSidebar üzerine yazar, betik yoksa bant yüksekliği). Sağ üst bildirim kartları en üstteyken bant kadar aşağı.
     ≥1280 sol menü sticky top 60 → yüksekliği en üstteyken bant kadar kısa (alt şerit ekranın altında kalmasın).
     ≤767  header zaten sticky (akışta) → ek kural yok; bant yukarı kayıp gider, header 0'a yapışır.
   Yönetim önizlemesi aynı sınıfları kullanır (.wztk.is-preview).
   [fix3] baştaki boşluk setten (.wztk-set) kaydırıcıya (.wztk-track) taşındı → döngü dikişindeki ara diğer aralarla aynı;
          hareket azaltmada sıradaki yazılar görsel olarak gizli (Tab ile erişilir), uzun yazı 2 satır + sayfa;
          "Duyuruları atla" düğmesi; bildirim kartları --wz-tk-off'u izler.
   ===================================================================== */

html.wz-tk-on { --wz-tk-h: 32px; }

.wztk {
  --wztk-bg: #141519;
  --wztk-line: #26282e;
  --wztk-tx: #e8e9ec;
  --wztk-mut: #8d919b;
  --wztk-red: #ff003a;
  --wztk-red-2: #ff3361;
  position: relative;
  z-index: 81;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
  overflow: hidden;
  background: var(--wztk-bg);
  border-bottom: 1px solid var(--wztk-line);
  color: var(--wztk-tx);
  font: 500 13px/1 Outfit, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  contain: layout paint style;
}

.wztk[hidden] { display: none !important; }

.wztk *,
.wztk *::before,
.wztk *::after { box-sizing: border-box; }

/* sol: küçük megafon */
.wztk-ic {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 100%;
  color: var(--wztk-red-2);
}
.wztk-ic svg { width: 15px; height: 15px; display: block; }

/* klavye: "Duyuruları atla" — yalnız odakta görünür, odağı header'a taşır (js) */
.wztk-skip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 4;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: var(--wztk-bg);
  color: #fff;
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.wztk-skip:focus { outline: 2px solid #fff; outline-offset: -4px; border-radius: 6px; }
.wztk-skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.wztk-ic::after { /* ince ayraç */
  content: "";
  position: absolute;
  right: 0;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: var(--wztk-line);
}

/* kayan alan: kenarlarda yumuşak solma */
.wztk-vp {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 22px), transparent 100%);
}
@supports (overflow: clip) {
  .wztk-vp { overflow: clip; } /* kaydırılabilir kap değil: odak (Tab) alanı kaydıramaz */
}

.wztk-track {
  display: flex;
  width: max-content;
  height: 100%;
  padding-left: 16px; /* baştaki boşluk burada (set'te değil): kopya bu boşluğu tekrarlamaz → dikişteki ara = diğer aralar */
  backface-visibility: hidden;
}
.wztk.is-run .wztk-track { will-change: transform; }

.wztk-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: var(--wztk-vpw, 0px); /* kısa liste: set en az bant genişliği → kısa yazı tek başına geçer, yan yana çoğalmaz */
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wztk-it {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
  white-space: nowrap;
}

.wztk-tx {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  color: var(--wztk-tx);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

a.wztk-tx {
  color: var(--wztk-tx);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color .15s ease, text-decoration-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
a.wztk-tx:hover {
  color: #fff;
  text-decoration-color: var(--wztk-red);
}
a.wztk-tx:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
  border-radius: 6px;
  color: #fff;
  text-decoration-color: var(--wztk-red);
}
.wztk-go {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  color: var(--wztk-red-2);
}
a.wztk-tx.is-ext .wztk-go { width: 11px; height: 11px; }

.wztk-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wztk-dot {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin: 0 20px;
  border-radius: 50%;
  background: var(--wztk-red);
  box-shadow: 0 0 6px rgba(255, 0, 58, .55);
}

/* sağ: kapat */
.wztk-x {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wztk-mut);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wztk-x svg { width: 13px; height: 13px; display: block; }
.wztk-x:hover { color: #fff; }
.wztk-x:focus-visible { outline: 2px solid #fff; outline-offset: -5px; border-radius: 8px; color: #fff; }

/* hareket azaltma (prefers-reduced-motion) / JS'in "döndür" kipi: kayma yok, tek yazı görünür, sırayla solarak değişir.
   Sıradaki yazılar display:none DEĞİL, görsel olarak gizli: Tab ile odaklanılabilir (odaklanan yazı görünür olur, js). */
.wztk.is-rm .wztk-track { width: 100%; transform: none !important; }
.wztk.is-rm .wztk-set { width: 100%; min-width: 0; padding-right: 8px; }
.wztk.is-rm .wztk-set.is-clone { display: none; }
.wztk.is-rm .wztk-it {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wztk.is-rm .wztk-it.is-cur {
  position: static;
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  overflow: visible;
  clip: auto;
  clip-path: none;
  animation: wztk-fade .35s ease both;
}
.wztk.is-rm .wztk-tx {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 32px;
}
.wztk.is-rm .wztk-go { display: inline-block; vertical-align: -1px; margin-left: 4px; }
/* sığmayan yazı: 2 satır, biraz küçük; yine sığmazsa js 2'şer satırlık sayfalarla gösterir (scrollTop; kayma yok, solma) */
.wztk.is-rm .wztk-tx.is-2l {
  height: 28px;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 14px;
}
.wztk.is-rm a.wztk-tx.is-2l:focus-visible { outline-offset: 0; border-radius: 4px; }
.wztk.is-rm .wztk-tx.is-pg { animation: wztk-fade .35s ease both; }
.wztk.is-rm .wztk-dot { display: none; }
@keyframes wztk-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .wztk-track { transform: none !important; }
  .wztk.is-rm .wztk-it.is-cur,
  .wztk.is-rm .wztk-tx.is-pg { animation-duration: .01s; }
  a.wztk-tx { transition: none; }
}

/* ---------------- header / sol menü / bildirim uyumu (yalnız bant görünürken) ---------------- */
@media (min-width: 768px) {
  html.wz-tk-on body.bb-shell .topbar {
    top: var(--wz-tk-off, var(--wz-tk-h));
  }
  /* bildirim kartları header'ın altını izler: satır içi betik --wz-tk-off'u #rt-toasts'a da yazar (0..bant yüksekliği);
     kapsayıcı sonradan oluştuysa ve henüz yazılmadıysa: en üstteyken bant kadar aşağı, kaydırılmışken normal yer */
  html.wz-tk-on #rt-toasts.wzt-host {
    --wzt-top: calc(72px + var(--wz-tk-off, 0px));
  }
  html.wz-tk-on.wz-tk-top #rt-toasts.wzt-host {
    --wzt-top: calc(72px + var(--wz-tk-off, var(--wz-tk-h)));
  }
}
@media (min-width: 1280px) {
  html.wz-tk-on body.bb-shell .sidebar {
    height: calc(100vh - 60px - var(--wz-tk-off, var(--wz-tk-h)));
  }
}

/* ---------------- mobil ---------------- */
@media (max-width: 767px) {
  html.wz-tk-on { --wz-tk-h: 28px; }
  .wztk { height: 28px; font-size: 12.5px; }
  .wztk-ic { width: 32px; }
  .wztk-ic svg { width: 14px; height: 14px; }
  .wztk-ic::after { top: 8px; bottom: 8px; }
  .wztk-track { padding-left: 12px; }
  .wztk-dot { margin: 0 16px; }
  .wztk-x { width: 32px; }
  .wztk.is-rm .wztk-tx { line-height: 28px; }
  .wztk.is-rm .wztk-tx.is-2l { height: 26px; font-size: 11.5px; line-height: 13px; }
}

/* yönetim önizlemesi */
.wztk.is-preview { border: 1px solid var(--wztk-line); border-radius: 10px; }
.wztk.is-preview .wztk-x { cursor: default; }
