 /* =========================================================
   BLOG LIST — blog-list.css
   Loaded only from blog/post_list.html (not global).
   Uses existing design-system tokens (--bg*, --tx*, --pur, --grad, --bd)
   and shared utility classes (.gc, .slbl, .stitle, .ssub, .boc, .sp).
   All new classes are `bl-` namespaced. RTL-ready, mobile-first.
   ========================================================= */

/* ── PAGE HEAD ────────────────────────────────────────── */
.bl-page-head {
  padding-bottom: 32px;
  direction: rtl;
  text-align: right;
}

.bl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--tx3);
  margin-bottom: 18px;
}

.bl-breadcrumb a {
  color: var(--tx3);
  text-decoration: none;
  transition: color .2s;
}

.bl-breadcrumb a:hover { color: var(--pur); }

.bl-breadcrumb span:last-child { color: var(--tx2); }

/* category filter chip row */
.bl-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.bl-chip {
  padding: 8px 18px;
  font-size: .82rem;
  border-radius: 100px;
}

.bl-chip.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* ── MAIN WRAPPER ─────────────────────────────────────── */
.bl-main {
  padding: 0 0 90px;
}

.bl-empty {
  direction: rtl;
}

/* shared image placeholder (no image on article) */
.bl-img-placeholder {
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
}

/* shared avatar (author initials) */
.bl-avatar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.bl-read-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(8,8,15,.72);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  z-index: 2;
}

/* ── FEATURED CARD ────────────────────────────────────── */
.bl-featured {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 32px;
  direction: rtl;
}

/* DOM order: media first, body second.
   No global dir="rtl" on <html>, so visual order follows DOM order:
   media renders on the LEFT, body on the RIGHT — mirrors the LTR reference. */
.bl-featured-media {
  position: relative;
  flex: 0 0 46%;
  display: block;
  overflow: hidden;
  text-decoration: none;
  min-height: 320px;
}

.bl-featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.bl-featured:hover .bl-featured-img { transform: scale(1.04); }

.bl-featured .bl-avatar {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.bl-featured .bl-read-badge {
  left: 16px;
  bottom: 16px;
  padding: 6px 13px;
}

.bl-featured-body {
  flex: 1;
  min-width: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bl-cat-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(139,92,246,.12);
  color: var(--pur);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background .2s;
}

.bl-cat-badge:hover { background: rgba(139,92,246,.22); }

.bl-featured-title-link { text-decoration: none; }

.bl-featured-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--tx);
  margin: 0 0 14px;
  transition: color .2s;
}

.bl-featured-title-link:hover .bl-featured-title { color: var(--pur); }

.bl-featured-desc {
  font-size: .95rem;
  color: var(--tx2);
  line-height: 1.85;
  margin: 0 0 22px;
}

/* ── META ROW (shared by featured + grid cards) ──────── */
.bl-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bl-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--tx3);
}

.bl-meta-item i { color: var(--pur); font-size: .74rem; }

.bl-meta-row-sm { gap: 12px; }
.bl-meta-row-sm .bl-meta-item { font-size: .74rem; }

/* ── GRID CARDS ───────────────────────────────────────── */
.bl-grid { margin-top: 4px; }

.bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
}

.bl-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

.bl-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.bl-card:hover .bl-card-img { transform: scale(1.06); }

.bl-card .bl-avatar {
  bottom: -18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: .9rem;
  border: 3px solid var(--sf);
}

.bl-card .bl-read-badge {
  left: 12px;
  top: 12px;
  padding: 5px 11px;
  font-size: .68rem;
}

.bl-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
}

.bl-cat-label { margin-bottom: 10px; }

.bl-card-title-link { text-decoration: none; }

.bl-card-title {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--tx);
  margin: 0 0 16px;
  transition: color .2s;
}

.bl-card-title-link:hover .bl-card-title { color: var(--pur); }

.bl-card-body .bl-meta-row-sm { margin-top: auto; }

/* ── PAGINATION ───────────────────────────────────────── */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
  direction: rtl;
}

.bl-page-btn {
  padding: 9px 20px;
  font-size: .85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.bl-page-info {
  font-size: .8rem;
  color: var(--tx3);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 767.98px) {
  .bl-featured {
    flex-direction: column;
  }
  .bl-featured-media {
    flex: none;
    min-height: 220px;
  }
  .bl-featured-img { min-height: 220px; }
  .bl-featured-body { padding: 26px 22px; }
  .bl-featured-title { font-size: 1.3rem; }
}

@media (max-width: 575.98px) {
  .bl-filter-row { gap: 8px; }
  .bl-chip { padding: 7px 14px; font-size: .78rem; }
  .bl-featured-body { padding: 22px 18px; }
  .bl-pagination { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-featured-img,
  .bl-card-img,
  .bl-featured-title,
  .bl-card-title { transition: none; }
}/* =========================================================
   BLOG LIST — blog-list.css
   Loaded only from blog/post_list.html (not global).
   Uses existing design-system tokens (--bg*, --tx*, --pur, --grad, --bd)
   and shared utility classes (.gc, .slbl, .stitle, .ssub, .boc, .sp).
   All new classes are `bl-` namespaced. RTL-ready, mobile-first.
   ========================================================= */

/* ── PAGE HEAD ────────────────────────────────────────── */
.bl-page-head {
  padding-bottom: 32px;
  direction: rtl;
  text-align: right;
}

.bl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--tx3);
  margin-bottom: 22px;
}

