/* ============================================================
   Vala — Services/Packages v3 polish (additive)
   Loaded after vala-final-fixes.css. Additive only — no rewrites.
   Scope: /packages/salla page trust strip, card emphasis,
          feature list readability, and reveal rhythm.
   RTL-first, mobile-first. Honors prefers-reduced-motion.
   ============================================================ */

/* "Included in every package" trust strip */
.pp-includes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 1100px;
  margin-inline: auto;
}
.pp-includes-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 22px 12px 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(34, 211, 238, .02));
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .8, .25, 1), border-color .3s ease, box-shadow .3s ease;
  /* Card-level pop-in (overdamped overshoot) when revealed */
  animation: ppIncPop .6s cubic-bezier(.2, 1.15, .35, 1) both;
}
/* Cascaded entrance so items pop in one after another */
.pp-includes-item:nth-child(1) { animation-delay: .04s; }
.pp-includes-item:nth-child(2) { animation-delay: .12s; }
.pp-includes-item:nth-child(3) { animation-delay: .20s; }
.pp-includes-item:nth-child(4) { animation-delay: .28s; }
.pp-includes-item:nth-child(5) { animation-delay: .36s; }

/* Slow breathing sheen across each card */
.pp-includes-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(167, 139, 250, .10) 50%, transparent 70%);
  background-size: 220% 100%;
  animation: ppIncSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* Icon → gradient chip with pulsing glow ring */
.pp-includes-item i {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  box-shadow: 0 10px 26px -12px rgba(124, 58, 237, .9);
  animation: ppIncIconPulse 3.4s ease-in-out infinite;
}
.pp-includes-item i::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  border: 1.5px solid rgba(139, 92, 246, .55);
  opacity: 0;
  animation: ppIncRing 3.4s ease-out infinite;
}

.pp-includes-item span {
  font-size: .82rem;
  line-height: 1.5;
  color: rgba(243, 244, 251, .92);
  font-weight: 600;
  position: relative;
}

/* Hover: lift + glow + icon scale */
.pp-includes-item:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, .42);
  box-shadow: 0 18px 40px -22px rgba(124, 58, 237, .85);
}
.pp-includes-item:hover i {
  transform: scale(1.08);
}

/* ── Keyframes ── */
@keyframes ppIncPop {
  from { opacity: 0; transform: translateY(18px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes ppIncSheen {
  0%, 100% { background-position: 160% 0; }
  50%      { background-position: -60% 0; }
}
@keyframes ppIncIconPulse {
  0%, 100% { box-shadow: 0 10px 26px -12px rgba(124, 58, 237, .9); }
  50%      { box-shadow: 0 14px 34px -10px rgba(124, 58, 237, 1); }
}
@keyframes ppIncRing {
  0%   { opacity: .65; transform: scale(.92); }
  70%  { opacity: 0;  transform: scale(1.4); }
  100% { opacity: 0;  transform: scale(1.4); }
}

/* Respect reduced-motion: kill looping/pulse animation, keep a gentle one-shot reveal */
@media (prefers-reduced-motion: reduce) {
  .pp-includes-item,
  .pp-includes-item i,
  .pp-includes-item::before,
  .pp-includes-item i::after {
    animation: none !important;
  }
}

/* Stronger emphasis on the popular card so it visibly leads */
.pp-card.popular { position: relative; }
.pp-card.popular::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, .18);
}

/* Feature list: tighter, scan-friendlier bullets */
.pp-feats li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
.pp-feats li i {
  flex: 0 0 auto;
  margin-top: 3px;
}

/* Mobile stacking for the trust strip */
@media (max-width: 860px) {
  .pp-includes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .pp-includes { grid-template-columns: 1fr; }
  .pp-includes-item {
    flex-direction: row;
    text-align: start;
    padding: 14px 16px;
    gap: 14px;
  }
  .pp-includes-item i {
    width: 38px;
    height: 38px;
    font-size: 1.05rem;
    flex: 0 0 auto;
  }
}

/* Reveal refinement on the packages page */
.pp-cards .pp-card.px-reveal {
  transition: opacity .7s var(--px-ease, ease), transform .7s var(--px-ease, ease),
    border-color .25s ease, box-shadow .25s ease;
}
@media (prefers-reduced-motion: reduce) {
  .pp-includes-item,
  .pp-cards .pp-card.px-reveal {
    transition: none !important;
  }
}
