/* ============================================================
   forex-ticker.css — Live currency strip
   Appears between the breaking-news ticker and the site header.
   Integrates with the existing CSS custom property theme.
   ============================================================ */

.forex-strip {
  display: flex;
  align-items: center;
  background: var(--c-bg-alt, #0a2540);
  border-bottom: 1px solid var(--c-border, rgba(255, 255, 255, 0.08));
  height: 28px;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--f-body, 'Noto Sans', sans-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-text-muted, #a0b3c6);
  user-select: none;
}

/* "FX" label badge */
.forex-strip__label {
  flex-shrink: 0;
  background: var(--c-accent1, #e63946);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

/* Scrolling track */
.forex-strip__track {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  animation: forexScroll 40s linear infinite;
}

.forex-strip__track:hover {
  animation-play-state: paused;
}

/* Individual pair pill */
.forex-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 2px 0;
  cursor: default;
  transition: color 0.2s;
}

.forex-strip__item::before {
  content: '·';
  color: var(--c-border, rgba(255, 255, 255, 0.25));
  margin-right: 4px;
}
.forex-strip__item:first-child::before { display: none; }

.forex-strip__pair {
  color: var(--c-text-muted, #a0b3c6);
  font-weight: 700;
  text-transform: uppercase;
}

.forex-strip__rate {
  color: var(--c-text, #e8f1f8);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.forex-strip__loading {
  color: var(--c-text-muted, #a0b3c6);
  font-style: italic;
}

/* Positive / Negative direction indicators */
.forex-strip__up   { color: #27cf68; }
.forex-strip__down { color: #e63946; }

/* Scroll animation */
@keyframes forexScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Dark-mode overrides ── */
[data-theme="dark"] .forex-strip {
  background: #060f1a;
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ── Light-mode overrides ── */
[data-theme="light"] .forex-strip {
  background: #0c3d63;
  color: rgba(255,255,255,0.65);
}
[data-theme="light"] .forex-strip__rate { color: #fff; }
[data-theme="light"] .forex-strip__pair { color: rgba(255,255,255,0.7); }

/* ── Mobile: hide on very small screens ── */
@media (max-width: 400px) {
  .forex-strip { display: none; }
}
