/* ============================================================
   INTEL TICKER — Varangian Group cooperation
   ============================================================ */
.intel-ticker {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 990;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
}

/* Offset page content for fixed ticker */
:root {
  --ticker-h: 38px;
}

.ticker-label {
  flex-shrink: 0;
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  padding: 0 1.2rem;
  border-right: 1px solid var(--border);
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold-subtle);
  white-space: nowrap;
}

/* Status Dot */
.ticker-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #555;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.ticker-status-dot.live {
  background: #00ff88;
  box-shadow: 0 0 6px rgba(0, 255, 136, 0.6), 0 0 12px rgba(0, 255, 136, 0.3);
  animation: statusPulse 2s ease-in-out infinite;
}
.ticker-status-dot.offline {
  background: #ff4444;
  box-shadow: 0 0 6px rgba(255, 68, 68, 0.4);
  animation: none;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(0, 255, 136, 0.6), 0 0 12px rgba(0, 255, 136, 0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 3px rgba(0, 255, 136, 0.3), 0 0 6px rgba(0, 255, 136, 0.15); }
}

.ticker-label-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

.ticker-label-attr {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
}

.ticker-track-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: bretalon-ticker-scroll 60s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes bretalon-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration) var(--ease);
  height: 100%;
}

.ticker-item:hover {
  color: var(--gold-light);
}

.ticker-tag {
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-dim);
}

.ticker-sep {
  color: var(--text-muted);
  opacity: 0.2;
  padding: 0 0.2rem;
}

.ticker-time {
  font-size: 0.55rem;
  color: var(--text-muted);
}

/* Content offset when ticker is active */
body.has-ticker .hero-content {
  padding-top: calc(var(--header-h) + var(--ticker-h) + 6rem);
}
body.has-ticker .page-hero {
  padding-top: calc(var(--header-h) + var(--ticker-h) + 4rem);
}
body.has-ticker .single-wrap {
  padding-top: calc(var(--header-h) + var(--ticker-h));
}
body.has-ticker .article-sidebar {
  top: calc(var(--header-h) + var(--ticker-h) + 2rem);
}

/* Mobile */
@media (max-width: 768px) {
  .intel-ticker {
    height: 34px;
  }
  :root {
    --ticker-h: 34px;
  }
  .ticker-label {
    font-size: 0.55rem;
    padding: 0 0.7rem;
  }
  .ticker-label-attr {
    display: none;
  }
  .ticker-label-sep {
    display: none;
  }
  .ticker-item {
    font-size: 0.62rem;
    padding: 0 1rem;
  }
  .ticker-tag {
    font-size: 0.5rem;
  }
}

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