/* =========================== */
/* TICKER MODULE — ticker.css   */
/* =========================== */

:root {
  --ticker-track-width: 3000px; /* fallback */
  --ticker-duration: 40s;       /* tuned faster */
}

/* Ticker Wrapper */
.ticker-wrapper {
  width: 70%;
  margin: 1.5rem auto 0 auto;
  background: 
    repeating-linear-gradient(0deg, rgba(0, 255, 224, 0.1) 0px, rgba(0, 255, 224, 0.1) 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, rgba(0, 255, 224, 0.1) 0px, rgba(0, 255, 224, 0.1) 1px, transparent 1px, transparent 3px),
    rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 255, 224, 0.1);
}

/* Ticker Bar */
.led-ticker {
  width: 100%;
  height: 16px;
  display: flex;
  align-items: center;
  background: rgba(0, 255, 224, 0.08);
  border: none;
}


/* Fade Mask for Edges */
.ticker-fade-mask {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent 0%, black 0%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 0%, black 90%, transparent 100%);
}



/* Main Content Layout */
.led-ticker-content {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

/* Pinned Static Block */
.ticker-static-wrapper {
  flex: 0 0 auto;
  margin-right: 0.3rem;
  animation: ticker-alert 7s infinite alternate ease-in-out;
}

/* Scrolling Dynamic Block */
.ticker-scroller {
  flex: 1 1 auto;
  overflow: hidden;
  position: relative;
}

/* Fade effect overlay for moving ticker content */
.ticker-scroller::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3rem; /* or adjust */
  height: 100%;
  background: linear-gradient(to right, black 0%, transparent 100%);
  z-index: 5;
  pointer-events: none;
}

/* The Moving Content */
.ticker-content-track {
  display: inline-flex;
  animation: ticker-scroll var(--ticker-duration) linear infinite,
             ticker-glow 3s infinite alternate ease-in-out;
  align-items: center;
  white-space: nowrap;
}



/* Static Alert Text */
.ticker-static {
  color: #ff5555;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Orbitron', sans-serif;
}

/* Ticker Links */
.ticker-link {
  color: #88c0d0;
  text-decoration: none;
  margin-left: 0.25rem;  /* SMALL left margin */
  margin-right: 0.5rem;  /* Normal right spacing */
  transition: color 0.3s;
  font-family: 'Courier New', Courier, monospace;
}

.ticker-link:hover {
  color: #ffffff;
  text-shadow: 0 0 6px #88c0d0;
}

/* Separator */
.ticker-separator {
  color: #00ffee;
  opacity: 0.6;
  margin: 0 0.75rem;
}

/* Animations */
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-1 * var(--ticker-track-width))); }
}

@keyframes ticker-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 2px #88c0d0; }
  50% { opacity: 0.85; text-shadow: 0 0 6px #88c0d0; }
}

@keyframes ticker-alert {
  0%, 100% { opacity: 1; text-shadow: 0 0 3px #ff5555; }
  50% { opacity: 0.8; text-shadow: 0 0 6px #ff5555; }
}