/* ============================================================
   tag-archive.css — آرشیو برچسب، مو‌به‌مو مطابق دیزاین Tag Archive
   ============================================================ */

.bm-tag { display: block; }

/* ===== HERO ===== */
.bm-tag-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--bm-border); }
.bm-tag-hero-blob1 { position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, var(--bm-primary) 0%, transparent 68%); opacity: .22; top: -260px; right: 8%; filter: blur(20px); pointer-events: none; }
.bm-tag-hero-blob2 { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, var(--bm-secondary) 0%, transparent 70%); opacity: .16; top: -120px; left: 14%; filter: blur(24px); pointer-events: none; }
.bm-tag-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 34px 24px 44px; }
.bm-tag-crumb { margin-bottom: 26px; }
.bm-tag-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px; background: var(--bm-primary-soft); border: 1px solid var(--bm-border); color: var(--bm-primary); font-size: 12.5px; font-weight: 700; margin-bottom: 18px; }
.bm-tag-title { margin: 0 0 14px; font-size: 46px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.2; }
.bm-tag-desc { margin: 0 0 24px; max-width: 580px; font-size: 16.5px; line-height: 2; color: var(--bm-text-sub); }
.bm-tag-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bm-tag-stat { display: inline-flex; align-items: center; gap: 9px; padding: 9px 18px; border-radius: 12px; background: var(--bm-surface); border: 1px solid var(--bm-border); box-shadow: var(--bm-shadow-sm); }
.bm-tag-stat-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.bm-tag-stat-ico-1 { background: var(--bm-primary-soft); color: var(--bm-primary); }
.bm-tag-stat-ico-2 { background: var(--bm-secondary-soft); color: var(--bm-secondary); }
.bm-tag-stat-num { font-size: 14px; font-weight: 800; }
.bm-tag-stat-lbl { font-size: 13px; color: var(--bm-text-mute); }

