/* ==========================================================================
   Arcopet v2 · آرشیو مجله (templates/blog-archive.php، parts/blog/card.php)
   همان بخش‌های قالب قبلی؛ فقط var(--v2-*) تا حالت تاریک مجله هم درست باشد.
   ========================================================================== */

.v2-blog-archive{ padding-bottom:48px; }

/* سربرگ */
.v2-ba-hero{
  margin:8px 0 18px; padding:20px 16px; border-radius:var(--v2-radius-xl);
  background:var(--v2-tint); border:1px solid var(--v2-border);
}
.v2-ba-eyebrow{ display:inline-block; margin-bottom:6px; font-size:12px; font-weight:700; color:var(--v2-tint-text); }
.v2-ba-top{ display:flex; flex-wrap:wrap; align-items:flex-end; justify-content:space-between; gap:12px 24px; }
.v2-ba-intro{ flex:1 1 420px; min-width:0; }
.v2-ba-title{ margin:0 0 6px; font-size:var(--v2-fs-28); font-weight:800; line-height:1.5; color:var(--v2-heading); }
.v2-ba-desc{ margin:0; max-width:62ch; font-size:var(--v2-fs-16); line-height:1.9; color:var(--v2-text-subtle); }
.v2-ba-stat{ display:grid; justify-items:center; margin:0; padding:10px 18px; border-radius:var(--v2-radius-m); background:var(--v2-surface); }
.v2-ba-stat strong{ font-size:var(--v2-fs-22); font-weight:800; color:var(--v2-text); line-height:1.4; }
.v2-ba-stat span{ font-size:12px; color:var(--v2-text-muted); }

.v2-ba-search{
  position:relative; display:flex; align-items:center; gap:8px; margin-top:16px; padding:6px;
  border-radius:var(--v2-radius-m); background:var(--v2-surface); border:1px solid var(--v2-border);
}
.v2-ba-search:focus-within{ border-color:var(--v2-brand); box-shadow:0 0 0 3px var(--v2-brand-ring); }
.v2-ba-search > .v2-icon{ flex:none; width:22px; height:22px; margin-inline-start:8px; color:var(--v2-text-muted); }
.v2-ba-search input{ flex:1; min-width:0; min-height:44px; padding:0 4px; border:0; outline:none; background:none; font:inherit; font-size:var(--v2-fs-16); color:var(--v2-text); }
.v2-ba-search input::placeholder{ color:var(--v2-text-muted); }
.v2-ba-search .v2-btn{ flex:none; min-height:44px; padding-inline:18px; }

.v2-ba-cats{ display:flex; gap:8px; margin:14px -16px 0; padding:2px 16px 4px; overflow-x:auto; scrollbar-width:none; }
.v2-ba-cats::-webkit-scrollbar{ display:none; }
.v2-ba-chip{
  flex:none; display:inline-flex; align-items:center; gap:6px; min-height:40px; padding:0 14px;
  border-radius:999px; background:var(--v2-surface); border:1px solid var(--v2-border);
  font-size:var(--v2-fs-14); font-weight:500; color:var(--v2-text); white-space:nowrap;
}
.v2-ba-chip small{ font-size:11px; color:var(--v2-text-muted); }
.v2-ba-chip:hover{ border-color:var(--v2-border-strong); }
.v2-ba-chip.is-active{ border-color:var(--v2-brand); color:var(--v2-tint-text); font-weight:700; box-shadow:inset 0 0 0 1px var(--v2-brand); }
@media (min-width:768px){
  .v2-ba-hero{ padding:28px 28px 22px; }
  .v2-ba-cats{ flex-wrap:wrap; margin-inline:0; padding-inline:0; overflow:visible; }
}

/* نوار نتیجه و مرتب‌سازی */
.v2-ba-toolbar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:8px 16px; margin:0 0 14px; }
.v2-ba-result{ margin:0; font-size:var(--v2-fs-16); font-weight:700; color:var(--v2-text); }
.v2-ba-sort{ display:flex; align-items:center; gap:8px; font-size:var(--v2-fs-14); color:var(--v2-text-muted); }
.v2-ba-sort select{
  min-height:40px; padding:0 12px 0 32px; border-radius:var(--v2-radius-m); border:1px solid var(--v2-border);
  background:var(--v2-surface); color:var(--v2-text); font:inherit; font-size:var(--v2-fs-14);
}

/* کارت‌ها */
.v2-ba-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
@media (min-width:600px){ .v2-ba-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (min-width:992px){ .v2-ba-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); } }

