/* Helvia Call — overrides spécifiques calling */

/* ---------- Voice status pill in topbar ---------- */
.voice-status {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: 1px 8px; border-radius: 999px;
  font-size: .68rem; font-weight: 600;
  background: rgba(255,255,255,.15); color: #fff;
}
.voice-status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; opacity: .8;
}
.voice-ready    { background: rgba(16,185,129,.25); }
.voice-connecting { background: rgba(234,179,8,.25); }
.voice-in-call  { background: rgba(16,185,129,.4); }
.voice-ringing  { background: rgba(59,130,246,.3); animation: pulse 1.2s ease-in-out infinite; }
.voice-error    { background: rgba(239,68,68,.3); }
.voice-demo     { background: rgba(255,255,255,.15); }
.voice-offline  { background: rgba(255,255,255,.1); opacity: .7; }

@keyframes pulse { 50% { opacity: .55; } }

/* ---------- Dialer keypad (numeric digit + letters) ---------- */
.dialer-grid .dialer-key {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
  user-select: none; -webkit-user-select: none;
}
.dialer-digit {
  font-size: 1.75rem; font-weight: 600; line-height: 1;
}
.dialer-letters {
  font-size: .55rem; font-weight: 700;
  letter-spacing: .12em; color: var(--text-mute);
  text-transform: uppercase;
}

/* Bottom-nav variant à 2 onglets (au lieu de 4) */
.bottom-nav-2 {
  grid-template-columns: 1fr auto 1fr !important;
}
.bottom-nav-2 .nav-tab {
  padding: .55rem .9rem;
}

/* ---------- Active call bar ---------- */
.active-call-bar {
  position: fixed; left: 0; right: 0;
  top: env(safe-area-inset-top, 0);
  z-index: 80;
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .9rem;
  background: linear-gradient(135deg, var(--helvia-light) 0%, var(--helvia) 55%, var(--helvia-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16,185,129,.35);
}
.acb-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.1s ease-in-out infinite;
  flex-shrink: 0;
}
.acb-meta { flex: 1; min-width: 0; }
.acb-num { font-size: .85rem; font-weight: 700; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acb-time { font-size: .7rem; opacity: .85; font-variant-numeric: tabular-nums; }
.acb-btn {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.22); border: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer;
  transition: background .15s;
}
.acb-btn:hover { background: rgba(255,255,255,.32); }
.acb-btn.on { background: rgba(255,255,255,.5); }
.acb-hangup {
  background: var(--danger);
  transform: rotate(135deg);
}
.acb-hangup svg { transform: rotate(-135deg); }
.acb-hangup:hover { background: #dc2626; }

/* ---------- Incoming call overlay ---------- */
.call-overlay {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.call-overlay-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top, var(--helvia-light) 0%, var(--helvia) 45%, var(--helvia-deeper) 100%);
}
.call-overlay-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem; max-width: 360px; width: 100%;
  color: #fff;
}
.call-overlay-pulse {
  position: absolute; top: 30px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  animation: incomingPulse 1.4s ease-out infinite;
}
@keyframes incomingPulse {
  0%   { transform: scale(.85); opacity: .8; }
  100% { transform: scale(1.5);  opacity: 0; }
}
.call-overlay-avatar {
  position: relative;
  width: 110px; height: 110px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 4px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: #fff;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.call-overlay-label { font-size: .9rem; opacity: .9; }
.call-overlay-num {
  font-size: 1.5rem; font-weight: 800; margin-top: .25rem;
  letter-spacing: -.01em;
}
.call-overlay-actions {
  margin-top: 2.5rem;
  display: flex; gap: 4rem;
}
.call-btn {
  width: 68px; height: 68px; border-radius: 50%;
  border: 0; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .15s;
}
.call-btn:active { transform: scale(.92); }
.call-btn-reject {
  background: var(--danger);
  transform: rotate(135deg);
}
.call-btn-reject svg { transform: rotate(-135deg); }
.call-btn-accept {
  background: #fff;
  color: var(--helvia-dark);
  animation: acceptPulse 1.3s ease-in-out infinite;
}
@keyframes acceptPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 0 rgba(255,255,255,.5); }
  50%      { box-shadow: 0 8px 24px rgba(0,0,0,.25), 0 0 0 14px rgba(255,255,255,0); }
}

/* Décale le contenu sous la barre d'appel active */
.app-root:has(.active-call-bar) .shell .topbar {
  margin-top: 46px;
}

/* Version label sous le logo de l'ecran de login */
.auth-splash-version {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  margin-top: -8px;
  margin-bottom: 18px;
}