.bl-breadcrumb a {
  color: var(--tx3);
  text-decoration: none;
  transition: color .2s;
}

.bl-breadcrumb a:hover { color: var(--pur); }

.bl-breadcrumb span:last-child { color: var(--tx2); }

.bl-page-head .stitle {
  margin-bottom: 16px;
}

.bl-page-head .ssub {
  max-width: 680px;
  margin: 0;
  line-height: 1.9;
}

/* category filter chip row */
.bl-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--bd);
}

.bl-chip {
  padding: 8px 18px;
  font-size: .82rem;
  border-radius: 100px;
}

.bl-chip.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

/* ── MAIN WRAPPER ─────────────────────────────────────── */
.bl-main {
  padding: 0 0 90px;
}

.bl-empty {
  direction: rtl;
}

/* shared image placeholder (no image on article) */
.bl-img-placeholder {
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
}

/* shared avatar (author initials) */
.bl-avatar {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.bl-read-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(8,8,15,.72);
  backdrop-filter: blur(6px);
  color: #fff;
  border-radius: 100px;
  font-size: .72rem;
  font-weight: 600;
  z-index: 2;
}

/* ── FEATURED CARD ────────────────────────────────────── */
.bl-featured {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  margin-bottom: 32px;
  direction: rtl;
}

/* DOM order: media first, body second.
   No global dir="rtl" on <html>, so visual order follows DOM order:
   media renders on the LEFT, body on the RIGHT — mirrors the LTR reference. */
.bl-featured-media {
  position: relative;
  flex: 0 0 46%;
  display: block;
  overflow: hidden;
  text-decoration: none;
  min-height: 320px;
}

.bl-featured-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.bl-featured:hover .bl-featured-img { transform: scale(1.04); }

.bl-featured .bl-avatar {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.bl-featured .bl-read-badge {
  left: 16px;
  bottom: 16px;
  padding: 6px 13px;
}

.bl-featured-body {
  flex: 1;
  min-width: 0;
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bl-cat-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 100px;
  background: rgba(139,92,246,.12);
  color: var(--pur);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  margin-bottom: 16px;
  transition: background .2s;
}

.bl-cat-badge:hover { background: rgba(139,92,246,.22); }

.bl-featured-title-link { text-decoration: none; }

.bl-featured-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--tx);
  margin: 0 0 14px;
  transition: color .2s;
}

.bl-featured-title-link:hover .bl-featured-title { color: var(--pur); }

.bl-featured-desc {
  font-size: .95rem;
  color: var(--tx2);
  line-height: 1.85;
  margin: 0 0 22px;
}

/* ── META ROW (shared by featured + grid cards) ──────── */
.bl-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.bl-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--tx3);
}

.bl-meta-item i { color: var(--pur); font-size: .74rem; }

.bl-meta-row-sm { gap: 12px; }
.bl-meta-row-sm .bl-meta-item { font-size: .74rem; }

/* ── GRID CARDS ───────────────────────────────────────── */
.bl-grid { margin-top: 4px; }

.bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  direction: rtl;
}

.bl-card-media {
  position: relative;
  display: block;
  text-decoration: none;
  /* NOTE: no overflow:hidden here on purpose — the avatar overlaps the
     bottom edge of this box by design (bottom:-18px). Clipping happens
     at the outer .bl-card level instead, which still rounds the image's
     top corners and clips the hover-zoom, without cutting the avatar. */
}

.bl-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.bl-card:hover .bl-card-img { transform: scale(1.06); }

.bl-card .bl-avatar {
  bottom: -18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: .9rem;
  border: 3px solid var(--sf);
}

.bl-card .bl-read-badge {
  left: 12px;
  top: 12px;
  padding: 5px 11px;
  font-size: .68rem;
}

.bl-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
}

.bl-cat-label { margin-bottom: 10px; }

.bl-card-title-link { text-decoration: none; }

.bl-card-title {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--tx);
  margin: 0 0 16px;
  transition: color .2s;
}

.bl-card-title-link:hover .bl-card-title { color: var(--pur); }

.bl-card-body .bl-meta-row-sm { margin-top: auto; }

/* ── PAGINATION ───────────────────────────────────────── */
.bl-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
  direction: rtl;
}

.bl-page-btn {
  padding: 9px 20px;
  font-size: .85rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.bl-page-info {
  font-size: .8rem;
  color: var(--tx3);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 767.98px) {
  .bl-featured {
    flex-direction: column;
  }
  .bl-featured-media {
    flex: none;
    min-height: 220px;
  }
  .bl-featured-img { min-height: 220px; }
  .bl-featured-body { padding: 26px 22px; }
  .bl-featured-title { font-size: 1.3rem; }
}

@media (max-width: 575.98px) {
  .bl-filter-row { gap: 8px; }
  .bl-chip { padding: 7px 14px; font-size: .78rem; }
  .bl-featured-body { padding: 22px 18px; }
  .bl-pagination { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-featured-img,
  .bl-card-img,
  .bl-featured-title,
  .bl-card-title { transition: none; }
}