/* =====================================================
   haberistatistik.com — Live Ticker v13
   ===================================================== */

.lt-wrap {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;

  /* Neon kenarlık — rengi JS ile güncelleniyor */
  border: 1.5px solid transparent;
  box-shadow:
    0 0 12px rgba(0, 200, 180, 0.22),
    0 0 28px rgba(0, 180, 255, 0.12);

  background: linear-gradient(160deg, #ffffff 0%, #f6fdff 40%, #f0fbfe 100%);
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;

  
}

@keyframes ltNeonBorder {
  0%,100% {
    box-shadow: 0 0 12px rgba(0,200,180,.22), 0 0 28px rgba(0,180,255,.12);
  }
  50% {
    box-shadow: 0 0 20px rgba(0,220,200,.42), 0 0 44px rgba(0,180,255,.24);
  }
}

/* Tüm içerik sweep'lerin üstünde */
.lt-head, .lt-status, .lt-rows, .lt-pager { position: relative; z-index: 1; }

/* Işık süpürme elemanı (JS ile ekleniyor) */
.lt-sweep {
  position: absolute;
  left: 0; right: 0;
  height: 55%;
  pointer-events: none;
  z-index: 0;
  /* renk ve animasyon JS tarafından set ediliyor */
}

/* Süpürme animasyonu */
@keyframes ltSweepAnim {
  0%   { top: -60%; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { top: 110%; opacity: 0; }
}

/* İkinci şerit (daha ince, offset) */
.lt-sweep2 {
  position: absolute;
  left: 0; right: 0;
  height: 22%;
  pointer-events: none;
  z-index: 0;
}

@keyframes ltSweepAnim2 {
  0%   { top: -25%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 115%; opacity: 0; }
}

/* ══ HEADER ══ */
.lt-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 7px 12px;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
  min-height: 54px;
  flex-wrap: wrap;
}

/* ── ZAMANLAYICI (sadece dış halka) ── */
.lt-tbtn {
  position: relative;
  width: 50px; height: 50px;
  cursor: pointer; flex-shrink: 0; user-select: none;
}

.lt-tsvg-outer {
  position: absolute; top: 0; left: 0;
  width: 50px; height: 50px;
  transform: rotate(-90deg);
}

.lt-tc-bg { fill: none; stroke: #e8e8e8; stroke-width: 4; }

.lt-tc-fg {
  fill: none; stroke: #2e7d32; stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 119.4;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 0.7s ease;
}
.lt-tc-fg.lt-tc-mid { stroke: #f57c00; }
.lt-tc-fg.lt-tc-low { stroke: #c62828; }

.lt-tinner {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
#ltTNum {
  font-size: 13px;           /* daha büyük sayı */
  font-weight: 900;
  color: #222;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Duraklat durumu */
.lt-tbtn.lt-paused #ltTNum { opacity: 0; }
.lt-tbtn.lt-paused::after {
  content: '▶';
  position: absolute; top: 50%; left: 52%;
  transform: translate(-50%, -50%);
  font-size: 17px; color: #1967d2;
  pointer-events: none;
}

/* ══ SEKMELER ══ */
.lt-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;                      /* tüm boş alanı kapla */
  justify-content: center;      /* ortala */
}

.lt-tab {
  display: flex; align-items: center; gap: 5px;
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 15px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  background: #f0f2f5;
  color: #555;
  position: relative; overflow: hidden;
  transition: transform .15s, box-shadow .15s, color .15s;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.lt-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.16);
}

/* Aktif sekme */
.lt-tab.active {
  color: #fff;
  transform: translateY(-2px);
}

/* Aktif sekme pulse */
@keyframes ltTabPulse {
  0%,100% { filter: brightness(1); }
  50%      { filter: brightness(1.18); }
}
.lt-tab.active { animation: ltTabPulse 2.4s ease-in-out infinite; }

.lt-ti {
  font-size: 20px;              /* ikon büyük */
  line-height: 1;
  display: inline-block;
}
.lt-tlabel { font-size: 15px; }

/* ── CANLI ── */
.lt-live-ind {
  display: flex; align-items: center;
  gap: 5px; font-size: 13px; font-weight: 700; color: #888; letter-spacing:.06em;
  flex-shrink: 0;
}
.lt-dot {
  width: 9px; height: 9px; background: #e53935; border-radius: 50%;
  animation: ltpulse 1.4s ease-in-out infinite;
}
@keyframes ltpulse { 0%,100% { opacity:1; } 50% { opacity:.2; } }

/* ══ STATUS ══ */
.lt-status {
  padding: 3px 12px; font-size: 11px; color: #999;
  background: #f8f8f8; border-bottom: 1px solid #ebebeb;
  min-height: 22px; line-height: 22px;
}

/* ══ ROWS ══ */
.lt-rows { position: relative; overflow: hidden; }

.lt-spin-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 36px 16px; color: #999; font-size: 14px; gap: 8px;
}
.lt-spin-wrap.lt-hide { display: none; }

.lt-spinner {
  width: 22px; height: 22px;
  border: 3px solid #ddd; border-top-color: #1967d2;
  border-radius: 50%; animation: ltspin .65s linear infinite;
}
@keyframes ltspin { to { transform: rotate(360deg); } }

.lt-empty { padding: 30px 16px; text-align: center; color: #bbb; font-size: 14px; }

/* ── Tek satır ── */
.lt-row {
  display: flex; align-items: center;
  border-bottom: 1px solid #efefef;
  min-height: 46px;
  cursor: pointer;
  will-change: transform;
}
.lt-row:last-child { border-bottom: none; }
.lt-row:hover { background: #ecf3ff !important; }

/* Durum renkleri */
.lt-new { background: #fffde7; }
.lt-hot { background: #ffebee; border-left: 3px solid #e53935; }
.lt-hot .lt-headline { color: #c62828 !important; font-weight: 700; }
.lt-new .lt-headline { font-weight: 600; }

/* FLIP kayma animasyonu — %50 daha yavaş */
@keyframes ltFlashUp {
  0%   { background-color: #43a047; }
  20%  { background-color: #a5d6a7; }
  50%  { background-color: #43a047; }
  75%  { background-color: #c8e6c9; }
  100% { background-color: transparent; }
}
@keyframes ltFlashDown {
  0%   { box-shadow: inset 3px 0 0 #c62828; }
  100% { box-shadow: inset 3px 0 0 transparent; }
}
/* Yavaş: 2.4s → 3.6s */
.lt-flash-up   { animation: ltFlashUp   3.6s ease forwards; }
.lt-flash-down { animation: ltFlashDown 1.8s ease forwards; }

@keyframes ltSlideIn {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
.lt-enter { animation: ltSlideIn .5s ease; }

/* ══ SÜTUNLAR ══ */
.lt-tr {
  width: 50px; min-width: 50px;
  display: flex; align-items: center;
  justify-content: flex-end; padding-right: 6px; gap: 2px;
}
.lt-au { font-size: 12px; color: #2e7d32; line-height: 1; }
.lt-ad { font-size: 12px; color: #c62828; line-height: 1; }
.lt-nu { font-size: 12px; font-weight: 700; color: #2e7d32; }
.lt-nd { font-size: 12px; font-weight: 700; color: #c62828; }

/* İlk yükleme: sıra numarası */
.lt-rank { font-size: 11px; color: #bbb; font-weight: 600; }

.lt-lg { width:32px; min-width:32px; display:flex; align-items:center; justify-content:center; }
.lt-logo { width:24px; height:24px; object-fit:contain; border-radius:2px; display:block; }

.lt-hl { flex:1 1 auto; padding:7px 10px 7px 4px; overflow:hidden; }
.lt-headline {
  font-size: 17px; line-height: 1.45; color: #111;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.lt-sc {
  width: 44px; min-width: 44px;
  text-align: right; padding-right: 12px;
  font-size: 16px; font-weight: 700; color: #555; white-space: nowrap;
}
.lt-sc-g { display:inline-block; background:#e8f5e9; color:#1b5e20;
  border-radius:3px; padding:1px 4px; min-width:22px; text-align:center; }
.lt-sc-p { display:inline-block; background:#fce4ec; color:#880e4f;
  border-radius:3px; padding:1px 4px; min-width:22px; text-align:center; }
.lt-sc-r { color:#e53935; font-weight:700; }

/* ══ SAYFALAMA ══ */
.lt-pager {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; padding: 10px 12px;
  border-top: 1px solid #ebebeb; background: #f8f8f8;
}
.lt-page-btn {
  background: #1967d2; color: #fff; border: none;
  border-radius: 20px; padding: 6px 18px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
}
.lt-page-btn:hover { background: #1251a8; transform: translateY(-1px); }
.lt-page-btn:disabled { background: #ccc; cursor: not-allowed; transform: none; }
.lt-page-info {
  font-size: 13px; font-weight: 700; color: #555;
  min-width: 120px; text-align: center;
}

/* ══ MODAL ══ */
.lt-ov {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 99999;
  align-items: center; justify-content: center; padding: 16px;
}
.lt-ov.lt-on { display: flex; }
.lt-mb {
  background: #fff; border-radius: 6px; width: 100%;
  max-width: 660px; max-height: 88vh; overflow-y: auto;
  box-shadow: 0 10px 36px rgba(0,0,0,.24); position: relative;
  animation: ltmdin .18s ease;
}
@keyframes ltmdin { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.lt-mx {
  position:absolute; top:8px; right:10px; background:rgba(0,0,0,.07);
  border:none; border-radius:50%; width:30px; height:30px;
  font-size:15px; cursor:pointer; color:#333;
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.lt-mx:hover { background:rgba(0,0,0,.15); }
.lt-m-img { width:100%; max-height:240px; object-fit:cover; border-radius:6px 6px 0 0; display:block; }
.lt-m-body { padding:16px 20px 22px; }
.lt-m-src { display:flex; align-items:center; gap:7px; font-size:12px; color:#aaa; margin-bottom:10px; }
.lt-m-src img { width:18px; height:18px; object-fit:contain; border-radius:2px; }
.lt-m-title { font-size:17px; font-weight:700; line-height:1.4; color:#111; margin:0 0 10px; }
.lt-m-exc { font-size:14px; line-height:1.65; color:#444; margin:0 0 12px; }
.lt-m-meta { font-size:12px; color:#bbb; display:flex; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.lt-m-btns { display:flex; gap:8px; flex-wrap:wrap; }
.lt-m-btn { display:inline-block; padding:8px 16px; border-radius:5px;
  font-size:13px; font-weight:600; text-decoration:none; transition:background .14s; }
.lt-m-btn-p { background:#1967d2; color:#fff; }
.lt-m-btn-p:hover { background:#1251a8; color:#fff; }

/* Responsive */
@media (max-width:575px) {
  .lt-tab { padding:6px 12px; font-size:13px; }
  .lt-ti  { font-size:17px; }
  .lt-tlabel { display:none; }
  .lt-headline { font-size:15px; }
  .lt-tbtn { width:44px; height:44px; }
  .lt-tsvg-outer { width:44px; height:44px; }
}