/* ===== TOOLBAR ===== */
.bm-tag-toolbar { border-bottom: 1px solid var(--bm-border); background: var(--bm-surface); position: sticky; top: var(--bm-header-h, 65px); z-index: 40; }
.bm-tag-toolbar-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.bm-tag-related { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.bm-tag-related-lbl { font-size: 12.5px; color: var(--bm-text-mute); font-weight: 600; margin-left: 4px; }
.bm-tag-chip { padding: 6px 13px; border-radius: 999px; background: var(--bm-surface-2); border: 1px solid var(--bm-border); color: var(--bm-text-sub); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: all .15s; }
.bm-tag-chip:hover { background: var(--bm-primary-soft); color: var(--bm-primary); border-color: transparent; }
.bm-tag-tools { display: flex; align-items: center; gap: 10px; }
.bm-tag-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; border: 1px solid var(--bm-border); border-radius: 11px; background: var(--bm-surface-2); width: 200px; }
.bm-tag-search input { flex: 1; background: transparent; border: none; outline: none; color: var(--bm-text); font-family: inherit; font-size: 13px; }
.bm-tag-sort { display: flex; align-items: center; border: 1px solid var(--bm-border); border-radius: 11px; background: var(--bm-surface-2); overflow: hidden; }
.bm-tag-sort-btn { padding: 0 14px; height: 40px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--bm-text-sub); cursor: pointer; text-decoration: none; }
.bm-tag-sort-btn.is-on { font-weight: 700; background: var(--bm-primary); color: #fff; }

/* ===== TWO COLUMN ===== */
.bm-tag-layout { max-width: 1200px; margin: 0 auto; padding: 34px 24px 64px; display: grid; grid-template-columns: 1fr 300px; gap: 38px; align-items: start; }
.bm-tag-main { min-width: 0; }
.bm-tag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* کارت مقاله */
.bm-tag-card { background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: 20px; overflow: hidden; box-shadow: var(--bm-shadow-md); cursor: pointer; transition: transform .18s, box-shadow .18s; text-decoration: none; display: block; }
.bm-tag-card:hover { transform: translateY(-6px); box-shadow: var(--bm-shadow-xl); }
.bm-tag-card-img { height: 172px; position: relative; }
.bm-tag-card-cat { position: absolute; top: 13px; right: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(10,15,31,.55); backdrop-filter: blur(4px); color: #fff; font-size: 11px; font-weight: 700; border: 1px solid rgba(255,255,255,.18); }
.bm-tag-card-body { padding: 20px; }
.bm-tag-card-meta { display: flex; align-items: center; gap: 13px; font-size: 12px; color: var(--bm-text-mute); margin-bottom: 11px; }
.bm-tag-card-meta span { display: flex; align-items: center; gap: 5px; }
.bm-tag-card-body h3 { margin: 0 0 9px; font-size: 17px; font-weight: 700; line-height: 1.6; color: var(--bm-text); }
.bm-tag-card-body p { margin: 0 0 16px; font-size: 13px; line-height: 1.9; color: var(--bm-text-sub); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-tag-card-author { display: flex; align-items: center; gap: 9px; padding-top: 14px; border-top: 1px solid var(--bm-border); }
.bm-tag-card-av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.bm-tag-card-name { font-size: 12.5px; font-weight: 600; color: var(--bm-text-sub); }
.bm-tag-card-arrow { margin-right: auto; color: var(--bm-primary); font-size: 16px; }

/* صفحه‌بندی */
.bm-tag-pag { margin-top: 38px; }

/* حالت خالی */
.bm-tag-empty { background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: 20px; padding: 60px 30px; text-align: center; }
.bm-tag-empty-ico { display: block; margin-bottom: 18px; opacity: .6; }
.bm-tag-empty h3 { margin: 0 0 10px; font-size: 19px; font-weight: 800; }
.bm-tag-empty p { font-size: 14px; color: var(--bm-text-sub); margin-bottom: 20px; }

/* ===== سایدبار (مو‌به‌مو مطابق دیزاین) ===== */
.bm-tag-side { position: sticky; top: calc(var(--bm-header-h, 65px) + 60px); display: flex; flex-direction: column; gap: 18px; }

/* کارت پایه */
.bm-side-card { background: var(--bm-surface); border: 1px solid var(--bm-border); border-radius: 18px; box-shadow: var(--bm-shadow-md); padding: 20px; }
.bm-side-title { margin: 0 0 14px; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; color: var(--bm-text); }
.bm-side-bar { width: 6px; height: 18px; border-radius: 3px; flex: 0 0 auto; }
.bm-side-bar-primary   { background: var(--bm-primary); }
.bm-side-bar-accent    { background: var(--bm-accent); }
.bm-side-bar-secondary { background: var(--bm-secondary); }

/* دسته‌بندی‌ها */
.bm-side-cats { display: flex; flex-direction: column; gap: 3px; }
.bm-side-cat { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.bm-side-cat:hover { background: var(--bm-surface-2); }
.bm-side-cat-name { font-size: 13.5px; font-weight: 600; color: var(--bm-text-sub); }
.bm-side-cat-count { font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--bm-surface-2); color: var(--bm-text-mute); }

/* نوشته‌های محبوب */
.bm-side-popular { display: flex; flex-direction: column; gap: 14px; }
.bm-side-pop { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.bm-side-pop-img { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 12px; position: relative; }
.bm-side-pop-rank { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--bm-surface); border: 1px solid var(--bm-border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: var(--bm-primary); }
.bm-side-pop-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bm-side-pop-title { font-size: 13px; font-weight: 700; line-height: 1.6; color: var(--bm-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-side-pop-read { font-size: 11px; color: var(--bm-text-mute); }

/* ابر برچسب‌ها */
.bm-side-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-side-tag { padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 600; text-decoration: none; border: 1px solid var(--bm-border); background: var(--bm-surface-2); color: var(--bm-text-sub); transition: all .15s; }
.bm-side-tag:hover { background: var(--bm-primary-soft); color: var(--bm-primary); border-color: transparent; }
.bm-side-tag.is-on { background: var(--bm-primary-soft); color: var(--bm-primary); border-color: transparent; }

/* خبرنامه‌ی گرادیانی */
.bm-side-news { border-radius: 18px; padding: 24px; background: linear-gradient(150deg, var(--bm-primary), var(--bm-primary-dark) 75%); box-shadow: var(--bm-shadow-lg); position: relative; overflow: hidden; color: #fff; }
.bm-side-news-blob { position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.10); top: -60px; left: -40px; pointer-events: none; }
.bm-side-news-inner { position: relative; }
.bm-side-news-ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bm-side-news-title { margin: 0 0 7px; font-size: 16px; font-weight: 800; color: #fff; }
.bm-side-news-sub { margin: 0 0 16px; font-size: 12.5px; line-height: 1.9; opacity: .9; }
.bm-side-news form { display: block; }
.bm-side-news input { width: 100%; height: 42px; border: none; border-radius: 11px; padding: 0 14px; font-family: inherit; font-size: 13px; margin-bottom: 10px; outline: none; background: rgba(255,255,255,.95); color: #0F172A; }
.bm-side-news button { width: 100%; height: 42px; border: none; border-radius: 11px; background: #fff; color: var(--bm-primary); font-family: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }

/* ریسپانسیو */
@media (max-width: 980px) {
    .bm-tag-layout { grid-template-columns: 1fr; }
    .bm-tag-side { position: static; }
    .bm-tag-grid { grid-template-columns: 1fr; }
    .bm-tag-title { font-size: 34px; }
    .bm-tag-toolbar { position: static; }
}
