/* Product page - info banners row above the content sections (templates/product/info-cards.php).
   Own file, enqueued by adapters/wp/product-info-cards.php after the product sheet; not part of
   dist/product.css. Look follows the info pages hero (ppipd tokens: #3a2f63 ink, #5d4f89 primary,
   #e8b54a gold, #f0ecf8 tint). Motion: Lottie (js/product-info-cards.js) + CSS ambient loops, kept
   under prefers-reduced-motion on purpose (owner decision). Fixed aspect art boxes = no layout shift. */

.pp-info-cards {
  --ppic-ink: #3a2f63;
  --ppic-primary: #5d4f89;
  --ppic-deep: #2a2148;
  --ppic-tint: #f0ecf8;
  --ppic-gold: #e8b54a;
  --ppic-ease: cubic-bezier(.16, 1, .3, 1);
  max-width: 1100px;
  margin: 56px auto 44px;
}
.pp-info-cards__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pp-info-cards--n2 .pp-info-cards__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pp-info-cards--n1 .pp-info-cards__list { grid-template-columns: minmax(0, 560px); }
.pp-info-cards__item { margin: 0; padding: 0; min-width: 0; }
.pp-info-cards__item::before { content: none; }

/* Banner */
.pp-info-cards__card {
  --ppic-accent: var(--ppic-gold);
  --ppic-accent-soft: rgba(232, 181, 74, .34);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(109, 91, 208, .55), rgba(109, 91, 208, 0) 60%),
    linear-gradient(160deg, #54477f 0%, var(--ppic-ink) 48%, var(--ppic-deep) 100%);
  box-shadow: 0 2px 6px rgba(42, 33, 72, .12), 0 16px 34px rgba(42, 33, 72, .18);
  color: #fff;
  text-decoration: none;
  transition: transform .45s var(--ppic-ease), box-shadow .45s var(--ppic-ease);
}
.pp-info-cards__card--stability {
  --ppic-accent: #9fd3ff;
  --ppic-accent-soft: rgba(140, 200, 255, .30);
}
.pp-info-cards__card--crypto {
  --ppic-accent: #4fd3a0;
  --ppic-accent-soft: rgba(52, 185, 138, .32);
}
.pp-info-cards__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 4px 10px rgba(42, 33, 72, .16), 0 28px 54px rgba(42, 33, 72, .30);
  color: #fff;
  text-decoration: none;
}
.pp-info-cards__card:focus-visible {
  outline: 3px solid var(--ppic-gold);
  outline-offset: 3px;
}

/* Art zone: drifting accent glow, slowly turning orbit ring, floating light stage with the Lottie. */
.pp-info-cards__art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
}
.pp-info-cards__glow {
  position: absolute;
  inset: -40% -30% -60%;
  z-index: -1;
  background:
    radial-gradient(36% 28% at 50% 36%, var(--ppic-accent-soft), transparent 70%),
    radial-gradient(26% 22% at 16% 52%, rgba(232, 181, 74, .16), transparent 70%);
  animation: ppic-drift 9s ease-in-out infinite alternate;
}
.pp-info-cards__ring {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 104%;
  aspect-ratio: 1;
  border: 1px dashed rgba(255, 255, 255, .20);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ppic-spin 36s linear infinite;
}
.pp-info-cards__ring::before,
.pp-info-cards__ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.pp-info-cards__ring::before {
  top: 14%;
  left: 9%;
  width: 9px;
  height: 9px;
  background: var(--ppic-accent);
  box-shadow: 0 0 14px var(--ppic-accent);
}
.pp-info-cards__ring::after {
  right: 4%;
  bottom: 30%;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, .75);
}
.pp-info-cards__stage {
  position: relative;
  height: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #fff 0%, #f7f5fb 45%, var(--ppic-tint) 72%, #ddd5ef 100%);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .07), 0 0 0 18px rgba(255, 255, 255, .04), 0 18px 40px rgba(10, 6, 30, .38);
  animation: ppic-float 6s ease-in-out infinite;
  transition: transform .5s var(--ppic-ease);
}
.pp-info-cards__card:hover .pp-info-cards__stage { transform: scale(1.05); }
.pp-info-cards__anim {
  position: absolute;
  inset: 4%;
  z-index: 1;
  display: block;
}
.pp-info-cards__anim svg { display: block; width: 100% !important; height: 100% !important; }
.pp-info-cards__icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ppic-primary);
  transition: opacity .3s;
}
.pp-info-cards__icon svg { display: block; width: 38%; height: 38%; }
.pp-info-cards__anim.is-ready + .pp-info-cards__icon { opacity: 0; }

