/* === VOICE ACTIVATION — Passive Listening Indicator === */

.voice-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
}

/* --- Pulsing Dot --- */
.voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Passive listening — amber pulse */
.voice-dot.passive {
  background: #d4af37;
  box-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
  animation: voice-dot-pulse 2.5s ease-in-out infinite;
}

/* Active listening — bright amber, faster pulse */
.voice-dot.active {
  background: #e8c84a;
  box-shadow: 0 0 8px rgba(232, 200, 74, 0.7);
  animation: voice-dot-pulse-active 1s ease-in-out infinite;
}

/* Disabled */
.voice-dot.off {
  background: var(--text-dim);
  box-shadow: none;
  animation: none;
}

@keyframes voice-dot-pulse {
  0%, 100% {
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.4);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    opacity: 0.7;
  }
}

@keyframes voice-dot-pulse-active {
  0%, 100% {
    box-shadow: 0 0 6px rgba(232, 200, 74, 0.5);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 16px rgba(232, 200, 74, 0.9);
    opacity: 0.85;
  }
}

/* --- Status Label --- */
.voice-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.3s ease;
}

.voice-dot.passive + .voice-label,
.voice-indicator:has(.voice-dot.passive) .voice-label {
  color: #d4af37;
}

.voice-dot.active + .voice-label,
.voice-indicator:has(.voice-dot.active) .voice-label {
  color: #e8c84a;
}

/* Unsupported fallback label */
.voice-unavailable {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-right: 6px;
}

/* --- Toggle Button --- */
.voice-toggle-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: #d4af37;
  font-family: inherit;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.voice-toggle-btn:hover {
  border-color: #d4af37;
  background: rgba(212, 175, 55, 0.1);
}

.voice-toggle-btn:active {
  transform: scale(0.95);
}

.voice-toggle-btn.voice-toggle-off {
  color: var(--text-dim);
  border-color: var(--text-dim);
}

.voice-toggle-btn.voice-toggle-off:hover {
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}

/* --- Mobile: smaller indicator --- */
@media (max-width: 480px) {
  .voice-label {
    display: none;
  }

  .voice-toggle-btn {
    font-size: 7px;
    padding: 1px 4px;
  }
}
