/* ── [ebl_articles] shortcode — Blog Posts Section ─────────────────────────── *
 * Sits inside .block-recent-posts (parent theme section) + .container wrapper  *
 * Uses same structural conventions as other homepage sections.                 */

/* ── Section header row ─────────────────────────────────────────────────────── */
.ebl-ps__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1.5rem;
}

.ebl-ps__eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fdfb62;
  font-family: avenirnextcyr-medium, 'AvenirNextCyr-Medium', sans-serif;
  margin-bottom: 0.55rem;
  margin-top: 0;
}

.ebl-ps__title {
  font-size: 36px;
  font-family: avenirnextcyr-bold, 'AvenirNextCyr-Bold', sans-serif;
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 10px rgba(0,0,0,.3);
  display: inline-block;
}
/* Gold underline accent matching parent theme banner pattern */
.ebl-ps__title::after {
  content: '';
  display: block;
  width: 70px;
  height: 5px;
  background: linear-gradient(to right, #fdfb62, #ffb81e);
  border-radius: 3px;
  margin-top: 10px;
}

/* Override parent .btn-container default margin when used in header */
.ebl-ps__header .btn-container {
  margin-top: 0;
  flex-shrink: 0;
}

/* ── Card grid ──────────────────────────────────────────────────────────────── */
.ebl-ps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Individual card ────────────────────────────────────────────────────────── */
.ebl-ps__card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  text-decoration: none !important;
  color: inherit;
  aspect-ratio: 3 / 2;
  border: 0.5px solid rgba(255,255,255,0.1);
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
  transition: transform 0.3s cubic-bezier(0.2,0,0.2,1),
              box-shadow 0.3s cubic-bezier(0.2,0,0.2,1),
              border-color 0.3s;
  cursor: pointer;
}
.ebl-ps__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,.5);
  border-color: rgba(255,255,255,0.22);
}

/* Background image / gradient */
.ebl-ps__card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s cubic-bezier(0.2,0,0.2,1);
}
.ebl-ps__card:hover .ebl-ps__card-bg { transform: scale(1.04); }

/* Dark gradient overlay — text readable from bottom */
.ebl-ps__card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(0,8,20,.94) 0%,
    rgba(0,8,20,.5)  52%,
    rgba(0,8,20,.06) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.4rem;
  z-index: 2;
  transition: background 0.3s;
}
.ebl-ps__card:hover .ebl-ps__card-overlay {
  background: linear-gradient(to top,
    rgba(0,8,20,.97) 0%,
    rgba(0,8,20,.58) 52%,
    rgba(0,8,20,.1)  100%);
}

.ebl-ps__card-tag {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fdfb62;
  font-family: avenirnextcyr-medium, 'AvenirNextCyr-Medium', sans-serif;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ebl-ps__card-tag::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fdfb62;
  flex-shrink: 0;
}

