/*
 * aether-ticker-bar — live news + market feed below the topbar
 * Matches the site palette: --bg-deep #04100f, --mint #8fffd3, --gold #ffd977
 * Zero external stylesheets. Pure CSS animation.
 */

.aether-ticker-bar {
  position: sticky;
  top: 60px; /* sits right under the topbar (min-height: 60px) */
  z-index: 90;
  width: 100%;
  background: rgba(4, 16, 15, 0.95);
  border-bottom: 1px solid rgba(143, 255, 211, 0.12);
  display: flex;
  align-items: stretch;
  font-size: 12px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  overflow: hidden;
  height: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

/* ── Left: market quotes ─────────────────────────────────────────────────── */
.ticker-markets {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 10px;
  border-right: 1px solid rgba(143, 255, 211, 0.14);
  white-space: nowrap;
  max-width: 340px;
  overflow: hidden;
}

.ticker-markets-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  overflow: hidden;
  white-space: nowrap;
}

.ticker-quote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ticker-quote .q-sym {
  color: #8fffd3;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 10px;
}
.ticker-quote .q-price {
  color: rgba(255, 255, 255, 0.9);
}
.ticker-quote .q-chg.up   { color: #39ff14; }
.ticker-quote .q-chg.down { color: #ff073a; }
.ticker-quote .q-chg.flat { color: rgba(255, 255, 255, 0.45); }

/* ── Right: scrolling news ───────────────────────────────────────────────── */
.ticker-news {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.ticker-track-outer {
  width: 100%;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  animation: ticker-scroll 60s linear infinite;
  padding-left: 100%;
  will-change: transform;
}

.ticker-track a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s;
}
.ticker-track a:hover {
  color: #8fffd3;
  text-decoration: underline;
}

.ticker-track .ticker-sep {
  color: rgba(143, 255, 211, 0.35);
  margin: 0 18px;
}

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

/* Pause on hover */
.ticker-track-outer:hover .ticker-track {
  animation-play-state: paused;
}

/* ── Label chips ─────────────────────────────────────────────────────────── */
.ticker-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fffd3;
  padding: 1px 6px;
  background: rgba(143, 255, 211, 0.08);
  border: 1px solid rgba(143, 255, 211, 0.2);
  border-radius: 3px;
  flex-shrink: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker-track {
    animation: none;
    padding-left: 12px;
  }
}
