/* ═══════════════════════════════════════════════════════════════════
   LIVE PRICE TICKER — kayan futures fiyatları
   ═══════════════════════════════════════════════════════════════════ */

.ticker-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ticker-h);
  background: linear-gradient(180deg, #050810 0%, #0a0e18 100%);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
}

.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  height: 100%;
  background: var(--bg-base);
  border-right: 1px solid var(--border);
  letter-spacing: 0.2em;
  font-size: 0.66rem;
  color: var(--text-tertiary);
  font-weight: 600;
  z-index: 2;
}

.ticker-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
}

.ticker-track-wrapper {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 4%, black 96%, transparent 100%);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker-scroll 90s linear infinite;
  will-change: transform;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-loading {
  padding: 0 32px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-right: 1px solid var(--border);
  height: 100%;
  cursor: pointer;
  transition: background 0.15s;
}

.ticker-item:hover { background: rgba(147, 51, 234, 0.08); }

.ticker-symbol {
  color: var(--text);
  font-weight: 600;
}

.ticker-price {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.ticker-change {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.ticker-change.up { color: var(--green-light); }
.ticker-change.down { color: var(--red-light); }

.ticker-change::before {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.ticker-change.up::before { border-bottom: 5px solid var(--green-light); margin-bottom: 2px; }
.ticker-change.down::before { border-top: 5px solid var(--red-light); margin-top: 2px; }

.ticker-item.flash-up   { animation: flash-up 0.6s ease-out; }
.ticker-item.flash-down { animation: flash-down 0.6s ease-out; }

@keyframes flash-up {
  0% { background: rgba(34, 197, 94, 0.25); }
  100% { background: transparent; }
}
@keyframes flash-down {
  0% { background: rgba(239, 68, 68, 0.25); }
  100% { background: transparent; }
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .ticker-label { padding: 0 10px; font-size: 0.58rem; }
  .ticker-item { padding: 0 12px; gap: 6px; font-size: 0.72rem; }
  .ticker-track { animation-duration: 60s; }
}
