/* ============================================================
   Plugins Grid — Next-Gen Cards 2026
   Prefix: acPluginBlockNG — no conflicts with old styles
   ============================================================ */

:root {
  --pr-brand:      #52bac5;
  --pr-brand-dark: #0d838d;
  --pr-brand-glow: rgba(82,186,197,.28);
}

/* ════════════════════════════════════════
   AP HERO — dark header section
════════════════════════════════════════ */
.apHero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #0d1320 0%, #111b2e 50%, #0c1a2a 100%);
  padding: 88px 24px 80px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.all-plugins {
  display:block;
  position:relative;
}

.all-plugins::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pr-brand), var(--pr-brand-dark));
}

/* grid overlay */
.apHeroGrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* blobs */
.apHeroBlob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.apHeroBlob1 {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(82,186,197,.18) 0%, transparent 65%);
}
.apHeroBlob2 {
  width: 400px; height: 400px;
  bottom: -140px; left: -80px;
  background: radial-gradient(circle, rgba(13,131,141,.14) 0%, transparent 65%);
}

.apHeroInner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

/* badge */
.apHeroBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(82,186,197,.1);
  border: 1px solid rgba(82,186,197,.28);
  color: rgba(82,186,197,.9);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 16px 5px 12px;
  border-radius: 100px;
  margin-bottom: 32px;
}
.apHeroBadgeDot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #52bac5;
  box-shadow: 0 0 8px #52bac5;
  animation: apPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes apPulse {
  0%,100% { box-shadow: 0 0 6px #52bac5; }
  50%      { box-shadow: 0 0 16px #52bac5; }
}

/* title — типографическая игра */
.apHeroTitle {
  display: block;
  margin: 0 0 24px;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.apHeroTitleThin {
  display: block;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,.45);
  letter-spacing: -.02em;
  line-height: 1.0;
}
.apHeroTitleBold {
  display: block;
  font-size: clamp(42px, 7.5vw, 90px);
  font-weight: 800;
  background: linear-gradient(90deg, #ffffff 0%, #a0eaf3 50%, #52bac5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: normal;
  letter-spacing: -.035em;
}

/* subtitle */
.apHeroSubtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 400;
  color: rgba(255,255,255,.48);
  line-height: 1.75;
  margin: 0 auto 52px;
  max-width: 560px;
}
.apHeroSubtitle em {
  font-style: italic;
  color: rgba(82,186,197,.65);
}

/* stats strip */
.apHeroStats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px 36px;
  backdrop-filter: blur(12px);
}
.apHeroStat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
}
.apHeroStatNum {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: #52bac5;
  line-height: 1;
  letter-spacing: -.02em;
}
.apHeroStatLabel {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}
.apHeroStatDivider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .apHero { padding: 64px 20px 56px; }
  .apHeroStats { padding: 20px 24px; flex-direction: column; align-items: center; gap: 20px; }
  .apHeroStat { padding: 0; width: 100%; text-align: center; align-items: center; }
  .apHeroStatDivider { display: none; }
  .apHeroTitleThin { font-size: clamp(28px, 9vw, 48px); }
  .apHeroTitleBold { font-size: clamp(34px, 11vw, 60px); }
}



/* ── Page context ── */
.page-template-template-all-plugins .all-plugins {
  padding: 24px 0 80px;
}

.page-template-template-all-plugins .all-plugins .sec-title {
  display: none;
}

/* ── Grid override ── */
.page-template-template-all-plugins .all-plugins .row {
  gap: 0;
}

/* ── Column wrapper ── */
.page-template-template-all-plugins .catitem.acPluginCol {
  padding: 12px;
}

/* ────────────────────────────────────────
   NEXTGEN CARD — .acPluginBlockNG
   Applied alongside .acPluginBlock
──────────────────────────────────────── */
.acPluginBlockNG {
  /* Reset old styles */
  min-height: 0 !important;
  background: transparent !important;
  margin-bottom: 0 !important;

  /* New card */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 8px 32px rgba(30, 45, 61, 0.10),
    0 2px 8px rgba(30, 45, 61, 0.06);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1),
              box-shadow 0.28s cubic-bezier(.4,0,.2,1),
              border-color 0.28s cubic-bezier(.4,0,.2,1);
  font-family: 'Inter', system-ui, sans-serif;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.acPluginBlockNG::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.1) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.acPluginBlockNG:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 60px rgba(82, 186, 197, 0.18),
    0 8px 24px rgba(30, 45, 61, 0.12);
  border-color: rgba(82, 186, 197, 0.45);
}

