/* voice.css — input bar, mic arc reactor */

.input-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(10,14,26,0.97), rgba(10,14,26,0.85));
  border-top: 1px solid var(--border);
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 90;
  backdrop-filter: blur(8px);
}

.input-row {
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 8px;
  align-items: end;
}

#model-override {
  height: 44px;
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 8px;
  font-size: 14px;
  letter-spacing: 0.04em;
}

#text-input {
  min-height: 44px; max-height: 160px;
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  resize: none;
  font-size: 16px; line-height: 1.4;
  outline: none;
}
#text-input:focus { border-color: var(--gold); }

.submit-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #1a1100; font-size: 18px; font-weight: 700;
}

/* MIC ARC REACTOR */
.mic-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #1a2440 0%, #0a0e1a 70%);
  border: 1px solid var(--border-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.12s;
}
.mic-btn:active { transform: scale(0.96); }

.arc-reactor {
  width: 36px; height: 36px;
  border-radius: 50%;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(245,166,35,0.15) 0%, rgba(245,166,35,0) 70%);
}
.arc-reactor::before, .arc-reactor::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--gold);
  opacity: 0.6;
}
.arc-reactor::after {
  inset: 6px;
  border-color: var(--gold-dim);
  opacity: 0.85;
}
.arc-reactor .core {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
}

.mic-btn.listening .arc-reactor::before {
  animation: arcSpin 1.6s linear infinite;
  border-style: dashed;
}
.mic-btn.listening .arc-reactor::after {
  animation: arcPulse 1s ease-in-out infinite;
}
.mic-btn.listening .core {
  animation: corePulse 0.8s ease-in-out infinite;
}
@keyframes arcSpin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes arcPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.15); opacity: 0.4; }
}
@keyframes corePulse {
  0%, 100% { box-shadow: 0 0 8px var(--gold-glow); }
  50% { box-shadow: 0 0 22px var(--gold), 0 0 40px var(--gold-glow); }
}

.input-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; font-size: 12px; color: var(--text-dim);
  padding: 0 4px;
}
.toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.toggle input { accent-color: var(--gold); }
.status-line { color: var(--text-mute); font-style: italic; }
