/* ═══════════════════════════════════════════════════════════
   VOICE ACTIVITY BANNER — Sidebar indicator
   Shows who's in the voice room at the top of the topic list
   ═══════════════════════════════════════════════════════════ */

.voice-activity-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 8px 10px 4px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.18);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: voiceBannerSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Inter', system-ui, sans-serif;
  flex-shrink: 0;
}

.voice-activity-banner.visible {
  display: flex;
}

.voice-activity-banner:hover {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(6, 182, 212, 0.12));
  border-color: rgba(124, 58, 237, 0.28);
  transform: translateY(-1px);
}

@keyframes voiceBannerSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
    max-height: 0;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    max-height: 80px;
  }
}

/* ─── Pulsing mic icon ─── */
.voice-activity-icon {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: #a78bfa;
}

.voice-activity-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.3);
  animation: voiceIconPulse 2s ease-in-out infinite;
}

@keyframes voiceIconPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0.2; }
}

/* ─── Text info ─── */
.voice-activity-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-activity-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-main, #e2e8f0);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.voice-activity-names {
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Avatar stack ─── */
.voice-activity-avatars {
  display: flex;
  flex-shrink: 0;
}

.voice-activity-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-primary, #0f0c29);
  margin-left: -6px;
  background: #1e293b;
}

.voice-activity-avatar:first-child {
  margin-left: 0;
}

/* ─── Join button ─── */
.voice-activity-join {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.voice-activity-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}
