/* Ses küresi: karşılama ekranında nefes alır, sesli sohbette dinleme / düşünme / konuşma durumlarını gösterir. */
.orb { --orb: 120px; position: relative; flex: none; width: var(--orb); height: var(--orb); border-radius: 50%; }
.orb-lg { --orb: 124px; }
.orb-core {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.85) 0, rgba(255, 255, 255, 0) 34%),
    conic-gradient(from 200deg, var(--accent), var(--cyan), var(--gold) 52%, var(--rooster) 76%, var(--accent));
  box-shadow:
    0 0 calc(var(--orb) * 0.35) color-mix(in srgb, var(--accent) 42%, transparent),
    inset 0 calc(var(--orb) * -0.06) calc(var(--orb) * 0.14) rgba(0, 0, 0, 0.22);
  animation: orb-breathe 5s ease-in-out infinite;
}
.orb::before, .orb::after { content: ''; position: absolute; inset: 4%; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 50%; opacity: 0; }
.orb[data-state='listening']::before { animation: orb-ring 2.2s ease-out infinite; }
.orb[data-state='listening']::after { animation: orb-ring 2.2s ease-out 1.1s infinite; }
.orb[data-state='thinking'] .orb-core { animation: orb-breathe 1.6s ease-in-out infinite, orb-hue 3s linear infinite; }
.orb[data-state='speaking'] .orb-core { animation: orb-talk 0.85s ease-in-out infinite; }
.orb[data-state='error'] .orb-core { filter: grayscale(0.8); }
@keyframes orb-breathe { 0%, 100% { transform: scale(0.95); } 50% { transform: scale(1.05); } }
@keyframes orb-talk { 0%, 100% { transform: scale(0.96); } 25% { transform: scale(1.09); } 50% { transform: scale(0.99); } 75% { transform: scale(1.13); } }
@keyframes orb-hue { to { filter: hue-rotate(360deg); } }
@keyframes orb-ring { 0% { opacity: 0.7; transform: scale(0.9); } 100% { opacity: 0; transform: scale(1.7); } }

/* Tam ekran sesli sohbet */
.voice {
  position: fixed;
  inset: 0;
  z-index: var(--z-voice);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 24px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(28px) saturate(1.3);
  animation: voice-in 0.4s var(--ease);
}
@keyframes voice-in { from { opacity: 0; } }
body.voice-open { overflow: hidden; }
.voice .orb { --orb: min(260px, 58vw); cursor: pointer; }
.voice-state { margin: 0; color: var(--ink-2); font-size: 18px; text-align: center; }
.voice-text { width: min(680px, 100%); min-height: 84px; max-height: 30vh; margin: 0; overflow: auto; font-size: clamp(20px, 3.6vw, 28px); line-height: 1.4; letter-spacing: -0.01em; text-align: center; }
.voice-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top));
  right: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
}
.voice-close:hover { background: var(--hover); }
