/* ============================================================
   VOICE AGENT LAUNCHER — floating bottom-right button
   (the full agent UI lives in css/voice-agent.css, loaded lazily)
============================================================ */

.va-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 0 0 rgba(var(--purple-rgb), 0.35);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease;
  animation: va-launcher-in 0.6s var(--ease-out) 1s both;
}
.va-launcher:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 0 32px rgba(var(--purple-rgb), 0.35);
}
.va-launcher:active { transform: scale(0.97); }
.va-launcher.is-loading { cursor: progress; opacity: 0.8; }

.va-launcher__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.va-launcher__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-card-2);
}
.va-launcher__avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  animation: va-launcher-ring 2.4s ease-out infinite;
}
.va-launcher__dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg-card);
}

@keyframes va-launcher-ring {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes va-launcher-in {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: none;             opacity: 1; }
}

/* Mobile: collapse to a round avatar button */
@media (max-width: 600px) {
  .va-launcher {
    right: 16px;
    bottom: 16px;
    padding: 5px;
  }
  .va-launcher__avatar { width: 48px; height: 48px; }
  .va-launcher__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .va-launcher,
  .va-launcher__avatar::after { animation: none; }
}

@media print { .va-launcher { display: none; } }
