/* ═══════════════════════════════════════════════════
   IIJOBS Voice Call UI — Messenger-inspired
   2026-04-04
   ═══════════════════════════════════════════════════ */

.call-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-family: inherit;
  animation: callFadeIn .3s ease;
}

@keyframes callFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.call-overlay[hidden] {
  display: none;
}

.call-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #0084ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 0 4px rgba(0, 132, 255, .3);
}

.call-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.call-avatar--pulse {
  animation: callAvatarPulse 1.4s ease-in-out infinite;
}

@keyframes callAvatarPulse {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(0, 132, 255, .3), 0 0 0 0 rgba(0, 132, 255, .6);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(0, 132, 255, .3), 0 0 0 20px rgba(0, 132, 255, 0);
  }
}

.call-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.call-status {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 40px;
}

.call-status--ringing {
  animation: callPulse 1.5s ease infinite;
}

@keyframes callPulse {
  0%, 100% { opacity: .7; }
  50% { opacity: 1; }
}

.call-timer {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, .9);
}

.call-actions {
  display: flex;
  gap: 32px;
  align-items: center;
}

.call-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .15s, background .15s;
}

.call-btn:active {
  transform: scale(.92);
}

.call-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.call-btn--answer {
  background: #44b700;
}

.call-btn--answer:hover {
  background: #3aa000;
}

.call-btn--reject,
.call-btn--end {
  background: #ff3b30;
}

.call-btn--reject:hover,
.call-btn--end:hover {
  background: #e0322a;
}

.call-btn--mute,
.call-btn--speaker {
  background: rgba(255, 255, 255, .15);
}

.call-btn--mute:hover,
.call-btn--speaker:hover {
  background: rgba(255, 255, 255, .25);
}

.call-btn--mute.active,
.call-btn--speaker.active {
  background: #fff;
}

.call-btn--mute.active svg,
.call-btn--speaker.active svg {
  fill: #050505;
}

.call-btn--cancel {
  background: rgba(255, 255, 255, .15);
}

.call-btn--cancel:hover {
  background: rgba(255, 255, 255, .25);
}

.call-btn-label {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  text-align: center;
  margin-top: 8px;
}

.call-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Incoming call notification banner (non-fullscreen) */
.call-banner {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9998;
  background: #1c1c1e;
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: 90vw;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  animation: callSlideDown .3s ease;
  color: #fff;
}

@keyframes callSlideDown {
  from { transform: translateX(-50%) translateY(-100%); opacity: 0; }
  to { transform: translateX(-50%) translateY(0); opacity: 1; }
}

.call-banner[hidden] {
  display: none;
}

.call-banner__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0084ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.call-banner__info {
  flex: 1;
  min-width: 0;
}

.call-banner__name {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.call-banner__label {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.call-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.call-banner__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.call-banner__btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.call-banner__btn--answer {
  background: #44b700;
}

.call-banner__btn--reject {
  background: #ff3b30;
}
