/* ==========================================================================
   GRID CARD — Stretched link + Holographic hover
   ========================================================================== */

/* Outer card: positioning context */
.card {
  position: relative;
}

/* ── Stretched link ───────────────────────────────────────────────────────── */
/* Covers the full card. Button (.btn_cta) sits above via z-index: 1        */

.card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Button stays above stretched link */
.card .btn_cta {
  position: relative;
  z-index: 2;
}

/* ── Holographic custom props init ───────────────────────────────────────── */

.card .content {
  --mx: 0.5;
  --my: 0.5;
}

/* ── Shine spot (follows cursor) ─────────────────────────────────────────── */

.card .content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    circle at calc(var(--mx) * 100%) calc(var(--my) * 100%),
    rgba(255, 255, 255, 0.28) 0%,
    rgba(255, 255, 255, 0.04) 25%,
    transparent 40%
  );
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.3s ease;
}

/* ── Activate shine + button hover on card hover (pointer devices) ──────── */

@media (hover: hover) and (pointer: fine) {
  .card:hover .content::before {
    opacity: 1;
  }

  /* Trigger button ripple fill on whole-card hover */
  .card:hover .btn_cta:not(.disabled) .btn_cta-ripple span {
    border-radius: 0;
    transform: translateY(0);
    transition-duration: .5s, .9s;
  }

  /* Slide button text up on whole-card hover */
  .card:hover .btn_cta:not(.disabled) .btn_cta-title span {
    transform: translateY(-110%);
  }
}