.v2-bcard{
  position:relative; display:flex; flex-direction:column; min-width:0; overflow:hidden;
  border-radius:var(--v2-radius-l); background:var(--v2-surface); border:1px solid var(--v2-border);
  transition:box-shadow .2s, transform .2s;
}
.v2-bcard:hover{ box-shadow:var(--v2-shadow-card); }
.v2-bcard-media{ position:relative; display:block; aspect-ratio:3 / 2; background:var(--v2-surface-subtle); overflow:hidden; }
.v2-bcard-img{ display:block; width:100%; height:100%; object-fit:cover; }
.v2-bcard-placeholder{ display:grid; place-items:center; width:100%; height:100%; color:var(--v2-text-muted); }
.v2-bcard-placeholder .v2-icon{ width:40px; height:40px; }
.v2-bcard-cat{
  position:absolute; inset-block-start:10px; inset-inline-start:10px; padding:3px 10px; border-radius:999px;
  background:var(--v2-surface); color:var(--v2-tint-text); font-size:12px; font-weight:700; box-shadow:var(--v2-shadow-float);
}
.v2-bcard-body{ display:flex; flex-direction:column; gap:8px; flex:1; padding:14px 16px 16px; }
.v2-bcard-label{ display:inline-flex; align-items:center; gap:4px; font-size:12px; font-weight:700; color:var(--v2-tint-text); }
.v2-bcard-label .v2-icon{ width:16px; height:16px; }
.v2-bcard-title{ margin:0; font-size:var(--v2-fs-16); font-weight:700; line-height:1.8; }
.v2-bcard-title a{ color:var(--v2-text); }
.v2-bcard-title a::after{ content:""; position:absolute; inset:0; } /* کل کارت قابل کلیک */
.v2-bcard-title a:hover{ color:var(--v2-link); }
.v2-bcard-excerpt{
  margin:0; font-size:var(--v2-fs-14); line-height:1.9; color:var(--v2-text-subtle);
  display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.v2-bcard-foot{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; margin-top:auto; padding-top:10px; border-top:1px solid var(--v2-border); font-size:12px; color:var(--v2-text-muted); }
.v2-bcard-author{ display:inline-flex; align-items:center; gap:6px; min-width:0; color:var(--v2-text-subtle); }
.v2-bcard-avatar{ width:26px; height:26px; border-radius:50%; background:var(--v2-avatar-bg); }
.v2-bcard-meta{ display:inline-flex; align-items:center; gap:6px; }

/* مقاله‌ی شاخص */
.v2-bcard.is-featured{ margin-bottom:16px; }
.v2-bcard.is-featured .v2-bcard-title{ font-size:var(--v2-fs-22); line-height:1.7; }
.v2-bcard.is-featured .v2-bcard-excerpt{ font-size:var(--v2-fs-16); -webkit-line-clamp:4; }
@media (min-width:768px){
  .v2-bcard.is-featured{ flex-direction:row; }
  .v2-bcard.is-featured .v2-bcard-media{ flex:0 0 55%; aspect-ratio:auto; min-height:320px; }
  .v2-bcard.is-featured .v2-bcard-body{ padding:24px; justify-content:center; }
  .v2-bcard.is-featured .v2-bcard-foot{ margin-top:12px; }
}

/* صفحه‌بندی */
.v2-ba-pagination{ display:flex; flex-wrap:wrap; justify-content:center; gap:6px; margin-top:28px; }
.v2-ba-pagination .page-numbers{
  display:inline-grid; place-items:center; min-width:44px; min-height:44px; padding:0 12px;
  border-radius:var(--v2-radius-m); border:1px solid var(--v2-border); background:var(--v2-surface);
  font-size:var(--v2-fs-14); font-weight:700; color:var(--v2-text);
}
.v2-ba-pagination a.page-numbers:hover{ border-color:var(--v2-border-strong); }
.v2-ba-pagination .page-numbers.current{ background:var(--v2-brand); border-color:var(--v2-brand); color:var(--v2-on-brand); }
.v2-ba-pagination .page-numbers.dots{ border-color:transparent; background:none; }

/* بدون نتیجه */
.v2-ba-empty{ display:grid; justify-items:center; gap:8px; padding:48px 16px; text-align:center; border-radius:var(--v2-radius-l); border:1px dashed var(--v2-border-strong); }
.v2-ba-empty-icon{ display:grid; place-items:center; width:64px; height:64px; border-radius:50%; background:var(--v2-tint); color:var(--v2-tint-text); }
.v2-ba-empty-icon .v2-icon{ width:30px; height:30px; }
.v2-ba-empty h2{ margin:4px 0 0; font-size:var(--v2-fs-18); }
.v2-ba-empty p{ margin:0 0 6px; color:var(--v2-text-subtle); }
