/* ========== call.css ==========
   Call overlay (fullscreen and minimized modes)
   ============================== */

/* Call overlay */
#call-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: #1a1210;
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 70px 30px 55px;
  transition: none;
}
#call-overlay.active { display: flex; }
#call-overlay.minimized {
  inset: auto;
  top: 12px; left: 12px;
  width: 190px;
  border-radius: 18px;
  background: rgba(30,20,16,0.96);
  padding: 10px 14px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#call-overlay.minimized.dragging { cursor: grabbing; }
#call-overlay.minimized .call-top,
#call-overlay.minimized .call-controls { display: none; }
#call-overlay.minimized #call-mini-bar { display: flex; }
#call-mini-bar {
  display: none;
  align-items: center;
  gap: 10px;
  flex: 1;
}
#call-mini-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bubble-user);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; font-weight: 500; flex-shrink: 0;
}
#call-mini-info { display: flex; flex-direction: column; gap: 1px; }
#call-mini-name { color: #fff; font-size: 13px; font-weight: 600; }
#call-mini-timer { color: rgba(255,255,255,0.5); font-size: 11px; font-variant-numeric: tabular-nums; }
#call-mini-end {
  width: 36px; height: 36px; border-radius: 50%;
  background: #c0392b; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
#call-mini-end svg { width: 16px; height: 16px; }
#call-minimize-btn {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#call-overlay.minimized #call-minimize-btn { display: none; }
#call-minimize-btn svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); }

.call-top { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.call-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bubble-user);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: #fff; font-weight: 500;
  box-shadow: 0 0 0 12px rgba(196,165,138,0.12);
}

.call-name { color: #fff; font-size: 22px; font-weight: 600; letter-spacing: 0.5px; }
.call-status { color: rgba(255,255,255,0.45); font-size: 13px; }
.call-timer { color: rgba(255,255,255,0.55); font-size: 15px; font-variant-numeric: tabular-nums; }

.call-controls { display: flex; flex-direction: column; align-items: center; gap: 28px; }

#call-mic-btn {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
#call-mic-btn.speaking { background: var(--mic-active); animation: pulse 1s ease-in-out infinite; }
#call-mic-btn.muted { background: rgba(255,255,255,0.06); opacity: 0.55; }
#call-mic-btn svg { width: 30px; height: 30px; stroke: #fff; }

#call-end-btn {
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #c0392b;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#call-end-btn svg { width: 26px; height: 26px; }

.call-hint { color: rgba(255,255,255,0.25); font-size: 12px; }
.call-secondary-row { display: flex; justify-content: center; gap: 20px; margin-bottom: 4px; }
.call-secondary-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.call-secondary-btn.active { background: rgba(255,255,255,0.35); }
.call-secondary-btn svg { width: 20px; height: 20px; stroke: #fff; }
.call-tts-label { font-size: 11px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }

.call-btn-header {
  margin-left: auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.call-btn-header svg { width: 17px; height: 17px; stroke: var(--text-muted); }
