/* ─── GEN LIVE TICKER BAR ───────────────────────────────────────────────────── */

.gen-ticker-bar {
  background-color: #0F6E56;
  color: #E1F5EE;
  width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 100;
  /* Sits immediately below the main nav — no margin needed if nav has no bottom margin */
}

.gen-ticker-inner {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  gap: 16px;
}

/* "GEN LIVE" badge on the left */
.gen-ticker-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #9FE1CB;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid #1D9E75;
  padding: 2px 8px;
  border-radius: 3px;
}

/* Scrolling area */
.gen-ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 38px;
  display: flex;
  align-items: center;
}

/* The moving track — JS animates translateX on this */
.gen-ticker-track {
  display: flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  gap: 0;
}

/* Individual data items */
.gen-tick-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #E1F5EE;
  padding-right: 40px; /* gap between items */
}

.gen-tick-item strong {
  font-weight: 600;
  font-size: 13px;
  color: #ffffff;
}

/* Separator dot between items */
.gen-tick-item::before {
  content: "·";
  color: #5DCAA5;
  margin-right: 40px;
  font-size: 16px;
  line-height: 1;
}

.gen-tick-item:first-child::before {
  display: none;
}

/* Direction colours */
.gen-tick-up {
  color: #9FE1CB;
  font-size: 11px;
}

.gen-tick-down {
  color: #F09595;
  font-size: 11px;
}

.gen-tick-flat {
  color: #5DCAA5;
  font-size: 11px;
  opacity: 0.6;
}

/* "Full dashboard" CTA link on the right */
.gen-ticker-cta {
  font-size: 11px;
  color: #9FE1CB;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(159, 225, 203, 0.4);
  transition: color 0.15s;
}

.gen-ticker-cta:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Pause on hover (accessibility) */
.gen-ticker-bar:hover .gen-ticker-track {
  animation-play-state: paused; /* fallback for CSS animation approach */
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .gen-ticker-label {
    display: none; /* hide badge on mobile to save space */
  }

  .gen-ticker-cta {
    display: none; /* hide on mobile — link available on /intel page */
  }

  .gen-tick-item {
    font-size: 11px;
    padding-right: 28px;
  }
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .gen-ticker-track {
    /* Stop the scroll — show static items instead */
    animation: none !important;
    transform: none !important;
  }

  .gen-ticker-scroll {
    overflow-x: auto;
  }
}