/* ── Header strip (replaces .acPluginColTitle dark bar) ── */
.acPluginBlockNG .acPluginColTitle {
  position: relative;
  background: linear-gradient(135deg, #1a2744 0%, #0f1720 100%) !important;
  border-radius: 16px 16px 0 0;
  padding: 22px 130px 22px 28px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.015em;
  color: #fff !important;
  z-index: 1;
  min-height: 88px;
  display: flex;
  align-items: center;
}

.acPluginBlockNG .acPluginColTitle::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #52bac5, #0d838d, transparent);
}

/* Glow blob behind icon */
.acPluginBlockNG .acPluginColTitle::before {
  content: '';
  position: absolute;
  right: 20px; top: -10px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(82,186,197,0.22) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Plugin icon ── */
.acPluginBlockNG .acPluginColImg {
  right: 18px !important;
  bottom: -18px !important;
  z-index: 2;
}

.acPluginBlockNG .acPluginColImg img {
  width: 100px !important;
  height: 100px !important;
  border-radius: 16px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.28),
    0 2px 8px rgba(82,186,197,0.2);
  background: #fff;
  object-fit: contain;
  padding: 4px;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

.acPluginBlockNG:hover .acPluginColImg img {
  transform: translateY(-4px) rotate(-2deg);
}

/* ── Description block ── */
.acPluginBlockNG .acPluginColDesc {
  position: relative;
  background: transparent !important;
  padding: 32px 24px 24px !important;
  margin-top: 0 !important;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.acPluginBlockNG .acPluginColDescInner {
  min-height: 80px;
  font-size: 14px !important;
  line-height: 1.7;
  color: #4a6078 !important;
  font-weight: 400 !important;
  flex: 1;
}

/* ── Buttons ── */
.acPluginBlockNG .acPluginAddToCartBtnWrapper {
  margin-top: 20px !important;
  gap: 10px;
}

/* Cart icon button */
.acPluginBlockNG .acPluginAddToCartBtnIcon {
  width: 52px !important;
  height: 52px !important;
  border: none !important;
  border-radius: 12px !important;
  background: rgba(82,186,197,0.12) !important;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.acPluginBlockNG .acPluginAddToCartBtnIcon:hover {
  background: rgba(82,186,197,0.24) !important;
}

.acPluginBlockNG .acPluginAddToCartBtnIcon img {
  width: 26px !important;
}

/* Try for free button */
.acPluginBlockNG .acPluginAddToCartBtn {
  width: calc(100% - 62px) !important;
  min-height: 52px !important;
  margin-left: 0 !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #52bac5 0%, #0d838d 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(82,186,197,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acPluginBlockNG .acPluginAddToCartBtn:hover {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(82,186,197,0.5);
}

/* Full-width button (when no cart icon) */
.acPluginBlockNG .acPluginAddToCartBtnWrapper .acPluginAddToCartBtn[style*="width:100%"] {
  width: 100% !important;
}

/* Download button */
.acPluginBlockNG .acPluginAddToCartBtnWrapper .acPluginAddToCartBtn[style*="width:100%"] {
  background: linear-gradient(135deg, #1a2744 0%, #2e3e58 100%) !important;
  box-shadow: 0 4px 16px rgba(30,45,61,0.25);
}

/* ── Page background ── */
.page-template-template-all-plugins {
  background: linear-gradient(160deg, #e8f4f6 0%, #f0f7f9 40%, #edf5f7 100%) !important;
}

.apHero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(82,186,197,0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* Subtle dot grid background */
.page-template-template-all-plugins .all-plugins::before {
  display: none;
}

.page-template-template-all-plugins .all-plugins .container {
  position: relative;
  z-index: 1;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  .acPluginBlockNG .acPluginColTitle {
    font-size: 19px !important;
    padding-right: 115px !important;
  }
}

@media (max-width: 992px) {
  .acPluginBlockNG .acPluginColImg img {
    width: 80px !important;
    height: 80px !important;
  }
  .acPluginBlockNG .acPluginColTitle {
    padding-right: 100px !important;
    font-size: 18px !important;
  }
}

@media (max-width: 768px) {
  .page-template-template-all-plugins .catitem.acPluginCol {
    padding: 8px;
  }
  .acPluginBlockNG .acPluginColTitle {
    font-size: 20px !important;
    padding-right: 110px !important;
  }
}
