/* ✦ ACTIVITY TICKER MODULE — Averil0814 ✦
   模組化：此檔案僅供 activity-ticker.js 使用，不干擾 style.css 框架
   ================================================================== */

#activity-ticker {
  position: relative; z-index: 10;
  height: 36px;
  display: flex;
  align-items: stretch;
  background: rgba(4, 6, 10, 0.97);
  border-bottom: 1px solid rgba(57, 255, 142, 0.12);
  overflow: hidden;
  user-select: none;
}

/* ─── LIVE badge ─── */
.ticker-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px 0 16px;
  background: var(--hud-green, #39ff8e);
  position: relative;
  z-index: 1;
}
.ticker-label span {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px; font-weight: 900;
  letter-spacing: 3px;
  color: #000;
  white-space: nowrap;
}
/* Arrow chevron */
.ticker-label::after {
  content: '';
  position: absolute;
  right: -14px; top: 0;
  width: 0; height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 14px solid var(--hud-green, #39ff8e);
  z-index: 2;
}

/* Blinking dot inside LIVE badge */
.ticker-dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #000;
  margin-right: 6px;
  animation: tickerBlink 1.4s step-end infinite;
  flex-shrink: 0;
}
@keyframes tickerBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.15; }
}

/* ─── Track ─── */
.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  padding-left: 24px; /* offset for chevron gap */
}
/* Left fade edge */
.ticker-track-wrapper::before {
  content: '';
  position: absolute; top: 0; left: 24px;
  width: 40px; height: 100%;
  background: linear-gradient(to right, rgba(4,6,10,0.9), transparent);
  z-index: 2;
  pointer-events: none;
}
/* Right fade edge */
.ticker-track-wrapper::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 60px; height: 100%;
  background: linear-gradient(to left, rgba(4,6,10,0.97), transparent);
  z-index: 2;
  pointer-events: none;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
}

.ticker-item {
  font-family: 'Rajdhani', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(180, 210, 240, 0.78);
  padding-right: 64px;
  flex-shrink: 0;
}
.ticker-item strong {
  color: var(--hud-green, #39ff8e);
  font-weight: 700;
}
.ticker-item em {
  font-style: normal;
  color: var(--hud-amber, #f5a623);
}

/* ─── Animation (duration set via JS) ─── */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Hover pause hint ─── */
#activity-ticker:hover .ticker-track {
  /* JS handles pause via animationPlayState */
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none !important; }
  .ticker-dot   { animation: none !important; }
}
