/* ========== ANNOUNCEMENT TICKER ========== */

.announcement-ticker-container {
  width: 100%;
  margin: 18px 0 20px;
}

.announcement-ticker {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: linear-gradient(90deg, #14b8a6 0%, #22c55e 55%, #16a34a 100%);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.16);
}

.announcement-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ecfdf5;
  background: rgba(0, 0, 0, 0.14);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.announcement-ticker-marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.announcement-ticker-track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  width: max-content;
  animation: announcementTickerScroll 28s linear infinite;
  will-change: transform;
}

.ticker-text {
  display: inline-block;
  padding-right: 72px;
  font-size: 15px;
  font-weight: 700;
  color: #f0fdf4;
}

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

.announcement-ticker.is-hidden {
  display: none;
}

html[data-theme="light"] .announcement-ticker {
  border: 1px solid rgba(22, 163, 74, 0.24);
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.14);
}

html[data-theme="light"] .announcement-ticker-label {
  color: #f0fdf4;
}

/* ========== LIVE UPDATES GLOWING DOT ========== */

.live-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ff2d2d;
  border: none;
  display: inline-block;
  box-shadow:
    0 0 6px rgba(255, 45, 45, 0.9),
    0 0 12px rgba(255, 45, 45, 0.7),
    0 0 20px rgba(255, 45, 45, 0.5);
  animation: livePulse 1.8s ease-in-out infinite;
}

.announcement-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes livePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 6px rgba(255, 45, 45, 0.9),
      0 0 12px rgba(255, 45, 45, 0.7),
      0 0 20px rgba(255, 45, 45, 0.5);
  }
  50% {
    transform: scale(1.12);
    box-shadow:
      0 0 10px rgba(255, 45, 45, 1),
      0 0 18px rgba(255, 45, 45, 0.85),
      0 0 28px rgba(255, 45, 45, 0.65);
  }
}

@media (max-width: 768px) {
  .announcement-ticker {
    min-height: 50px;
    border-radius: 14px;
  }

  .announcement-ticker-label {
    padding: 0 12px;
    font-size: 11px;
  }

  .ticker-text {
    font-size: 14px;
    padding-right: 56px;
  }
}
