/* صفحهٔ مقالهٔ وبلاگ — moobi shop */
.post {
  --b-gold: var(--gold, #ffbe18);
  --b-ink: #eef0f5;
  --b-ink-2: #c3c8d4;
  --b-muted: #8f97a8;
  --b-card: #141821;
  --b-card-2: #1a1f2b;
  --b-line: rgba(255, 255, 255, .09);
  max-width: 1180px; margin: 0 auto; padding: 104px 20px 72px; color: var(--b-ink);
}

/* مسیر صفحه */
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--b-muted); margin-bottom: 18px; }
.post-crumbs a { color: var(--b-ink-2); text-decoration: none; padding: 6px 0; }
.post-crumbs a:hover { color: var(--b-gold); }
.post-crumbs [aria-current] { color: var(--b-muted); }

/* سربرگ */
.post-head { max-width: 860px; }
.post-cat { display: inline-block; font-size: 12.5px; font-weight: 800; color: #111; background: var(--b-gold); padding: 4px 12px; border-radius: 99px; }
.post-head h1 { font-size: clamp(25px, 4.2vw, 40px); line-height: 1.55; font-weight: 900; margin: 14px 0 12px; color: #fff; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--b-muted); }
.post-meta span + span::before { content: "•"; margin-inline-end: 18px; color: rgba(255, 255, 255, .25); }
.post-cover { margin: 24px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--b-line); background: #0b0d12; aspect-ratio: 1200 / 630; }
.post-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* چیدمان: متن + ستونِ کناری */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 40px; margin-top: 36px; align-items: start; }
.post-side { grid-column: 2; grid-row: 1; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.post-body { grid-column: 1; grid-row: 1; min-width: 0; }

.post-toc, .post-series { background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; padding: 14px 16px; }
.post-toc summary { cursor: pointer; font-weight: 800; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.post-toc summary::-webkit-details-marker { display: none; }
.post-toc summary::after { content: "▾"; color: var(--b-gold); transition: transform .2s ease; }
.post-toc[open] summary::after { transform: rotate(180deg); }
.post-toc ol, .post-series ol { margin: 10px 0 0; padding-inline-start: 20px; display: flex; flex-direction: column; gap: 2px; }
.post-toc li, .post-series li { font-size: 14px; line-height: 1.7; color: var(--b-muted); }
.post-toc a, .post-series a { color: var(--b-ink-2); text-decoration: none; display: inline-block; padding: 4px 0; }
.post-toc a:hover, .post-series a:hover { color: var(--b-gold); }
.post-series b { font-size: 15px; }
.post-series [aria-current] { color: var(--b-gold); font-weight: 800; display: inline-block; padding: 4px 0; }

/* متنِ مقاله */
.post-body { font-size: 17px; line-height: 2.05; color: var(--b-ink-2); }
.post-body > p:first-child { font-size: 18px; color: var(--b-ink); }
.post-body p { margin: 0 0 18px; }
.post-body h2 { font-size: clamp(21px, 2.8vw, 26px); color: #fff; font-weight: 900; line-height: 1.6; margin: 42px 0 14px; scroll-margin-top: 96px; }
.post-body h2::before { content: ""; display: inline-block; width: 6px; height: .9em; background: var(--b-gold); border-radius: 3px; margin-inline-end: 10px; vertical-align: -2px; }
.post-body h3 { font-size: 19px; color: #fff; font-weight: 800; margin: 28px 0 10px; scroll-margin-top: 96px; }
.post-body a { color: var(--b-gold); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-inline-start: 24px; }
.post-body li { margin-bottom: 6px; }
.post-body strong { color: #fff; }
.post-body [dir="ltr"], .post-body .en { unicode-bidi: isolate; }
.post-body figure { margin: 22px 0 26px; }
.post-body figure img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--b-line); background: #0b0d12; }
.post-body figure.is-narrow img { max-width: 520px; margin: 0 auto; }
.post-body figcaption { font-size: 13.5px; color: var(--b-muted); text-align: center; margin-top: 8px; line-height: 1.8; }

/* جدول‌ها */
.post-table { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-card); -webkit-overflow-scrolling: touch; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
.post-table caption { caption-side: top; text-align: right; padding: 12px 16px 4px; font-weight: 800; color: #fff; }
.post-table th, .post-table td { padding: 11px 14px; text-align: right; border-bottom: 1px solid var(--b-line); line-height: 1.8; vertical-align: top; }
.post-table thead th { color: var(--b-gold); font-size: 13.5px; font-weight: 800; background: var(--b-card-2); white-space: nowrap; }
.post-table tbody tr:last-child td { border-bottom: 0; }
.post-table td:first-child { font-weight: 800; color: #fff; white-space: nowrap; }
.post-table .num { font-variant-numeric: tabular-nums; }

/* باکس‌های نکته */
.post-note { border: 1px solid rgba(255, 190, 24, .35); background: rgba(255, 190, 24, .07); border-radius: 14px; padding: 14px 16px; margin: 0 0 20px; font-size: 16px; }
.post-note b:first-child { color: var(--b-gold); }
.post-note--tip { border-color: rgba(80, 200, 140, .35); background: rgba(80, 200, 140, .07); }
.post-note--tip b:first-child { color: #6fdcaa; }

/* سؤالات متداول */
.post-faq details { background: var(--b-card); border: 1px solid var(--b-line); border-radius: 12px; margin-bottom: 10px; }
.post-faq summary { cursor: pointer; padding: 12px 16px; font-weight: 800; color: #fff; min-height: 44px; display: flex; align-items: center; }
.post-faq details p { padding: 0 16px 14px; margin: 0; }

/* دعوت به اقدام */
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 36px 0 26px; padding: 20px 22px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 190, 24, .16), rgba(255, 190, 24, .03)); border: 1px solid rgba(255, 190, 24, .35); }
.post-cta b { font-size: 18px; color: #fff; }
.post-cta p { margin: 6px 0 0; font-size: 15px; line-height: 1.9; }
.post-cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.post-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; font-weight: 800; font-size: 15px;
  background: var(--b-gold); color: #111 !important; text-decoration: none !important; transition: transform .15s ease, filter .15s ease; }
.post-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.post-btn--ghost { background: transparent; color: var(--b-gold) !important; border: 1px solid rgba(255, 190, 24, .55); }

/* قبلی / بعدی */
.post-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.post-pn a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--b-card); border: 1px solid var(--b-line);
  color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 15px; line-height: 1.7; transition: border-color .2s ease; }
.post-pn a:hover { border-color: rgba(255, 190, 24, .5); }
.post-pn small { color: var(--b-muted); font-weight: 500; font-size: 12.5px; }
.post-pn__next { text-align: left; grid-column: 2; }

/* مقاله‌های مرتبط */
.post-related { margin-top: 56px; }
.post-related h2 { font-size: 22px; font-weight: 900; color: #fff; margin: 0 0 16px; }
.post-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 8px; border-radius: 16px; overflow: hidden; background: var(--b-card); border: 1px solid var(--b-line);
  text-decoration: none; color: #fff; padding-bottom: 16px; transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: rgba(255, 190, 24, .45); }
.post-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.post-card__cat { font-size: 12px; color: var(--b-gold); font-weight: 800; padding: 4px 16px 0; }
.post-card b { font-size: 15.5px; line-height: 1.75; padding: 0 16px; }

.post a:focus-visible, .post summary:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; gap: 20px; margin-top: 24px; }
  .post-side { grid-column: 1; grid-row: 1; position: static; }
  .post-body { grid-row: 2; }
  .post-series { display: none; }
  .post-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .post { padding: 88px 16px 96px; }
  .post-body { font-size: 16px; line-height: 2; }
  .post-body > p:first-child { font-size: 17px; }
  .post-cover { border-radius: 14px; margin-top: 18px; }
  .post-related__grid { grid-template-columns: 1fr; }
  .post-pn { grid-template-columns: 1fr; }
  .post-pn__next { grid-column: 1; }
  .post-cta__btns, .post-cta__btns .post-btn { width: 100%; }
  .post-cta__btns .post-btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-btn, .post-toc summary::after { transition: none; }
  .post-card:hover, .post-btn:hover { transform: none; }
}

/* ── کارتِ کلاس (راهنمای کلاس‌های بتل رویال) ── */
.cls { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; margin: 18px 0 22px; padding: 16px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 16px; scroll-margin-top: 96px; }
.cls__img { margin: 0; }
.cls__img img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--b-line); background: #0b0d12; }
.cls__img figcaption { margin-top: 6px; font-size: 12px; color: var(--b-muted); text-align: center; line-height: 1.6; }
.cls h3 { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cls h3 .en { font-size: 15px; font-weight: 700; color: var(--b-gold); }
.cls p { margin: 0 0 10px; }
.cls ul { margin: 0 0 10px; }
.cls__counter { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; font-size: 14px; }
.cls__counter b { color: #fff; }
.cls__counter span { padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); border: 1px solid var(--b-line); color: var(--b-ink); }
.cls__counter span.is-none { color: var(--b-muted); }
@media (max-width: 640px) { .cls { grid-template-columns: 1fr; } .cls__img { max-width: 360px; } }

/* ── سطح‌های پرک (خاکستری تا طلایی) ── */
.tiers { list-style: none; padding: 0 !important; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tiers li { margin: 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--b-line); border-inline-start: 4px solid var(--t, #8a8f98); font-size: 15px; line-height: 1.7; }
.tiers li b { display: block; font-size: 12.5px; color: var(--b-muted); font-weight: 700; }
.tiers .t-gray { --t: #8a8f98; } .tiers .t-green { --t: #4caf50; } .tiers .t-blue { --t: #3d8bdb; } .tiers .t-purple { --t: #9b59d0; } .tiers .t-gold { --t: #f0a81c; }
.tiers .t-gold { grid-column: 1 / -1; background: rgba(240, 168, 28, .08); }

/* ── فهرستِ فشردهٔ کلاس‌ها (مقالهٔ مادر) ── */
.cls-mini { list-style: none; padding: 0 !important; margin: 0 0 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.cls-mini li { margin: 0; }
.cls-mini a { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 8px 10px; border-radius: 12px; background: var(--b-card); border: 1px solid var(--b-line); color: var(--b-ink-2); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.cls-mini a:hover { border-color: rgba(255, 196, 40, .55); transform: translateY(-1px); }
.cls-mini a:focus-visible, .sub-link:focus-visible { outline: 2px solid var(--b-gold); outline-offset: 2px; }
.cls-mini img { width: 104px; height: auto; flex: none; border-radius: 8px; }
.cls-mini span { display: flex; flex-direction: column; min-width: 0; line-height: 1.7; }
.cls-mini b { color: #fff; font-size: 15px; }
.cls-mini b span { display: inline; color: var(--b-gold); font-size: 12.5px; font-weight: 700; }
.cls-mini small { font-size: 13px; color: var(--b-muted); }

/* ── کارت‌های لینکِ زیرمجموعه ── */
.sub-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 22px; }
.sub-link { display: flex; flex-direction: column; gap: 4px; min-height: 64px; padding: 12px 14px; border-radius: 14px; background: var(--b-card); border: 1px solid var(--b-line); border-inline-start: 4px solid var(--b-gold); text-decoration: none !important; transition: border-color .2s ease, transform .2s ease; }
.sub-link:hover { border-color: rgba(255, 196, 40, .55); transform: translateY(-1px); }
.sub-link b { color: #fff; font-size: 15.5px; }
.sub-link small { color: var(--b-muted); font-size: 13px; line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .cls-mini a, .sub-link { transition: none; } .cls-mini a:hover, .sub-link:hover { transform: none; } }
