﻿
/* ============================================================
   SESLİ ASİSTAN — sağ alt düğme + açılır panel
   ============================================================ */
.voice-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 9px;
  padding: 0; width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); cursor: pointer;
  transition: width .22s ease, background .18s ease, border-color .18s ease;
}
.voice-fab:hover { background: var(--surface-3); border-color: var(--brand-line); }
.voice-fab.open { width: 128px; border-radius: 27px; background: var(--brand-soft); border-color: var(--brand-line); }
.vf-ico { font-size: 21px; line-height: 1; }
.vf-tip { display: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.voice-fab.open .vf-tip { display: inline; }

.voice-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 91;
  width: 356px; max-width: calc(100vw - 32px);
  max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
}
.voice-panel[hidden] { display: none; }

.vl-card {
  display: flex; flex-direction: column; max-height: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
  overflow: hidden;
}
.vl-card.on { border-color: var(--brand-line); }

.vl-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.vl-head b { font-size: 13.5px; font-weight: 650; }
.vl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-4); flex-shrink: 0; }
.vl-dot.live { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.vl-state { margin-left: auto; font-size: 11.5px; color: var(--ink-3); text-align: right; }

.vl-body { display: flex; flex-direction: column; min-height: 0; }
.vl-lines {
  flex: 1 1 auto; min-height: 130px; max-height: 330px; overflow-y: auto;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 9px;
}
.vl-empty { font-size: 12.5px; color: var(--ink-3); text-align: center; padding: 22px 8px; }
.vl-line { display: flex; flex-direction: column; gap: 2px; }
.vl-who { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: var(--ink-4); text-transform: uppercase; }
.vl-text { font-size: 13px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.vl-at { font-size: 10.5px; color: var(--ink-4); }
.vl-line.user .vl-who { color: var(--brand-2); }
.vl-line.user .vl-text { color: var(--ink-2); }
.vl-line.note { padding: 6px 9px; border-left: 2px solid var(--brand-line); background: var(--brand-soft); border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.vl-line.note .vl-text { font-size: 11.5px; color: var(--ink-2); }

.vl-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-top: 1px solid var(--line); background: var(--surface-2);
}
.vl-mic {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink);
  font-size: 16px; cursor: pointer; transition: background .18s ease, border-color .18s ease;
}
.vl-mic:hover { border-color: var(--brand-line); }
.vl-mic.on { background: var(--bad-soft); border-color: var(--bad); }
.vl-input {
  flex: 1 1 auto; min-width: 0; padding: 9px 11px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--ink); font-size: 13px; font-family: inherit;
}
.vl-input:focus { outline: none; border-color: var(--brand-line); }
.vl-input:disabled { opacity: .55; }
.vl-send {
  padding: 9px 12px; border-radius: var(--r-sm); flex-shrink: 0;
  border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink);
  font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.vl-send:disabled { opacity: .5; cursor: default; }
.vl-clear { background: none; border: none; color: var(--ink-4); font-size: 11.5px; cursor: pointer; }
.vl-clear:hover { color: var(--ink-2); }

@media (max-width: 520px) {
  .voice-fab { right: 14px; bottom: 14px; width: 48px; height: 48px; }
  .voice-panel { right: 10px; left: 10px; width: auto; bottom: 72px; }
  .vl-lines { max-height: 240px; }
}
