/* Digital products hub — promo strip + subtle motion (digital-products.php only) */

@keyframes dp-promo-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Digital hub: Creator / Affiliate / How it works (pricing-style tier cards, Gmingo brand colors) ---- */
.dp-promo-wrap {
  scroll-margin-top: 5rem;
  background:
    radial-gradient(ellipse 90% 70% at 100% 0%, rgba(44, 100, 211, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(56, 179, 90, 0.06) 0%, transparent 48%),
    linear-gradient(165deg, #f8fafc 0%, #ffffff 45%, #f1f5f9 100%);
  border-color: rgba(203, 213, 225, 0.85);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 40px -12px rgba(15, 23, 42, 0.08);
}

.dp-promo-card {
  animation: dp-promo-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.dp-promo-card:nth-child(2) {
  animation-delay: 0.06s;
}

.dp-promo-card:nth-child(3) {
  animation-delay: 0.12s;
}

/* Brand tokens (align with header Tailwind: primary #2C64D3, accent #38B35A, navy #1A3A7C) */
.dp-promo-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.98);
  box-shadow:
    0 1px 2px rgba(26, 58, 124, 0.05),
    0 10px 28px -12px rgba(26, 58, 124, 0.12);
  overflow: hidden;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.dp-promo-tier:hover {
  border-color: rgba(203, 213, 225, 1);
  box-shadow:
    0 4px 6px rgba(26, 58, 124, 0.06),
    0 18px 40px -14px rgba(26, 58, 124, 0.14);
}

.dp-promo-tier__head {
  position: relative;
  padding: 1.35rem 1.25rem 2.85rem;
  text-align: center;
  color: #fff;
}

.dp-promo-tier--creator .dp-promo-tier__head {
  background: linear-gradient(165deg, #1a3a7c 0%, #2c64d3 52%, #5b8ee8 100%);
}

.dp-promo-tier--affiliate .dp-promo-tier__head {
  background: linear-gradient(165deg, #1a3a7c 0%, #2c64d3 28%, #38b35a 100%);
}

.dp-promo-tier--how .dp-promo-tier__head {
  background: linear-gradient(165deg, #152a52 0%, #1a3a7c 40%, #2c64d3 100%);
}

.dp-promo-tier__kicker {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.dp-promo-tier__title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.dp-promo-tier__lead {
  margin: 0.65rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.dp-promo-tier__badge {
  position: relative;
  z-index: 1;
  margin: -2.15rem auto 0;
  width: calc(100% - 2rem);
  max-width: 17.5rem;
  padding: 0.85rem 1rem 0.75rem;
  background: #ffffff;
  border-radius: 0.65rem;
  text-align: center;
  box-shadow:
    0 2px 6px rgba(26, 58, 124, 0.08),
    0 12px 24px -10px rgba(26, 58, 124, 0.18);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.dp-promo-tier__badge-main {
  display: block;
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #2c64d3;
  line-height: 1.2;
}

.dp-promo-tier--affiliate .dp-promo-tier__badge-main {
  color: #2d8f47;
}

.dp-promo-tier--how .dp-promo-tier__badge-main {
  color: #1a3a7c;
}

.dp-promo-tier__badge-sub {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.dp-promo-tier__features {
  list-style: none;
  margin: 0;
  padding: 1.1rem 1.15rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dp-promo-tier__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.dp-promo-tier__features li:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.dp-promo-tier__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 9999px;
  background: rgba(56, 179, 90, 0.12);
  color: #2f9a4b;
}

.dp-promo-tier__feature-text {
  flex: 1;
  min-width: 0;
}

.dp-promo-tier__step-label {
  display: inline-block;
  margin-right: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2c64d3;
  vertical-align: baseline;
}

.dp-promo-tier__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 1.15rem 1.15rem;
  padding: 0.7rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.dp-promo-tier__cta--creator {
  color: #ffffff !important;
  background: linear-gradient(180deg, #2c64d3 0%, #1e4a9e 100%);
  box-shadow:
    0 1px 2px rgba(44, 100, 211, 0.25),
    0 4px 14px -2px rgba(44, 100, 211, 0.45);
}

.dp-promo-tier__cta--creator:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(44, 100, 211, 0.2),
    0 8px 22px -4px rgba(44, 100, 211, 0.5);
}

.dp-promo-tier__cta--affiliate {
  color: #ffffff !important;
  background: linear-gradient(180deg, #38b35a 0%, #2d8f47 100%);
  box-shadow:
    0 1px 2px rgba(45, 143, 71, 0.25),
    0 4px 14px -2px rgba(56, 179, 90, 0.4);
}

.dp-promo-tier__cta--affiliate:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(45, 143, 71, 0.2),
    0 8px 22px -4px rgba(56, 179, 90, 0.48);
}

.dp-promo-tier__cta--how {
  color: #ffffff !important;
  background: linear-gradient(180deg, #1a3a7c 0%, #152d61 100%);
  box-shadow:
    0 1px 2px rgba(26, 58, 124, 0.25),
    0 4px 14px -2px rgba(26, 58, 124, 0.35);
}

.dp-promo-tier__cta--how:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(26, 58, 124, 0.2),
    0 8px 22px -4px rgba(26, 58, 124, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .dp-promo-card {
    animation: none;
  }

  .dp-promo-tier:hover {
    transform: none;
  }

  .dp-promo-tier__cta--creator:hover,
  .dp-promo-tier__cta--affiliate:hover,
  .dp-promo-tier__cta--how:hover {
    transform: none;
  }
}

/* Digital hub testimonials: 4 columns visible + slow smooth RTL marquee */
@keyframes digital-tm-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

#digital-creator-testimonials .sell-testimonials-marquee {
  container-type: inline-size;
  container-name: digital-tm;
  -webkit-font-smoothing: antialiased;
}

#digital-creator-testimonials .sell-testimonials-track {
  animation: digital-tm-scroll 120s linear infinite;
  gap: 1.25rem;
  backface-visibility: hidden;
}

#digital-creator-testimonials .sell-testimonials-marquee.sell-marquee-paused .sell-testimonials-track {
  animation-play-state: paused;
}

/* Four cards visible (desktop): width uses container query on the marquee */
#digital-creator-testimonials .sell-testimonial-slide {
  flex: 0 0 calc((100cqw - 3 * 1.25rem) / 4);
  width: calc((100cqw - 3 * 1.25rem) / 4);
  max-width: none;
  min-width: 0;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

#digital-creator-testimonials .sell-testimonial-card {
  min-height: 220px;
  padding: 1.25rem 1rem;
}

@media (max-width: 1023px) {
  #digital-creator-testimonials .sell-testimonial-slide {
    flex: 0 0 calc((100cqw - 1 * 1.25rem) / 2);
    width: calc((100cqw - 1 * 1.25rem) / 2);
  }
}

@media (max-width: 639px) {
  #digital-creator-testimonials .sell-testimonial-slide {
    flex: 0 0 min(300px, calc(100cqw - 1rem));
    width: min(300px, calc(100cqw - 1rem));
  }

  #digital-creator-testimonials .sell-testimonials-track {
    animation-duration: 100s;
  }
}

@media (prefers-reduced-motion: reduce) {
  #digital-creator-testimonials .sell-testimonials-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100% !important;
    max-width: 72rem;
    margin: 0 auto;
    row-gap: 1rem;
  }

  #digital-creator-testimonials .sell-testimonial-slide {
    flex: 1 1 280px !important;
    width: auto !important;
    max-width: 340px;
  }
}

/* ---- digital-how-it-works.php: hero breathing, CTA polish (classes on page root .digital-hiw-page) ---- */
@keyframes hiw-hero-bg-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

@keyframes hiw-hero-soft-pulse {
  0%,
  100% {
    opacity: 0.38;
  }
  50% {
    opacity: 0.52;
  }
}

@keyframes hiw-hero-orb-float {
  0%,
  100% {
    opacity: 0.14;
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    opacity: 0.2;
    transform: translate(-50%, 2%) scale(1.06);
  }
}

@keyframes hiw-cta-glow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.55;
  }
}

.digital-hiw-page .hiw-hero-photo-breathe {
  animation: hiw-hero-bg-breathe 22s ease-in-out infinite;
  will-change: transform;
}

.digital-hiw-page .hiw-hero-shine-breathe {
  animation: hiw-hero-soft-pulse 14s ease-in-out infinite reverse;
}

.digital-hiw-page .hiw-hero-orb-breathe {
  animation: hiw-hero-orb-float 20s ease-in-out infinite;
}

.digital-hiw-page .hiw-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
  animation: hiw-cta-glow 12s ease-in-out infinite;
}

.digital-hiw-page .hiw-cta-section > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .digital-hiw-page .hiw-hero-photo-breathe,
  .digital-hiw-page .hiw-hero-shine-breathe,
  .digital-hiw-page .hiw-hero-orb-breathe,
  .digital-hiw-page .hiw-cta-section::before {
    animation: none !important;
  }

  .digital-hiw-page .hiw-overview-card {
    transform: none !important;
  }
}
