/* button-animations.css — Premium micro-interactions for all buttons */

/* ─── Click ripple wave (JS-attached) ────────────────────────────────────── */
.btn-ripple {
  position: relative;
  overflow: hidden !important;
}
@keyframes btn-ripple-expand {
  from { transform: scale(0); opacity: 0.45; }
  to   { transform: scale(5); opacity: 0; }
}
.btn-ripple-wave {
  position: absolute;
  width: 48px; height: 48px;
  margin-left: -24px; margin-top: -24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.30);
  pointer-events: none;
  z-index: 99;
  animation: btn-ripple-expand 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
/* Darker ripple for light-bg buttons (nav-cta is white bg) */
.btn-ripple-dark .btn-ripple-wave {
  background: rgba(0, 0, 0, 0.12);
}

/* ─── btn-primary ─────────────────────────────────────────────────────────── */
/* Spring press */
.btn-primary {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.18s ease !important;
}
.btn-primary:active {
  transform: scale(0.95) translateY(1px) !important;
  transition: transform 0.06s ease !important;
}
/* Arrow slides right on hover */
.btn-primary span {
  display: inline-block;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-primary:hover span {
  transform: translateX(4px);
}

/* ─── btn-ghost ───────────────────────────────────────────────────────────── */
.btn-ghost {
  transition:
    background 0.18s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.btn-ghost:hover {
  border-color: color-mix(in oklab, var(--accent), transparent 55%) !important;
  box-shadow: 0 4px 20px color-mix(in oklab, var(--accent), transparent 86%) !important;
  transform: translateY(-1px);
}
.btn-ghost:active {
  transform: scale(0.96) translateY(0) !important;
  transition: transform 0.06s ease !important;
}

/* ─── nav-cta ─────────────────────────────────────────────────────────────── */
.nav-cta {
  transition:
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
}
.nav-cta:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.nav-cta:active {
  transform: scale(0.94) !important;
  transition: transform 0.06s ease !important;
}

/* ─── pkg-cta ─────────────────────────────────────────────────────────────── */
.pkg-cta {
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease !important;
}
.pkg-cta:hover {
  transform: translateX(3px) !important;
  box-shadow: 2px 4px 16px color-mix(in oklab, var(--accent), transparent 88%) !important;
}
.pkg-cta:active {
  transform: scale(0.96) translateX(0) !important;
  transition: transform 0.06s ease !important;
}
/* Featured pkg-cta pops */
.pkg-card.featured .pkg-cta {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18) !important;
}
.pkg-card.featured .pkg-cta:hover {
  transform: translateX(3px) !important;
  box-shadow: 4px 6px 24px rgba(0, 0, 0, 0.25) !important;
}

/* ─── pricing-btn ─────────────────────────────────────────────────────────── */
.pricing-btn {
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.pricing-btn:active {
  transform: scale(0.95) !important;
  transition: transform 0.06s ease !important;
}
/* Accent variant: ambient glow pulse */
.pricing-btn-accent {
  animation: pricing-accent-pulse 3s ease-in-out infinite;
}
@keyframes pricing-accent-pulse {
  0%, 100% {
    box-shadow: 0 4px 16px color-mix(in oklab, var(--accent), transparent 68%);
  }
  50% {
    box-shadow:
      0 4px 28px color-mix(in oklab, var(--accent), transparent 48%),
      0 0 0 4px color-mix(in oklab, var(--accent), transparent 88%);
  }
}
/* Outline variant: border becomes accent on hover */
.pricing-btn-outline:hover {
  border-color: color-mix(in oklab, var(--accent), transparent 44%) !important;
  box-shadow: 0 4px 16px color-mix(in oklab, var(--accent), transparent 88%) !important;
}

/* ─── Download button orbit ───────────────────────────────────────────────── */
/* Dot orbits by rotating its container, then counter-rotating itself to stay round */
@keyframes dl-orbit {
  from { transform: rotate(0deg) translateX(18px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}
@keyframes dl-fill {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes dl-check-pop {
  0%   { transform: scale(0) rotate(-45deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(5deg);  opacity: 1; }
  100% { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* ─── CinematicHero modern buttons ────────────────────────────────────────── */
.btn-modern-light:active {
  transform: scale(0.95) translateY(1px) !important;
  transition: transform 0.06s ease !important;
}
.btn-modern-dark:active {
  transform: scale(0.95) translateY(1px) !important;
  transition: transform 0.06s ease !important;
}

/* ─── Focus rings (accessibility) ────────────────────────────────────────── */
.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.nav-cta:focus-visible,
.pricing-btn:focus-visible,
.pkg-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
