/**
 * Neural Frontier — styles/ticker.css
 * Cinta de cotizaciones en movimiento continuo (arriba del todo)
 */

.ticker-bar {
  height: var(--ticker-height);
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
  background: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
}

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

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

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px;
  font-size: 0.78rem;
  font-weight: 500;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  flex-shrink: 0;
}

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

.ticker-symbol {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

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

.ticker-change {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ticker-item.is-up .ticker-change   { color: var(--positive); }
.ticker-item.is-down .ticker-change { color: var(--negative); }
.ticker-item.is-neutral .ticker-change { color: var(--text-muted); }

.ticker-arrow { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

@media (max-width: 720px) {
  .ticker-item { padding: 0 14px; font-size: 0.72rem; }
}