/* Copy */
.pp-info-cards__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 24px 24px;
}
.pp-info-cards__kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--ppic-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.pp-info-cards__kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ppic-accent), rgba(255, 255, 255, .5));
}
.pp-info-cards__title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}
.pp-info-cards__text {
  display: -webkit-box;
  margin: 0 0 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.pp-info-cards__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--ppic-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(10, 6, 30, .25);
  transition: background-color .3s, color .3s;
}
.pp-info-cards__more svg { flex: 0 0 auto; transition: transform .35s var(--ppic-ease); }
.pp-info-cards__card:hover .pp-info-cards__more { background: var(--ppic-gold); color: var(--ppic-ink); }
.pp-info-cards__card:hover .pp-info-cards__more svg { transform: translateX(4px); }

/* Shine: ambient sweep every few seconds (staggered per banner) + a stronger sweep on hover. */
.pp-info-cards__card::after,
.pp-info-cards__shine {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 60%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .16) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-180%) skewX(-12deg);
}
.pp-info-cards__card::after { animation: ppic-sweep 8s ease-in-out infinite; opacity: .7; }
.pp-info-cards__item:nth-child(2) .pp-info-cards__card::after { animation-delay: 1.4s; }
.pp-info-cards__item:nth-child(3) .pp-info-cards__card::after { animation-delay: 2.8s; }
.pp-info-cards__shine { background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 100%); }
.pp-info-cards__card:hover .pp-info-cards__shine {
  transform: translateX(260%) skewX(-12deg);
  transition: transform .9s var(--ppic-ease);
}

@keyframes ppic-float { 0%, 100% { translate: 0 -5px; } 50% { translate: 0 5px; } }
@keyframes ppic-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes ppic-drift { 0% { transform: translate(-6%, -3%) scale(1); } 100% { transform: translate(6%, 4%) scale(1.12); } }
@keyframes ppic-sweep { 0%, 72% { transform: translateX(-180%) skewX(-12deg); } 100% { transform: translateX(260%) skewX(-12deg); } }

/* Tablet: 3 columns kept, tighter copy. */
@media (max-width: 1024px) {
  .pp-info-cards__list { gap: 14px; }
  .pp-info-cards__body { padding: 2px 18px 20px; }
  .pp-info-cards__title { font-size: 17px; }
  .pp-info-cards__text { font-size: 13px; }
}

/* Mobile: horizontal swipe row with scroll-snap; the next banner peeks in. */
@media (max-width: 767px) {
  .pp-info-cards { margin: 28px auto 32px; }
  .pp-info-cards__list,
  .pp-info-cards--n2 .pp-info-cards__list,
  .pp-info-cards--n1 .pp-info-cards__list {
    display: flex;
    gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pp-info-cards__list::-webkit-scrollbar { display: none; }
  .pp-info-cards__item { flex: 0 0 82%; scroll-snap-align: start; }
  .pp-info-cards--n1 .pp-info-cards__item { flex-basis: 100%; }
  .pp-info-cards__card:hover { transform: none; }
  .pp-info-cards__art { aspect-ratio: 16 / 9; }
  .pp-info-cards__body { padding: 2px 18px 20px; }
  .pp-info-cards__title { font-size: 18px; }
  .pp-info-cards__text { font-size: 13.5px; }
  /* Carousel dots (built by js/product-info-cards.js). */
  .pp-info-cards__dots { display: flex; justify-content: center; gap: 8px; margin-top: 2px; }
  .pp-info-cards__dots span { width: 8px; height: 8px; border-radius: 999px; background: rgba(58, 47, 99, .2); transition: width .3s ease, background-color .3s ease; }
  .pp-info-cards__dots span.is-active { width: 22px; background: #3a2f63; }
}
.pp-info-cards__dots { display: none; }
@media (max-width: 767px) { .pp-info-cards__dots { display: flex; } }
