/* =============================================================================
 * Analytics Pro gating
 * -----------------------------------------------------------------------------
 * Blurred chart bodies and "Upgrade to Pro" overlays for the chart cards
 * (Views vs Applications, Hiring Funnel, Application Velocity, Match Score
 * Distribution, Candidate Pipeline Flow) plus the full-drawer paywall used by
 * the Applicant Explorer and Candidate Tier Explorer.
 * =============================================================================
 */

.an-pro-locked {
  position: relative;
  isolation: isolate;
}

.an-pro-blurred {
  filter: blur(6px) saturate(0.9);
  pointer-events: none;
  user-select: none;
  opacity: 0.78;
  transition: filter 0.3s ease;
}

.an-pro-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 255, 255, 0.72) 100%
  );
  z-index: 25;
  animation: anProOverlayIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes anProOverlayIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.an-pro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  max-width: 360px;
  padding: 1.5rem 1.75rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 1rem;
  box-shadow:
    0 18px 40px -16px rgba(15, 23, 42, 0.18),
    0 4px 14px -6px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.an-pro-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(99, 234, 113, 0.0) 0%,
    rgba(99, 234, 113, 0.85) 35%,
    rgba(99, 234, 113, 0.85) 65%,
    rgba(99, 234, 113, 0.0) 100%
  );
}

.an-pro-card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-hover)
  );
  color: var(--color-brand-green-ink-3d);
  font-size: 1.1rem;
  box-shadow: 0 6px 16px -6px rgba(var(--primary-color-rgb), 0.4);
}

.an-pro-card-ico iconify-icon {
  font-size: 18px;
}

.an-pro-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  background: rgba(99, 234, 113, 0.12);
  color: #1f8a3a;
  border: 1px solid rgba(99, 234, 113, 0.4);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.an-pro-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.an-pro-card-sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.5;
  max-width: 300px;
}

.an-pro-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.25rem;
  padding: 0.6rem 1.05rem;
  border: none;
  border-radius: 0.625rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-hover)
  );
  color: var(--color-brand-green-ink-3d);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow:
    0 8px 22px -10px rgba(var(--primary-color-rgb), 0.55),
    0 1px 0 rgba(var(--white-color-rgb), 0.4) inset;
}

.an-pro-card-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    var(--color-brand-green-56e066),
    var(--color-brand-green-45ce55)
  );
  box-shadow:
    0 12px 28px -10px rgba(var(--primary-color-rgb), 0.65),
    0 1px 0 rgba(var(--white-color-rgb), 0.4) inset;
}

.an-pro-card-cta:active {
  transform: translateY(0);
}

.an-pro-card-cta iconify-icon {
  font-size: 14px;
  color: var(--color-brand-green-ink-3d);
}

/* Pin the overlay's CTA card vertically when the chart area is tall (e.g. the
 * Sankey / Box plot) so the prompt sits in the visible viewport and not
 * scrolled below the fold. */
.an-pro-overlay--pinned {
  align-items: flex-start;
  padding-top: 4.5rem;
}

/* ---------------------------------------------------------------------------
 * Drawer paywall
 * Used inside the Applicant Explorer / Candidate Tier Explorer drawers when
 * the user opens them on the Free plan. Replaces the search/tabs/list with a
 * single, focused upgrade prompt.
 * -------------------------------------------------------------------------*/

.an-drawer-pro {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.75rem 2.5rem;
  overflow-y: auto;
  position: relative;
}

.an-drawer-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(99, 234, 113, 0.12) 0%,
      rgba(99, 234, 113, 0) 40%
    ),
    radial-gradient(
      circle at 82% 88%,
      rgba(99, 234, 113, 0.08) 0%,
      rgba(99, 234, 113, 0) 45%
    );
  pointer-events: none;
  z-index: 0;
}

.an-drawer-pro-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  max-width: 360px;
}

.an-drawer-pro-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.875rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-hover)
  );
  color: var(--color-brand-green-ink-3d);
  box-shadow: 0 14px 32px -14px rgba(var(--primary-color-rgb), 0.55);
  position: relative;
}

.an-drawer-pro-ico iconify-icon {
  font-size: 24px;
}

.an-drawer-pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(99, 234, 113, 0.12);
  color: #1f8a3a;
  border: 1px solid rgba(99, 234, 113, 0.4);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.an-drawer-pro-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.an-drawer-pro-sub {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.55;
}

.an-drawer-pro-bullets {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0.25rem;
  padding: 0.875rem 1rem;
  width: 100%;
  background: rgba(248, 249, 250, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0.75rem;
  text-align: left;
}

.an-drawer-pro-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #1a1a2e;
  line-height: 1.4;
}

.an-drawer-pro-bullet iconify-icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #1f8a3a;
  font-size: 14px;
}

.an-drawer-pro-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.7rem 1.25rem;
  border: none;
  border-radius: 0.7rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-color-hover)
  );
  color: var(--color-brand-green-ink-3d);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  box-shadow:
    0 10px 24px -10px rgba(var(--primary-color-rgb), 0.55),
    0 1px 0 rgba(var(--white-color-rgb), 0.4) inset;
}

.an-drawer-pro-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(
    135deg,
    var(--color-brand-green-56e066),
    var(--color-brand-green-45ce55)
  );
  box-shadow:
    0 14px 30px -10px rgba(var(--primary-color-rgb), 0.65),
    0 1px 0 rgba(var(--white-color-rgb), 0.4) inset;
}

.an-drawer-pro-cta iconify-icon {
  font-size: 16px;
  color: var(--color-brand-green-ink-3d);
}
