/* effects.css — v2 | 3 effects: shimmer, spotlight, kpi counter */

/* ── 1. Hero CTA — shimmer sweep ─────────────────────────────────────────── */
.hero-cta-btn {
  position: relative;
  overflow: hidden;
}
.hero-cta-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: fx-shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}
@keyframes fx-shimmer {
  0%, 35% { left: -60%; }
  65%, 100% { left: 150%; }
}

/* ── 2. Doctor card — spotlight glow (via CSS vars set by JS) ────────────── */
.doctor-card {
  position: relative;
}
.doctor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: radial-gradient(
    circle at var(--fx-mx, 50%) var(--fx-my, 50%),
    rgba(124,58,237,.14) 0%,
    transparent 62%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 2;
}
.doctor-card:hover::before {
  opacity: 1;
}
.doctor-card:hover {
  box-shadow: 0 16px 44px rgba(109,40,217,.22), 0 4px 12px rgba(0,0,0,.08);
}

/* ── 3. KPI number — pop on counter finish ───────────────────────────────── */
@keyframes fx-num-pop {
  0%   { transform: scale(.88); }
  60%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.kpi-number.fx-pop {
  animation: fx-num-pop 0.4s cubic-bezier(.34,1.56,.64,1) forwards;
}
