/**
 * Everyday Voice™ — Universal Active Call Ringing Alert HUD
 * Engineered for Desktop, Laptop, and Massive TV Displays (4K/8K 10-Foot UI)
 * Strictly local, high contrast, zero external dependencies.
 */

:root {
  --call-hud-primary: #10b981;
  --call-hud-glow: rgba(16, 185, 129, 0.45);
  --call-hud-bg: rgba(10, 15, 29, 0.94);
  --call-hud-border: rgba(56, 189, 248, 0.3);
}

.everyday-call-hud-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999999;
  width: 390px;
  max-width: calc(100vw - 40px);
  background: var(--call-hud-bg);
  border: 1px solid var(--call-hud-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px var(--call-hud-glow);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border-radius: 18px;
  padding: 18px 20px;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: auto;
  user-select: none;
}

.everyday-call-hud-container.hud-active {
  transform: translateX(0);
  opacity: 1;
  animation: hudPulseRing 2.4s infinite ease-in-out;
}

@keyframes hudPulseRing {
  0% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.35);
  }
  50% {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 45px rgba(16, 185, 129, 0.65), 0 0 15px rgba(56, 189, 248, 0.4);
  }
  100% {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.35);
  }
}

.call-hud-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.call-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #34d399;
}

.call-hud-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.call-hud-source {
  font-size: 0.74rem;
  color: #94a3b8;
  font-weight: 600;
}

.call-hud-body {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.call-hud-avatar {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7 0%, #10b981 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.4);
  position: relative;
}

.call-hud-avatar-icon {
  animation: phoneRingWiggle 1.5s infinite ease-in-out;
}

@keyframes phoneRingWiggle {
  0%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-14deg); }
  30% { transform: rotate(12deg); }
  40% { transform: rotate(-12deg); }
  50% { transform: rotate(0deg); }
}

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

.call-hud-caller-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.call-hud-caller-number {
  font-size: 0.88rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: 2px;
}

.call-hud-target-dest {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.call-hud-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.call-hud-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
  text-decoration: none;
}

.call-hud-btn-answer {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.call-hud-btn-answer:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
}

.call-hud-btn-decline {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}

.call-hud-btn-decline:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #ffffff;
  border-color: rgba(244, 63, 94, 0.6);
  transform: translateY(-2px);
}

/* =========================================================================
   MASSIVE SCREEN SIZES & LARGE TV OPTIMIZATIONS (10-Foot UI Experience)
   ========================================================================= */

/* 2K Displays & Large 32"-43" Workstations (min-width: 2560px) */
@media (min-width: 2560px) {
  .everyday-call-hud-container {
    top: 32px;
    right: 32px;
    width: 520px;
    padding: 24px 28px;
    border-radius: 24px;
    border-width: 2px;
  }
  .call-hud-badge {
    padding: 6px 14px;
    font-size: 0.88rem;
    gap: 10px;
  }
  .call-hud-pulse-dot {
    width: 12px;
    height: 12px;
  }
  .call-hud-source {
    font-size: 0.95rem;
  }
  .call-hud-body {
    gap: 22px;
    margin-bottom: 24px;
  }
  .call-hud-avatar {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 20px;
    font-size: 2.2rem;
  }
  .call-hud-caller-name {
    font-size: 1.55rem;
  }
  .call-hud-caller-number {
    font-size: 1.15rem;
    margin-top: 4px;
  }
  .call-hud-target-dest {
    font-size: 1.05rem;
    margin-top: 6px;
  }
  .call-hud-actions {
    gap: 14px;
  }
  .call-hud-btn {
    height: 58px;
    border-radius: 16px;
    font-size: 1.15rem;
    gap: 12px;
  }
}

/* Massive 4K & 8K TVs (55", 65", 75", 85"+ Displays / min-width: 3840px) */
@media (min-width: 3840px) {
  .everyday-call-hud-container {
    top: 48px;
    right: 48px;
    width: 720px;
    padding: 34px 40px;
    border-radius: 32px;
    border-width: 3px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(16, 185, 129, 0.6);
  }
  .call-hud-badge {
    padding: 10px 20px;
    font-size: 1.25rem;
    gap: 14px;
    border-radius: 30px;
  }
  .call-hud-pulse-dot {
    width: 18px;
    height: 18px;
  }
  .call-hud-source {
    font-size: 1.35rem;
  }
  .call-hud-body {
    gap: 30px;
    margin-bottom: 34px;
  }
  .call-hud-avatar {
    width: 110px;
    height: 110px;
    min-width: 110px;
    border-radius: 28px;
    font-size: 3.2rem;
  }
  .call-hud-caller-name {
    font-size: 2.3rem;
  }
  .call-hud-caller-number {
    font-size: 1.7rem;
    margin-top: 6px;
  }
  .call-hud-target-dest {
    font-size: 1.45rem;
    margin-top: 8px;
  }
  .call-hud-actions {
    gap: 20px;
  }
  .call-hud-btn {
    height: 80px;
    border-radius: 22px;
    font-size: 1.6rem;
    gap: 16px;
  }
}
