/* =====================================================
   HERO-CALL.CSS — Fase 5 (reference HERO_ANIMATION_v2_1)
   Phone-wrap · Call-screen · Nora-avatar · Waveform · Transcript
   ===================================================== */

.phone-wrap {
  background: linear-gradient(135deg, #F5FBFB 0%, #FFFFFF 100%);
  border-radius: 16px;
  padding: 24px;
  border: 0.5px solid #E2E8F0;
  max-width: 420px;
  margin: 0 auto;
}

.phone-call {
  max-width: 360px;
  margin: 0 auto;
  background: #134E4A;
  border-radius: 28px;
  padding: 16px 12px 20px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.call-screen {
  background: linear-gradient(180deg, #042F2E 0%, #134E4A 100%);
  border-radius: 18px;
  padding: 22px 18px 18px;
  height: 520px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Status-linje */
.call-status {
  text-align: center;
  margin-bottom: 4px;
}
.call-status-label {
  font-size: 10px;
  color: #5EEAD4;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.call-status-label::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  animation: hc-pulse-dot 1.6s infinite;
}
@keyframes hc-pulse-dot {
  0%   { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(16, 185, 129, 0);   }
}

.call-business {
  font-size: 13px;
  color: #CCFBF1;
  margin: 0;
  transition: opacity 0.4s;
}

/* Branche-tag — scopes inside call-screen to avoid conflict with sections.css */
.call-screen .industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(252, 211, 77, 0.15);
  color: #FCD34D;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 11px;
  border-radius: 12px;
  margin: 10px auto 14px;
  align-self: center;
  transition: opacity 0.4s;
}

/* Nora-avatar */
.nora-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.nora-avatar {
  width: 64px;
  height: 64px;
  position: relative;
  flex-shrink: 0;
}
.nora-avatar svg { width: 100%; height: 100%; }

.nora-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid #14B8A6;
  border-radius: 50%;
  opacity: 0;
  animation: hc-ring-pulse 2s ease-out infinite;
}
.nora-ring:nth-child(2) { animation-delay: 0.6s; }
.nora-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes hc-ring-pulse {
  0%   { opacity: 0.5; transform: scale(0.95); }
  100% { opacity: 0;   transform: scale(1.25); }
}

.nora-info { text-align: left; }
.nora-name {
  font-size: 14px;
  font-weight: 600;
  color: #F0FDFA;
  margin: 0 0 1px;
}
.nora-role {
  font-size: 11px;
  color: #5EEAD4;
  margin: 0;
}

/* Live timer */
.timer-display {
  text-align: center;
  font-size: 22px;
  font-weight: 300;
  color: #F0FDFA;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
}

/* Waveform */
.waveform-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 28px;
  margin-bottom: 14px;
}
.wave-bar {
  width: 3px;
  background: #14B8A6;
  border-radius: 2px;
  animation: hc-wave-dance 1.2s ease-in-out infinite;
}
.wave-bar:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.wave-bar:nth-child(2)  { height: 60%; animation-delay: 0.1s; }
.wave-bar:nth-child(3)  { height: 100%; animation-delay: 0.2s; background: #5EEAD4; }
.wave-bar:nth-child(4)  { height: 80%; animation-delay: 0.3s; }
.wave-bar:nth-child(5)  { height: 45%; animation-delay: 0.4s; }
.wave-bar:nth-child(6)  { height: 70%; animation-delay: 0.5s; background: #5EEAD4; }
.wave-bar:nth-child(7)  { height: 90%; animation-delay: 0.6s; }
.wave-bar:nth-child(8)  { height: 35%; animation-delay: 0.7s; }
.wave-bar:nth-child(9)  { height: 60%; animation-delay: 0.8s; background: #5EEAD4; }
.wave-bar:nth-child(10) { height: 50%; animation-delay: 0.9s; }
.wave-bar:nth-child(11) { height: 75%; animation-delay: 1.0s; }
.wave-bar:nth-child(12) { height: 25%; animation-delay: 1.1s; }
@keyframes hc-wave-dance {
  0%, 100% { transform: scaleY(0.3); }
  50%       { transform: scaleY(1);   }
}

/* Transcript-stack */
.transcript-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  min-height: 0;
}
.transcript-line {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  color: #F0FDFA;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
  font-style: italic;
}
.transcript-line.show   { opacity: 1;    transform: translateY(0); }
.transcript-line.faded  { opacity: 0.35; }
.transcript-line.nora   { background: rgba(20, 184, 166, 0.13); border-left: 2.5px solid #14B8A6; }
.transcript-line.caller { background: rgba(252, 211, 77, 0.10);  border-left: 2.5px solid #FCD34D; }

.transcript-speaker {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-style: normal;
  font-weight: 600;
  margin-bottom: 2px;
}
.transcript-line.nora   .transcript-speaker { color: #5EEAD4; }
.transcript-line.caller .transcript-speaker { color: #FCD34D; }

/* Mobil */
@media (max-width: 480px) {
  .call-screen { height: 460px; padding: 18px 14px 14px; }
  .phone-call  { max-width: 320px; }
}

/* prefers-reduced-motion — scoped til call-screen for ikke at bryde side-animationer */
@media (prefers-reduced-motion: reduce) {
  .call-screen *, .call-screen *::before, .call-screen *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
