/* call.css — Voice Call UI styles (standalone, does NOT touch chat-extra.css) */

/* ── Call Overlay (fullscreen) ── */
.call-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 9, 13, 0.95);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  animation: callFadeIn 0.3s ease;
}

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

.call-overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(100%, 360px);
  padding: 0 20px;
}

/* ── Avatar ── */
.call-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.call-avatar.ringing {
  animation: callPulse 1.5s ease-in-out infinite;
}

@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.5); }
  50% { box-shadow: 0 0 0 20px rgba(108, 92, 231, 0); }
}

.call-user-name {
  font-size: 22px;
  font-weight: 600;
}

.call-status {
  font-size: 14px;
  color: #a0a0b0;
}

.call-timer {
  font-size: 18px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  color: #a29bfe;
}

/* ── Call Buttons ── */
.call-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
  width: min(100%, 320px);
}

.call-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 22px;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.15s;
  padding: 0 8px;
  text-align: center;
}

.call-btn-icon {
  line-height: 1;
}

.call-btn-label {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

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

.call-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.call-btn:disabled:active {
  transform: none;
}

.call-btn-answer {
  background: #2ecc71;
}

.call-btn-answer:hover {
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.5);
}

.call-btn-end {
  background: #e74c3c;
}

.call-btn-end:hover {
  box-shadow: 0 0 16px rgba(231, 76, 60, 0.5);
}

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

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

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

.call-btn.is-unavailable {
  opacity: 0.75;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 140, 0.3);
}

.call-audio-hint {
  min-height: 18px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.4;
  color: #b7b9ca;
}

.call-audio-hint-warning {
  color: #f5c06a;
}

.call-audio-hint-success {
  color: #81e6a1;
}

.call-buttons-active {
  gap: 14px;
}

/* ── Active Call Bar (minimized, top bar) ── */
.active-call-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
}

.active-call-bar:hover {
  background: linear-gradient(90deg, #27ae60, #229954);
}

.active-call-bar .call-bar-timer {
  font-family: 'JetBrains Mono', monospace;
}

.active-call-bar .call-bar-end {
  background: #e74c3c;
  border: none;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}

/* ── Quick Reply (on incoming call) ── */
.call-quick-reply {
  margin-top: 20px;
}

.call-quick-reply-title {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.call-quick-reply-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.call-quick-reply-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ddd;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}

.call-quick-reply-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
  .call-overlay-content {
    width: min(100%, 320px);
    padding: 0 16px;
  }

  .call-buttons {
    gap: 12px;
    width: min(100%, 290px);
  }

  .call-btn {
    width: 80px;
    height: 80px;
  }
}

/* ── DM Header Call Button ── */
.call-header-phone-btn {
  background: none;
  border: none;
  color: #a29bfe;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.call-header-phone-btn:hover {
  background: rgba(162, 155, 254, 0.15);
  color: #6c5ce7;
}