.ebl-ps__card-title {
  font-size: 17px;
  font-family: avenirnextcyr-bold, 'AvenirNextCyr-Bold', sans-serif;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 6px;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ebl-ps__card:hover .ebl-ps__card-title { color: #fdfb62; }

.ebl-ps__card-meta {
  font-size: 11px;
  color: rgba(255,255,255,.4);
  font-family: Roboto, sans-serif;
}

/* ── 🔥 FIRE card ──────────────────────────────────────────────────────────── */
.ebl-ps__card.on-fire {
  border-color: rgba(255,100,20,.55) !important;
  box-shadow: 0 0 0 2px rgba(255,100,20,.55),
              0 8px 32px rgba(255,60,0,.4),
              0 2px 10px rgba(0,0,0,.35) !important;
  animation: ealCardFirePulse .75s ease-in-out infinite alternate;
}
.ebl-ps__card.on-fire .ebl-ps__card-tag         { color: #ff9040; }
.ebl-ps__card.on-fire .ebl-ps__card-tag::before { background: #ff9040; }
.ebl-ps__card.on-fire .ebl-ps__card-title       { color: #ffd0a0; }
@keyframes ealCardFirePulse {
  from { box-shadow: 0 0 0 2px rgba(255,100,20,.55), 0 8px 32px rgba(255,60,0,.4),   0 2px 10px rgba(0,0,0,.35); }
  to   { box-shadow: 0 0 0 3px rgba(255,130,30,.72), 0 10px 40px rgba(255,80,0,.55), 0 2px 10px rgba(0,0,0,.35); }
}

/* "Trending" badge */
.ebl-ps__fire-badge {
  position: absolute;
  top: 11px; right: 11px;
  z-index: 5;
  background: rgba(210,55,0,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 4px 11px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  font-family: avenirnextcyr-medium, Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Fire particle canvas */
.ebl-ps__fire-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 12px;
  overflow: hidden;
}
.ebl-ps__fire-canvas canvas {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 65%;
}

/* ── 💙 GLOW card ──────────────────────────────────────────────────────────── */
.ebl-ps__card.on-glow {
  border-color: rgba(0,180,255,.48) !important;
  box-shadow: 0 0 0 2px rgba(0,180,255,.42),
              0 8px 32px rgba(0,102,175,.42),
              0 2px 10px rgba(0,0,0,.35) !important;
  animation: ealCardGlowPulse 2s ease-in-out infinite;
}
.ebl-ps__card.on-glow .ebl-ps__card-tag         { color: #60d8ff; }
.ebl-ps__card.on-glow .ebl-ps__card-tag::before { background: #60d8ff; }
.ebl-ps__card.on-glow .ebl-ps__card-title       { color: #b8eaff; }
@keyframes ealCardGlowPulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(0,180,255,.42), 0 8px 32px rgba(0,102,175,.42),  0 2px 10px rgba(0,0,0,.35); }
  50%     { box-shadow: 0 0 0 3px rgba(0,210,255,.58), 0 10px 40px rgba(0,130,210,.56), 0 2px 10px rgba(0,0,0,.35); }
}

/* "Featured" badge */
.ebl-ps__glow-badge {
  position: absolute;
  top: 11px; right: 11px;
  z-index: 5;
  background: rgba(0,80,145,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 4px 11px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  font-family: avenirnextcyr-medium, Roboto, sans-serif;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Glow shimmer sweep */
.ebl-ps__shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  border-radius: 12px;
  background: linear-gradient(105deg,
    transparent 30%,
    rgba(0,180,255,.08) 50%,
    transparent 70%);
  background-size: 200% 100%;
  animation: ealCardShimmer 2.5s linear infinite;
  opacity: 0;
  transition: opacity .3s;
}
.on-glow .ebl-ps__shimmer { opacity: 1; }
@keyframes ealCardShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.ebl-ps__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 2.25rem;
}
.ebl-ps__pbtn {
  padding: 12px 28px;
  border-radius: 8px;
  border: 0.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  cursor: pointer;
  transition: all .18s;
  font-family: avenirnextcyr-medium, 'AvenirNextCyr-Medium', Roboto, sans-serif;
  letter-spacing: .04em;
}
.ebl-ps__pbtn:hover:not(:disabled) {
  background: rgba(253,251,98,.1);
  border-color: rgba(253,251,98,.32);
  color: #fdfb62;
}
.ebl-ps__pbtn:disabled { opacity: .28; cursor: default; }
.ebl-ps__pinfo {
  font-size: 12px;
  color: rgba(255,255,255,.32);
  min-width: 60px;
  text-align: center;
  font-family: Roboto, sans-serif;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ebl-ps__grid         { grid-template-columns: repeat(2, 1fr); }
  .ebl-ps__title        { font-size: 28px; }
  .ebl-ps__header       { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .ebl-ps__grid         { grid-template-columns: 1fr; }
  .ebl-ps__title        { font-size: 22px; }
}
