/* ─── ZEPHYY ONLINE STATUS BADGE ───

/* ── Dual-vortex glyph ── */
.zephyy-glyph { position: relative; flex-shrink: 0; width: 20px; height: 20px; }
.zephyy-glyph svg { display: block; width: 100%; height: 100%; }
@keyframes glyphSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.glyph-left {
  transform-origin: 11px 16px;
  animation: glyphSpin 12s linear infinite;
}
.glyph-right {
  transform-origin: 21px 16px;
  animation: glyphSpin 12s linear infinite reverse;
}
@keyframes glyphPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.glyph-pulse { animation: glyphPulse 2s ease-in-out infinite; }

/* ── Badge container ── */
.zephyy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 8px;
  border-radius: 999px;
  background: oklch(var(--space-oled) / 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid oklch(var(--accent-crypto) / 0.5);
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: var(--text-main);
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}
.zephyy-badge:hover {
  border-color: oklch(var(--accent-crypto) / 0.75);
  box-shadow: 0 0 20px oklch(var(--accent-crypto) / 0.15);
  transform: translateY(-1px);
}

/* ── Clickable link wrapper ── */
.zephyy-badge-link {
  display: inline-flex;
  text-decoration: none;
}

.zephyy-badge-link:hover .zephyy-badge {
  transform: translateY(-1px);
}

/* ── Indicator dot ── */
.zephyy-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.zephyy-dot.online {
  background: oklch(var(--brand-teal));
  box-shadow: 0 0 8px oklch(var(--brand-teal) / 0.6);
  animation: zephyy-pulse 2s ease-in-out infinite;
}

.zephyy-dot.offline {
  background: oklch(var(--neutral-400));
  box-shadow: none;
  animation: none;
}

@keyframes zephyy-pulse {
  0%, 100% {
    box-shadow: 0 0 4px oklch(var(--brand-teal) / 0.3);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 12px oklch(var(--brand-teal) / 0.7);
    transform: scale(1.2);
  }
}

/* ── Label ── */
.zephyy-label {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.zephyy-label span {
  opacity: 0.9;
}

.zephyy-label .zephyy-name {
  background: linear-gradient(135deg,
    oklch(var(--brand-teal)) 0%,
    oklch(var(--brand-purple)) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* ── Status text ── */
.zephyy-status {
  font-size: 0.7em;
  opacity: 0.6;
  margin-left: 2px;
}

/* ── Inline variant for hero sections ── */
.zephyy-badge.inline-hero {
  margin-bottom: 16px;
}

/* ── Center badge in its container ── */
.zephyy-badge-embed {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* ── Zephyy link in CTA (replaces inline styles) ── */
.zephyy-badge-embed + p {
  text-align: center;
  font-size: 0.9rem;
}

.zephyy-badge-embed + p a {
  color: oklch(var(--brand-teal));
  text-decoration: none;
}

.zephyy-badge-embed + p a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* ── Compact variant for tight spaces ── */
.zephyy-badge.compact {
  padding: 3px 10px 3px 5px;
  font-size: clamp(0.6rem, 1.4vw, 0.7rem);
  gap: 5px;
}

.zephyy-badge.compact .zephyy-dot {
  width: 5px;
  height: 5px;
}

.zephyy-badge.compact .zephyy-glyph {
  width: 14px;
  height: 14px;
}