/* voice-card.css — Voice Employee card ported from voice-employee-card.html
   downloaded handoff. Every class prefixed `vc-` and scoped under `.voice-card`
   so the design's generic `.card`/`.visual`/`.body`/`.stat`/`.cta` etc. don't
   collide with the dashboard demo or the other employee cards. */

.voice-card {
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #526174;
  --faded: #94a3b8;
  --line: rgba(37, 99, 235, 0.12);
  --line-strong: rgba(37, 99, 235, 0.2);
  --blue: #1d7af3;
  --blue-2: #0ea5e9;
  --blue-deep: #1555d9;
  --blue-soft: #eaf3ff;
  --blue-wash: #f2f7ff;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;

  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 70px -42px rgba(15, 23, 42, 0.32);
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1), box-shadow 0.35s;
}
.voice-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 42px 82px -40px rgba(29, 122, 243, 0.35);
}

.voice-card .vc-italic {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================================== */
/* VISUAL                                                          */
/* ============================================================== */
.vc-visual {
  position: relative;
  height: 264px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(29, 122, 243, 0.15), transparent 48%),
    linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
}
.vc-visual::before,
.vc-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(29, 122, 243, 0.16);
  animation: vcRing 3.8s ease-out infinite;
}
.vc-visual::before { width: 142px; height: 142px; }
.vc-visual::after  { width: 210px; height: 210px; animation-delay: 0.9s; }
@keyframes vcRing {
  0%   { transform: scale(0.65); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: scale(1.18); opacity: 0; }
}

@keyframes vcFloat {
  0%, 100% { transform: translateY(0)    rotate(-1deg); }
  50%      { transform: translateY(-6px) rotate(1deg); }
}

.vc-wave {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 138px;
  height: 112px;
  padding: 18px 22px;
  border-radius: 36px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow:
    0 24px 44px -24px rgba(29, 122, 243, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  animation: vcFloat 4.6s ease-in-out infinite;
}
.vc-wave span {
  width: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  animation: vcTalk 0.9s ease-in-out infinite;
}
.vc-wave span:nth-child(1) { height: 24px; animation-delay: 0s; }
.vc-wave span:nth-child(2) { height: 48px; animation-delay: .1s; }
.vc-wave span:nth-child(3) { height: 64px; animation-delay: .18s; }
.vc-wave span:nth-child(4) { height: 34px; animation-delay: .25s; }
.vc-wave span:nth-child(5) { height: 56px; animation-delay: .34s; }
.vc-wave span:nth-child(6) { height: 28px; animation-delay: .42s; }
@keyframes vcTalk {
  0%, 100% { transform: scaleY(0.62); opacity: 0.58; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

.vc-call-card {
  position: absolute;
  z-index: 4;
  right: 34px;
  top: 34px;
  width: 178px;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.36);
  animation: vcSlideCard 5.4s ease-in-out infinite;
}
@keyframes vcSlideCard {
  0%, 14%   { opacity: 0; transform: translateY(10px); }
  24%, 82%  { opacity: 1; transform: translateY(0); }
  100%      { opacity: 0; transform: translateY(-4px); }
}
.vc-call-card small {
  display: block;
  margin-bottom: 5px;
  color: var(--faded);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.vc-call-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -0.02em;
}
.vc-call-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.vc-badge {
  position: absolute;
  z-index: 5;
  left: 34px;
  top: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
  box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.46);
}
.vc-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* ============================================================== */
/* BODY                                                            */
/* ============================================================== */
.vc-body { padding: 24px 24px 22px; flex: 1; display: flex; flex-direction: column; }

.vc-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.voice-card .vc-head-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-family: inherit;
}
.vc-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-deep);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.vc-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: vcLivePulse 1.8s ease-in-out infinite;
}
@keyframes vcLivePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.42); }
  50%      { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.vc-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}
.vc-subtitle .vc-italic,
.vc-desc .vc-italic { color: var(--blue); }

.vc-desc {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 12.8px;
  line-height: 1.58;
}

.vc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.vc-stat .num {
  color: var(--blue-deep);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.vc-stat .num .small {
  color: var(--blue-2);
  font-size: 13px;
}
.vc-stat .lbl {
  margin-top: 7px;
  color: var(--faded);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.vc-handoffs {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.vc-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--blue-wash);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}
.vc-handoff strong {
  color: var(--ink);
  font-size: 12.5px;
}

.vc-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.vc-pill.booked { background: var(--green-soft);  color: var(--green); }
.vc-pill.warm   { background: var(--warn-soft);   color: var(--warn); }
.vc-pill.urgent { background: var(--danger-soft); color: var(--danger); }

.vc-integrations {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.vc-integrations-lbl {
  color: var(--faded);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vc-integrations-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.vc-int-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.vc-int {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
}
.vc-int svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.3;
}
.vc-int.wave-icon { gap: 2px; }
.vc-int.wave-icon i {
  display: block;
  width: 2px;
  border-radius: 999px;
  background: #fff;
  animation: vcTalk 0.9s ease-in-out infinite;
}
.vc-int.wave-icon i:nth-child(1) { height: 6px; }
.vc-int.wave-icon i:nth-child(2) { height: 12px; animation-delay: .12s; }
.vc-int.wave-icon i:nth-child(3) { height: 8px;  animation-delay: .24s; }
.vc-int.phone { background: var(--blue); }
.vc-int.cal   { background: #4f46e5; }
.vc-int.sms   { background: #0ea5e9; }

.vc-cta-row {
  display: flex;
  margin-top: auto;
  padding-top: 18px;
}
.vc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 0 10px 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 16px 28px -18px rgba(29, 122, 243, 0.8);
}
.voice-card:hover .vc-cta {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px -18px rgba(29, 122, 243, 0.9);
}
.vc-cta .vc-italic { color: rgba(255, 255, 255, 0.8); }
.vc-cta-arrow {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1);
}
.voice-card:hover .vc-cta-arrow { transform: translateX(2px); }

@media (max-width: 560px) {
  .vc-visual { height: 236px; }
  .vc-call-card { right: 18px; top: 26px; width: 158px; }
  .vc-badge { left: 18px; top: 28px; }
  .vc-stats { grid-template-columns: 1fr; }
  .vc-integrations { align-items: flex-start; flex-direction: column; }
  .vc-integrations-row { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-visual::before,
  .vc-visual::after,
  .vc-wave,
  .vc-wave span,
  .vc-call-card,
  .vc-live::before,
  .vc-int.wave-icon i {
    animation: none !important;
  }
  .vc-call-card { opacity: 1; transform: none; }
}
