/* ============================================================
   Bot Radar — Live Online Indicator (add to index_home.css)
   ============================================================ */

/* --- Container: link itself --- */
.nav-radar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 6px 12px !important;
  border-radius: 999px;
  background: rgba(0, 211, 132, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.nav-radar-link:hover {
  background: rgba(0, 211, 132, 0.14);
  box-shadow: 0 0 0 3px rgba(0, 211, 132, 0.08);
}

/* --- The green dot --- */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00d384;
  flex-shrink: 0;
}

/* --- Outer pulse ring --- */
.live-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #00d384;
  opacity: 0.6;
  animation: live-pulse 1.8s ease-out infinite;
}

/* --- Soft glow halo --- */
.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #00d384;
  opacity: 0.18;
  filter: blur(3px);
  animation: live-glow 1.8s ease-out infinite;
}

/* --- Label styling --- */
.nav-radar-label {
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.01em;
}

/* --- Optional "LIVE" micro-badge next to label --- */
.nav-radar-link::after {
  content: "LIVE";
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #00d384;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 211, 132, 0.12);
  margin-left: 2px;
}

/* --- Animations --- */
@keyframes live-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes live-glow {
  0%, 100% {
    opacity: 0.18;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(1.15);
  }
}

/* --- Reduced motion: respect user accessibility settings --- */
@media (prefers-reduced-motion: reduce) {
  .live-dot::before,
  .live-dot::after {
    animation: none;
  }
  .live-dot::before {
    opacity: 0.4;
  }
}

/* --- Mobile: keep compact when nav collapses --- */
@media (max-width: 768px) {
  .nav-radar-link {
    padding: 8px 14px;
    width: fit-content;
  }
}
