/* Online Counter Pill — animated */

.bl-online-pill {
  position: fixed;
  z-index: 9991;
  background: rgba(30, 30, 30, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
  animation: bl-pill-attract 4s ease-in-out infinite;
}

.bl-online-pill:hover {
  background: rgba(40, 40, 40, 0.95);
  border-color: rgba(227, 57, 34, 0.4);
  color: #fff;
  text-decoration: none;
  transform: scale(1.05);
}

/* Pulsing red dot */
.bl-online-dot {
  width: 8px;
  height: 8px;
  background: #e33922;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(227, 57, 34, 0.6);
  animation: bl-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes bl-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 4px rgba(227, 57, 34, 0.4); }
  50% { opacity: 0.4; box-shadow: 0 0 10px rgba(227, 57, 34, 0.8); }
}

/* Counter number — slight glow */
.bl-online-count {
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-shadow: 0 0 8px rgba(227, 57, 34, 0.3);
}

.bl-online-label {
  color: #bbb;
  font-weight: 500;
  font-size: 11px;
}

/* Attract animation — subtle bounce every 4s */
@keyframes bl-pill-attract {
  0%, 85%, 100% { transform: scale(1); }
  90% { transform: scale(1.08); }
  95% { transform: scale(0.97); }
}

/* Mobile: bottom-left above mobile nav */
.bl-online-pill {
  bottom: 90px;
  left: 16px;
  right: auto;
}

/* Desktop: below pills, right side */
@media (min-width: 769px) {
  .bl-online-pill {
    top: 108px;
    bottom: auto;
    left: auto;
    right: 24px;
  }
}

/* Admin bar offset */
@media (min-width: 783px) {
  body.admin-bar .bl-online-pill {
    top: 140px;
  }
}

/* ===== FOCUS INDICATORS ===== */
.bl-online-pill:focus-visible {
  outline: 2px solid #e33922;
  outline-offset: 2px;
}
