/* css/blog-post.bundle.css: generated ordered bundle. Section order is intentional. */

/* ===== BEGIN css/blog-reader.css ===== */
/* ═══════════════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Blog Reader UX & Typography Engine (v4.0)
   طراحی استاندارد بین‌المللی خوانایی و تجربه کاربری مطالعه بدون خستگی چشم
   بر مبنای اصول معتبر تایپوگرافی دیجیتال، WCAG 2.2 AA، The Elements of Typographic Style
   ═══════════════════════════════════════════════════════════════════════ */

/* ── ۱. ساختار چیدمان و عرض بهینه خوانش (Optimal Reading Measure: 65-72ch) ── */
.post-layout {
  max-width: var(--za-container, 1140px) !important;
  margin: 0 auto !important;
  padding: 36px var(--za-gutter, 24px) 56px !important;
}

.post-page {
  max-width: 760px !important; /* طول خط ایده‌آل برای جلوگیری از خستگی چشم در حرکت رفت و برگشت سطرها */
  margin: 0 auto !important;
}

/* ── ۲. تایپوگرافی مقاله (Article Typography) ── */
.post-content {
  font-family: 'Vazirmatn', 'IRANSans', Tahoma, -apple-system, sans-serif !important;
  font-size: 1.125rem !important; /* ۱۸ پیکسل؛ سایز ارگونومیک برای متن فارسی در مانیتورها */
  line-height: 2.15 !important;    /* لیدینگ بهینه برای جلوگیری از تداخل سطرها و اعراب حروف فارسی */
  color: var(--za-text-sub, #CBD5E1) !important;
  letter-spacing: 0.01em !important;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
}

/* پاراگراف‌ها با فاصله عمودی منظم و ریتم متناسب */
.post-content p {
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  text-wrap: pretty !important;
}

/* تیترهای داخلی با مقیاس و وزن‌های تمایزیافته */
.post-content h2 {
  font-size: clamp(1.35rem, 3vw, 1.8rem) !important;
  font-weight: 850 !important;
  color: #FFFFFF !important;
  line-height: 1.45 !important;
  margin: 40px 0 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid rgba(94, 234, 212, 0.22) !important;
  display: flex;
  align-items: baseline;
  gap: 10px;
  text-wrap: balance !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.post-content h2::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 22px;
  background: var(--za-teal, #5EEAD4);
  border-radius: 4px;
}

.post-content h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.45rem) !important;
  font-weight: 750 !important;
  color: #F1F5F9 !important;
  line-height: 1.45 !important;
  margin: 36px 0 16px !important;
  text-wrap: balance !important;
}

.post-content h4 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--za-teal, #5EEAD4) !important;
  margin: 28px 0 12px !important;
}

/* ── ۳. لیست‌ها با گوی‌های نشانگر اختصاصی ── */
.post-content ul,
.post-content ol {
  margin: 20px 0 28px !important;
  padding-inline-start: 28px !important;
}

.post-content li {
  margin-bottom: 12px !important;
  line-height: 1.95 !important;
}

.post-content li::marker {
  color: var(--za-teal, #5EEAD4) !important;
  font-weight: 700;
}

/* ── ۴. بلوک‌های نقل‌قول و نکات کلیدی (Callouts & Quotes) ── */
.post-content blockquote {
  position: relative !important;
  margin: 32px 0 !important;
  padding: 20px 24px !important;
  background: linear-gradient(135deg, rgba(13, 115, 119, 0.14) 0%, rgba(15, 23, 42, 0.85) 100%) !important;
  border-radius: 12px !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-right: 4px solid var(--za-teal, #5EEAD4) !important;
  color: #F1F5F9 !important;
  font-size: 1.05rem !important;
  line-height: 2 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

[dir="ltr"] .post-content blockquote {
  border-right: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-left: 4px solid var(--za-teal, #5EEAD4) !important;
}

/* باکس‌های راهنما (Tips & Highlights) */
.post-content .hl-box {
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin: 28px 0 !important;
  line-height: 1.95 !important;
}

.post-content .hl-tip {
  background: rgba(16, 185, 129, 0.1) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  color: #E2E8F0 !important;
}

.post-content .hl-warning {
  background: rgba(245, 158, 11, 0.1) !important;
  border: 1px solid rgba(251, 191, 36, 0.3) !important;
  color: #F8FAFC !important;
}

/* ── ۵. کدهای برنامه‌نویسی PLC و اسکریپت‌ها ── */
.post-content code {
  background: rgba(94, 234, 212, 0.12) !important;
  color: var(--za-teal, #5EEAD4) !important;
  border: 1px solid rgba(94, 234, 212, 0.2) !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  font-family: 'Fira Code', 'Consolas', monospace !important;
  font-size: 0.9em !important;
}

.code-block-wrapper {
  background: #0B1322 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45) !important;
  margin: 28px 0 !important;
}

.copy-code-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #F1F5F9 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-weight: 700 !important;
}

.copy-code-btn:hover {
  background: var(--za-teal, #5EEAD4) !important;
  color: #0A1628 !important;
  border-color: var(--za-teal, #5EEAD4) !important;
}

/* ── ۶. جدول‌های مقایسه‌ای و فنی ── */
.post-content table {
  width: 100% !important;
  background: rgba(15, 23, 42, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
  margin: 28px 0 !important;
}

.post-content th {
  background: rgba(13, 115, 119, 0.3) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  padding: 14px 16px !important;
  border-bottom: 2px solid var(--za-teal, #5EEAD4) !important;
}

.post-content td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  color: var(--za-text-sub, #CBD5E1) !important;
}

.post-content tr:hover td {
  background: rgba(94, 234, 212, 0.05) !important;
}

/* ── ۷. قاب و فریم تصاویر مقاله (بهینه‌سازی مدرن، فشرده‌سازی قاب و نمایش کامل تصویر) ── */
.post-hero {
  position: relative !important;
  width: 100% !important;
  margin: 0 auto 28px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: rgba(10, 22, 40, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.post-hero img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: contain !important; /* تضمین نمایش کامل تصویر بدون هیچ‌گونه برش */
  display: block !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
}

.post-content figure {
  margin: 28px auto !important;
  max-width: 100% !important;
  text-align: center !important;
}

.post-content img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 520px !important;
  object-fit: contain !important; /* نمایش ۱۰۰٪ کامل تصویر بدون برش */
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
  display: block !important;
  margin: 20px auto !important;
  background: rgba(10, 22, 40, 0.4) !important;
}

.post-content figcaption {
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.84rem !important;
  line-height: 1.6 !important;
  margin-top: 10px !important;
  text-align: center !important;
  padding: 0 10px !important;
}

/* ── ۸. فهرست مطالب (TOC) ── */
.post-toc {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.post-toc-header {
  color: #FFFFFF !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  padding: 14px 20px !important;
}

.post-toc-link {
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.9rem !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
}

.post-toc-link:hover {
  background: rgba(94, 234, 212, 0.1) !important;
  color: var(--za-teal, #5EEAD4) !important;
}

.post-toc-link.toc-active {
  background: rgba(13, 115, 119, 0.25) !important;
  color: #5EEAD4 !important;
  font-weight: 800 !important;
}

/* ── ۱۰. هدر مقاله و اطلاعات متا ── */
.post-header h1 {
  font-size: clamp(1.6rem, 3.8vw, 2.35rem) !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  line-height: 1.35 !important;
  letter-spacing: -0.02em !important;
  text-wrap: balance !important;
  margin: 14px 0 16px !important;
}

.post-cat {
  background: rgba(13, 115, 119, 0.3) !important;
  color: var(--za-teal, #5EEAD4) !important;
  border: 1px solid rgba(94, 234, 212, 0.3) !important;
  font-weight: 800 !important;
}

.post-meta {
  color: var(--za-text-muted, #94A3B8) !important;
  font-size: 0.88rem !important;
  gap: 20px !important;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-reading-time {
  color: #FBBF24 !important; /* رنگ طلایی برای ترغیب و شفافیت زمان مطالعه */
  font-weight: 750 !important;
}

/* ── ۱۱. نوار اسکرول پروگرس بالای صفحه ── */
.scroll-progress {
  height: 4px !important;
  background: linear-gradient(90deg, #10B981, #5EEAD4, #38BDF8) !important;
  box-shadow: 0 0 10px rgba(94, 234, 212, 0.8) !important;
  z-index: 99999 !important;
}

/* ── ۱۲. کارت نویسنده و کارت مقالات مرتبط ── */
.author-card {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  padding: 24px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35) !important;
}

.author-name {
  color: #FFFFFF !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.author-bio {
  color: var(--za-text-sub, #CBD5E1) !important;
  font-size: 0.9rem !important;
  line-height: 1.8 !important;
}

.related-section {
  margin-top: 48px !important;
  padding-top: 36px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.related-section h3 {
  color: #FFFFFF !important;
  font-size: 1.35rem !important;
  font-weight: 850 !important;
  margin-bottom: 20px !important;
}

.related-card {
  background: #0B1322 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  transition: all 0.28s ease !important;
}

.related-card:hover {
  border-color: var(--za-teal, #5EEAD4) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 14px rgba(94, 234, 212, 0.15) !important;
}

.related-title {
  color: #FFFFFF !important;
  font-weight: 750 !important;
  line-height: 1.5 !important;
}

.related-cat {
  background: rgba(13, 115, 119, 0.3) !important;
  color: var(--za-teal, #5EEAD4) !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   بهینه‌سازی ارگونومیک، استاندارد و جامع مطالعه در تبلت و موبایل (Mobile & Tablet Reading Engine)
   ═══════════════════════════════════════════════════════════════════════ */

/* تبلت‌ها و صفحات متوسط (کوچک‌تر از ۱۰۲۴ پیکسل) */
@media (max-width: 1024px) {
  .post-layout {
    padding-top: 28px !important; padding-bottom: 48px !important;
  }
  
  .post-page {
    max-width: 100% !important;
  }
  
  /* فشرده‌سازی هوشمند قاب تصویر در تبلت */
  .post-hero {
    margin-bottom: 20px !important;
    border-radius: 12px !important;
  }
  
  .post-hero img {
    max-height: 380px !important;
    object-fit: contain !important; /* تصویر کامل و بدون کراپ در قاب فشرده */
  }

  .post-content img {
    max-height: 400px !important;
    margin: 16px auto !important;
  }
}

/* موبایل‌ها و تبلت‌های کوچک (کوچک‌تر از ۷۶۸ پیکسل) */
@media (max-width: 768px) {
  .post-layout {
    padding-top: 16px !important; padding-bottom: 36px !important;
  }

  .post-header {
    margin-bottom: 20px !important;
  }

  .post-cat {
    font-size: 0.72rem !important;
    padding: 2px 10px !important;
    margin-bottom: 8px !important;
  }

  .post-header h1 {
    font-size: clamp(1.35rem, 5.2vw, 1.75rem) !important;
    line-height: 1.4 !important;
    margin: 10px 0 14px !important;
    letter-spacing: -0.01em !important;
  }

  .post-meta {
    font-size: 0.78rem !important;
    gap: 10px 14px !important;
    line-height: 1.6 !important;
    padding-bottom: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* فشرده‌سازی ارگونومیک قاب هیرو در موبایل بدون از دست رفتن محتوای تصویر */
  .post-hero {
    margin-bottom: 16px !important;
    border-radius: 10px !important;
    background: rgba(8, 18, 32, 0.7) !important;
    padding: 4px !important;
  }

  .post-hero img {
    max-height: 260px !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* تصویر کاملاً کامل در قاب دیده می‌شود */
    border-radius: 8px !important;
  }

  /* فشرده‌سازی قاب تصاویر داخل متن */
  .post-content figure {
    margin: 16px auto !important;
  }

  .post-content img {
    max-height: 280px !important;
    margin: 14px auto !important;
    border-radius: 8px !important;
    object-fit: contain !important;
    padding: 2px !important;
  }

  .post-content figcaption {
    font-size: 0.78rem !important;
    margin-top: 6px !important;
    color: var(--za-text-muted, #94A3B8) !important;
  }

  /* دکمه‌های اشتراک‌گذاری فشرده و لمسی در موبایل */
  .post-share {
    gap: 6px !important;
    margin-bottom: 20px !important;
  }

  .share-btn {
    padding: 6px 10px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
  }

  /* فهرست مطالب کامپکت و ارگونومیک */
  .post-toc {
    border-radius: 10px !important;
    margin-bottom: 20px !important;
  }

  .post-toc-header {
    padding: 10px 14px !important;
    font-size: 0.88rem !important;
  }

  .post-toc-link {
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
    line-height: 1.5 !important;
  }

  /* تایپوگرافی روان و استاندارد خوانش متن بدون خستگی چشم در موبایل */
  .post-content {
    font-size: 1rem !important; /* ۱۶ پیکسل دقیق؛ استاندارد طلایی موبایل */
    line-height: 1.95 !important;
    letter-spacing: 0 !important;
  }

  .post-content p {
    margin-bottom: 16px !important;
  }

  .post-content h2 {
    font-size: 1.25rem !important;
    margin: 32px 0 14px !important;
    padding-bottom: 8px !important;
    line-height: 1.4 !important;
  }

  .post-content h2::before {
    height: 18px !important;
    width: 4px !important;
  }

  .post-content h3 {
    font-size: 1.1rem !important;
    margin: 24px 0 12px !important;
    line-height: 1.45 !important;
  }

  .post-content h4 {
    font-size: 0.98rem !important;
    margin: 16px 0 10px !important;
  }

  /* لیست‌ها در موبایل */
  .post-content ul,
  .post-content ol {
    margin: 14px 0 20px !important;
    padding-inline-start: 20px !important;
  }

  .post-content li {
    margin-bottom: 8px !important;
    line-height: 1.8 !important;
  }

  /* باکس‌های راهنما و نقل قول در موبایل */
  .post-content blockquote {
    margin: 20px 0 !important;
    padding: 14px 16px !important;
    font-size: 0.92rem !important;
    line-height: 1.85 !important;
    border-radius: 8px !important;
  }

  .post-content .hl-box {
    padding: 14px 16px !important;
    margin: 16px 0 !important;
    font-size: 0.92rem !important;
    border-radius: 8px !important;
  }

  /* جدول‌ها - اسکرول افقی روان بدون به‌هم‌ریختگی صفحه */
  .post-content .table-wrapper {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 16px 0 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .post-content table {
    font-size: 0.82rem !important;
    margin: 0 !important;
  }

  .post-content th,
  .post-content td {
    padding: 8px 10px !important;
    white-space: nowrap !important;
  }

  /* کدهای درون‌متنی و بلاک کد */
  .post-content code {
    font-size: 0.85em !important;
    padding: 2px 4px !important;
  }

  .post-content pre {
    padding: 12px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 8px !important;
  }
}

/* موبایل‌های بسیار باریک (کمتر از ۴۲۰ پیکسل) */
@media (max-width: 420px) {
  .post-layout {
    padding-top: 14px !important; padding-bottom: 28px !important;
  }

  .post-hero img {
    max-height: 210px !important;
  }

  .post-content img {
    max-height: 230px !important;
  }

  .post-header h1 {
    font-size: 1.25rem !important;
  }

  .post-content {
    font-size: 0.96rem !important;
    line-height: 1.9 !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Enhanced Reader Ergonomics & Light/Dark Theme Engine (v5.0)
   استانداردسازی پیشرفته خوانایی مقاله، محافظت چشم و هماهنگی کامل تم
   ═══════════════════════════════════════════════════════════════════════ */

/* ── بهینه‌سازی پاراگراف‌ها و پیوندهای درون متنی برای جلوگیری از خستگی چشم ── */
.post-content p {
  text-align: justify !important;
  text-justify: inter-word !important;
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  word-spacing: 0.05em !important;
}

[dir="ltr"] .post-content p {
  text-align: left !important;
}

.post-content a {
  color: var(--za-teal, #5EEAD4) !important;
  text-decoration: underline !important;
  text-decoration-color: rgba(94, 234, 212, 0.4) !important;
  text-underline-offset: 4px !important;
  text-decoration-thickness: 1.5px !important;
  transition: all 0.2s ease !important;
}

.post-content a:hover {
  color: #38BDF8 !important;
  text-decoration-color: #38BDF8 !important;
}

.post-content strong,
.post-content b {
  font-weight: 850 !important;
  color: #FFFFFF !important;
}

/* ── استایل اختصاصی تم روشن (Light Mode) برای جلوگیری از خستگی چشم در محیط پرنور ── */
[data-theme="light"] {
  --za-navy: #F8FAFC !important;
  --za-page-bg: #F8FAFC !important;
  --za-surface: #FFFFFF !important;
  --za-surface-card: #FFFFFF !important;
  --za-text: #0F172A !important;
  --za-text-sub: #334155 !important;
  --za-text-muted: #64748B !important;
  --za-heading: #0F172A !important;
  --za-border: rgba(0, 0, 0, 0.08) !important;
  --za-border-strong: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] body {
  background-color: #F8FAFC !important;
  color: #334155 !important;
}

[data-theme="light"] .post-content {
  color: #334155 !important;
}

[data-theme="light"] .post-content strong,
[data-theme="light"] .post-content b {
  color: #0F172A !important;
}

[data-theme="light"] .post-header h1 {
  color: #0F172A !important;
}

[data-theme="light"] .post-content h2,
[data-theme="light"] .post-content h3 {
  color: #0F172A !important;
}

[data-theme="light"] .post-content h2 {
  border-bottom-color: rgba(13, 148, 136, 0.25) !important;
}

[data-theme="light"] .post-content h2::before {
  background: #0D9488 !important;
}

[data-theme="light"] .post-content h4 {
  color: #0D9488 !important;
}

[data-theme="light"] .post-content a {
  color: #0D9488 !important;
  text-decoration-color: rgba(13, 148, 136, 0.4) !important;
}

[data-theme="light"] .post-content a:hover {
  color: #0284C7 !important;
  text-decoration-color: #0284C7 !important;
}

[data-theme="light"] .post-content blockquote {
  background: #F1F5F9 !important;
  border-color: rgba(13, 148, 136, 0.25) !important;
  border-right-color: #0D9488 !important;
  color: #1E293B !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"][dir="ltr"] .post-content blockquote {
  border-right-color: rgba(13, 148, 136, 0.25) !important;
  border-left-color: #0D9488 !important;
}

[data-theme="light"] .post-content code {
  background: rgba(13, 148, 136, 0.1) !important;
  color: #0F766E !important;
  border-color: rgba(13, 148, 136, 0.2) !important;
}

[data-theme="light"] .post-toc {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .post-toc-header {
  color: #0F172A !important;
}

[data-theme="light"] .post-toc-link {
  color: #475569 !important;
}

[data-theme="light"] .post-toc-link:hover {
  background: rgba(13, 148, 136, 0.08) !important;
  color: #0D9488 !important;
}

[data-theme="light"] .post-toc-link.toc-active {
  background: rgba(13, 148, 136, 0.15) !important;
  color: #0F766E !important;
}

[data-theme="light"] .author-card,
[data-theme="light"] .post-cta {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .author-name,
[data-theme="light"] .post-cta h3 {
  color: #0F172A !important;
}

[data-theme="light"] .author-bio,
[data-theme="light"] .post-cta p {
  color: #475569 !important;
}

[data-theme="light"] .share-btn {
  background: #FFFFFF !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .sticky-share-btn,
[data-theme="light"] .dark-mode-toggle {
  background: #FFFFFF !important;
  color: #334155 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}

[data-theme="light"] .related-card {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .related-title {
  color: #0F172A !important;
}

[data-theme="light"] .post-content table {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .post-content th {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-bottom-color: #0D9488 !important;
}

[data-theme="light"] .post-content td {
  color: #334155 !important;
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .post-content tr:hover td {
  background: rgba(13, 148, 136, 0.04) !important;
}

[data-theme="light"] .post-hero {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .post-content img {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* ── استایل دکمه‌های کنترل اندازه فونت (Font Resizer) ── */
.reading-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  padding: 6px 12px !important;
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  width: fit-content !important;
}

[data-theme="light"] .reading-controls {
  background: #FFFFFF !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.reading-controls-label {
  font-size: 0.8rem !important;
  color: var(--za-text-muted, #94A3B8) !important;
  font-weight: 600 !important;
  margin-left: 4px !important;
}

[data-theme="light"] .reading-controls-label {
  color: #64748B !important;
}

.font-size-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #F1F5F9 !important;
  border-radius: 6px !important;
  padding: 2px 8px !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

[data-theme="light"] .font-size-btn {
  background: #F1F5F9 !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #1E293B !important;
}

.font-size-btn:hover {
  background: var(--za-teal, #5EEAD4) !important;
  color: #0A1628 !important;
}

[data-theme="light"] .font-size-btn:hover {
  background: #0D9488 !important;
  color: #FFFFFF !important;
}


/* ═══════════════════════════════════════════════════════════════════════
   CRITICAL CONTRAST FIXES: Sticky Share Tooltip & Bottom CTA Button
   اصلاح قطعی کنتراست رنگ فونت و پس‌زمینه در تولتیپ سایدبار و دکمه CTA پایین صفحه
   ═══════════════════════════════════════════════════════════════════════ */

/* ۱. اصلاح تولتیپ اشتراک‌گذاری (توییتر و سایر شبکه‌ها) — متن کاملاً سفید و واضح روی پس‌زمینه تیره کدر */
.sticky-share-btn .sticky-tooltip,
.sticky-tooltip {
  background: #0B1322 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55) !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  z-index: 99999 !important;
  text-shadow: none !important;
}

[data-theme="light"] .sticky-share-btn .sticky-tooltip,
[data-theme="light"] .sticky-tooltip {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* ۲. اصلاح دکمه «تماس با من» در انتهای مقاله — متن پررنگ و کاملاً خوانا روی دکمه سفید */
.cta-btn-primary {
  background: #FFFFFF !important;
  color: #0A1628 !important; /* رنگ سرمه‌ای بسیار تیره صنعتی با کنتراست بیش از 15:1 */
  font-weight: 850 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.22s ease !important;
}

.cta-btn-primary:hover {
  background: #F1F5F9 !important;
  color: #040D1A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

.cta-btn-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 750 !important;
}

.cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* ===== END {p} ===== */

/* ===== BEGIN css/post-content.css ===== */
/* ═══════════════════════════════════════════════════════════════════
   Automation Sanati Zamani — Post Content v3.0 — Article Typography & Components
   "Engineering That Educates" — professional journal-grade reading experience.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════ POST LAYOUT ═══════ */
.post-layout { max-width: var(--za-container, 1140px); margin: 0 auto; padding: 32px var(--za-gutter, 24px) 0; }
.post-page { max-width: 760px; margin: 0 auto; }

/* ═══════ BREADCRUMB ═══════ */
.post-breadcrumb {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--bl-text-muted); margin-bottom: 24px;
}
.post-breadcrumb a { color: var(--bl-accent); text-decoration: none; font-weight: 500; }
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb .sep { color: var(--bl-text-muted); margin: 0 2px; }
.post-breadcrumb .current { color: var(--bl-text-soft); }

/* ═══════ ARTICLE HEADER ═══════ */
.post-header { margin-bottom: 28px; }
.post-cat {
  display: inline-block; padding: 4px 14px; border-radius: 6px;
  background: var(--bl-accent-soft); color: var(--bl-accent);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 14px;
}
.post-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 800;
  color: var(--bl-text); line-height: 1.35; margin: 0 0 14px;
  letter-spacing: -0.3px;
}

/* ── Post Meta ── */
.post-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--bl-text-muted);
}
.post-meta span { display: flex; align-items: center; gap: 4px; }
.post-reading-time { color: var(--bl-accent); font-weight: 600; }

/* ═══════ HERO IMAGE ═══════ */
.post-hero {
  margin-bottom: 28px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.post-hero img { width: 100%; display: block; border-radius: 14px; }

/* ═══════ SHARE BUTTONS ═══════ */
.post-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.post-share .share-label { font-size: 0.85rem; color: var(--bl-text-muted); font-weight: 600; margin-left: 4px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 8px; font-size: 0.82rem;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: var(--bl-transition); border: 1px solid var(--bl-border-strong);
  background: var(--bl-surface); color: var(--bl-text-soft);
  font-family: inherit;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.share-btn.share-tg:hover { background: #0088CC; color: #fff; border-color: #0088CC; }
.share-btn.share-wa:hover { background: #25D366; color: #fff; border-color: #25D366; }
.share-btn.share-tw:hover { background: #000; color: #fff; border-color: #000; }
.share-btn.share-li:hover { background: #0077B5; color: #fff; border-color: #0077B5; }
.share-btn.share-copy { background: var(--bl-accent-soft); border-color: transparent; }
.share-btn.share-copy:hover { background: var(--bl-accent); color: #fff; }
.share-btn.share-copy.copied { background: #10B981; color: #fff; }
.social-icon-share { width: 16px; height: 16px; }
.social-icon-twitter { filter: brightness(1); }
[data-theme="dark"] .social-icon-twitter { filter: brightness(10); }

/* ═══════ TABLE OF CONTENTS ═══════ */
.post-toc-wrapper { margin-bottom: 28px; }
.post-toc {
  background: var(--bl-toc-bg); border: 1px solid var(--bl-toc-border);
  border-radius: 12px; overflow: hidden; transition: var(--bl-transition);
}
.post-toc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; cursor: pointer; user-select: none;
  font-size: 0.95rem; font-weight: 700; color: var(--bl-text);
  background: transparent; transition: background 0.2s;
}
.post-toc-header:hover { background: var(--bl-accent-soft); }
.post-toc-toggle { font-size: 0.75rem; color: var(--bl-text-muted); transition: transform 0.2s; }
.post-toc.collapsed .post-toc-body { display: none; }
.post-toc.collapsed .post-toc-toggle { transform: rotate(-90deg); }
.post-toc-body { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 2px; }
.post-toc-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 6px;
  font-size: 0.85rem; color: var(--bl-text-soft);
  text-decoration: none; transition: var(--bl-transition);
}
.post-toc-link:hover { background: var(--bl-accent-soft); color: var(--bl-accent); }
.post-toc-link.toc-active {
  background: var(--bl-accent-soft); color: var(--bl-accent);
  font-weight: 600; border-right: 3px solid var(--bl-accent);
}
[dir="rtl"] .post-toc-link.toc-active { border-right: none; border-left: 3px solid var(--bl-accent); }
.toc-level-3 { padding-right: 24px; }
[dir="rtl"] .toc-level-3 { padding-right: 10px; padding-left: 24px; }
.toc-num {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 4px;
  background: var(--bl-accent); color: #fff;
  font-size: 0.7rem; font-weight: 700; flex-shrink: 0;
}

/* ═══════ ARTICLE CONTENT — Typography ═══════ */
.post-content {
  font-size: 17px; line-height: 1.95; color: var(--bl-text);
}

.post-content h2 {
  font-size: 1.45rem; font-weight: 800; color: var(--bl-text);
  margin: 44px 0 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--bl-border-strong);
  letter-spacing: -0.2px; line-height: 1.35;
}
.post-content h3 {
  font-size: 1.2rem; font-weight: 700; color: var(--bl-text);
  margin: 32px 0 12px; line-height: 1.4;
}
.post-content h4 {
  font-size: 1.05rem; font-weight: 700; color: var(--bl-text);
  margin: 24px 0 8px;
}

.post-content p { margin-bottom: 20px; }

.post-content ul, .post-content ol {
  margin-bottom: 20px; padding-right: 24px;
}
[dir="ltr"] .post-content ul, [dir="ltr"] .post-content ol { padding-right: 0; padding-left: 24px; }
.post-content li { margin-bottom: 8px; line-height: 1.85; }

.post-content a {
  color: var(--bl-accent); text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.2s;
}
.post-content a:hover { color: var(--bl-accent-light); }

.post-content strong { font-weight: 700; color: var(--bl-text); }

/* ── Blockquote ── */
.post-content blockquote {
  border-right: 4px solid var(--bl-accent);
  padding: 16px 24px; margin: 24px 0;
  background: var(--bl-accent-soft); border-radius: 0 10px 10px 0;
  font-style: italic; color: var(--bl-text-soft);
}
[dir="ltr"] .post-content blockquote {
  border-right: none; border-left: 4px solid var(--bl-accent);
  border-radius: 10px 0 0 10px;
}

/* ── Images ── */
.post-content img {
  max-width: 100%; height: auto; border-radius: 12px;
  margin: 20px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.post-content figure { margin: 24px 0; }
.post-content figcaption {
  text-align: center; font-size: 0.85rem; color: var(--bl-text-muted);
  margin-top: 8px; font-style: italic;
}

/* ── Inline code ── */
.post-content code {
  background: var(--bl-code-bg); color: var(--bl-code-text);
  padding: 2px 6px; border-radius: 4px;
  font-family: 'Fira Code', 'Vazirmatn', monospace;
  font-size: 0.9em; font-weight: 500;
}

/* ── Code blocks ── */
.post-content pre, .code-block-wrapper {
  background: #1E293B; color: #E2E8F0;
  padding: 20px; border-radius: 12px; overflow-x: auto;
  margin: 24px 0; font-size: 0.85rem; line-height: 1.7;
  position: relative;
}
.post-content pre code, .code-block-wrapper code {
  background: none; padding: 0; color: inherit; font-size: inherit;
}

/* Copy code button */
.code-block-wrapper { position: relative; }
.copy-code-btn {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7);
  border: none; font-size: 0.72rem; cursor: pointer;
  font-family: inherit; transition: all 0.2s;
}
[dir="rtl"] .copy-code-btn { left: auto; right: 10px; }
.copy-code-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }
.copy-code-btn.copied { background: #10B981; color: #fff; }

/* ── Tables ── */
.post-content .table-wrapper, .post-content table {
  width: 100%; overflow-x: auto; margin: 24px 0;
}
.post-content table { border-collapse: collapse; }
.post-content th {
  background: var(--bl-accent-soft); padding: 12px 16px;
  text-align: right; font-weight: 700; font-size: 0.9rem;
  border-bottom: 2px solid var(--bl-accent); color: var(--bl-text);
}
[dir="ltr"] .post-content th { text-align: left; }
.post-content td {
  padding: 10px 16px; border-bottom: 1px solid var(--bl-border);
  font-size: 0.9rem;
}
.post-content tr:hover td { background: var(--bl-accent-soft); }

/* ── Sortable table ── */
.post-content th.sortable {
  cursor: pointer; user-select: none; position: relative;
}
.post-content th.sortable:hover { background: var(--bl-accent-glow); }
.sort-arrow { margin-right: 4px; font-size: 0.7rem; }

/* ── Special Content Boxes ── */
.post-content .hl-box {
  border-radius: 10px; padding: 16px 20px; margin: 20px 0;
  font-size: 0.92rem; line-height: 1.8;
}
.post-content .hl-tip { background: var(--bl-tip-bg); border: 1px solid var(--bl-tip-border); }
.post-content .hl-warning { background: var(--bl-warning-bg); border: 1px solid var(--bl-warning-border); }
.post-content .hl-highlight { background: var(--bl-highlight-bg); border: 1px solid var(--bl-highlight-border); }

/* ═══════ AUTHOR CARD ═══════ */
.author-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px; border-radius: 14px;
  background: var(--bl-surface); border: 1px solid var(--bl-border);
  box-shadow: var(--bl-card-shadow); margin: 32px 0;
}
.author-avatar-img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid var(--bl-accent-glow);
}
.author-info { flex: 1; min-width: 0; }
.author-name { font-size: 1rem; font-weight: 700; color: var(--bl-text); margin-bottom: 4px; }
.author-bio { font-size: 0.85rem; color: var(--bl-text-soft); line-height: 1.7; margin-bottom: 8px; }
.author-social { display: flex; gap: 10px; }
.author-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bl-accent-soft); font-size: 0.9rem;
  text-decoration: none; transition: var(--bl-transition);
}
.author-social a:hover { background: var(--bl-accent); transform: scale(1.1); }
.social-icon-auth { width: 16px; height: 16px; }
.ig-author-icon { width: 16px; height: 16px; }

/* ═══════ BOTTOM CTA ═══════ */
.post-cta {
  background: linear-gradient(135deg, var(--bl-accent), #095A5F);
  border-radius: 14px; padding: 28px 32px; margin: 32px 0; text-align: center; color: #fff;
}
.post-cta h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; color: #fff; }
.post-cta p { font-size: 0.92rem; opacity: 0.9; line-height: 1.8; margin: 0 0 16px; color: rgba(255,255,255,0.85); }
.cta-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 28px; border-radius: 8px; font-size: 0.9rem;
  font-weight: 700; text-decoration: none; transition: var(--bl-transition);
  cursor: pointer; border: none; font-family: inherit;
}
.cta-btn-primary { background: #FFFFFF !important; color: #0A1628 !important; font-weight: 850 !important; box-shadow: 0 4px 14px rgba(0,0,0,0.2) !important; }
.cta-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.cta-btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.cta-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; transform: translateY(-2px); }

/* ── Post Share Bottom ── */
.post-share-bottom { justify-content: center; margin: 28px 0 0; }

/* ═══════ POST NAVIGATION ═══════ */
.post-nav { text-align: center; margin: 24px 0; }
.post-nav .btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px;
  background: var(--bl-surface); border: 1px solid var(--bl-border-strong);
  color: var(--bl-text-soft); font-weight: 600; text-decoration: none;
  transition: var(--bl-transition); font-family: inherit;
}
.post-nav .btn:hover { background: var(--bl-accent-soft); color: var(--bl-accent); }

/* ═══════ RELATED ARTICLES ═══════ */
.related-section { margin: 40px 0; }
.related-section h3 {
  font-size: 1.1rem; font-weight: 800; color: var(--bl-text);
  margin: 0 0 16px;
}
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card {
  display: block; text-decoration: none; border-radius: 12px;
  overflow: hidden; background: var(--bl-surface);
  border: 1px solid var(--bl-border); box-shadow: var(--bl-card-shadow);
  transition: var(--bl-transition);
}
.related-card:hover {
  transform: translateY(-3px); box-shadow: var(--bl-card-shadow-hover);
  border-color: var(--bl-card-hover-border);
}
.related-card img {
  width: 100%; height: 140px; object-fit: cover; display: block;
}
.related-cat {
  display: inline-block; padding: 2px 10px; border-radius: 4px;
  background: var(--bl-accent-soft); color: var(--bl-accent);
  font-size: 0.7rem; font-weight: 700; margin: 12px 12px 0;
}
.related-title {
  padding: 8px 12px 14px; font-size: 0.85rem; font-weight: 700;
  color: var(--bl-text); line-height: 1.5;
}
.related-date {
  padding: 0 12px 12px; font-size: 0.75rem; color: var(--bl-text-muted);
}

/* ═══════ STICKY SHARE SIDEBAR (Desktop) ═══════ */
.sticky-share {
  position: fixed; left: 20px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 50;
  background: var(--bl-surface); padding: 10px 8px;
  border-radius: 12px; border: 1px solid var(--bl-border);
  box-shadow: var(--bl-card-shadow);
}
[dir="rtl"] .sticky-share { left: auto; right: 20px; }
.sticky-share-label {
  font-size: 0.65rem; text-align: center; color: var(--bl-text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
  line-height: 1.3; padding-bottom: 6px; border-bottom: 1px solid var(--bl-border);
}
.sticky-share-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; border: none;
  background: transparent; cursor: pointer; text-decoration: none;
  transition: var(--bl-transition); position: relative;
}
.sticky-share-btn:hover { background: var(--bl-accent-soft); }
.sticky-share-btn .sticky-tooltip {
  position: absolute; left: 52px; top: 50%; transform: translateY(-50%);
  background: #0B1322 !important; color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45) !important;
  padding: 4px 12px !important;
  border-radius: 6px !important; font-size: 0.76rem !important;
  font-weight: 700 !important; white-space: nowrap !important;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
[dir="rtl"] .sticky-share-btn .sticky-tooltip { left: auto; right: 52px; }
.sticky-share-btn:hover .sticky-tooltip { opacity: 1; }
.sticky-share-divider { height: 1px; background: var(--bl-border); margin: 4px 4px; }
.social-icon-sticky { width: 20px; height: 20px; }
.dark-mode-toggle { background: transparent; border: none; cursor: pointer; padding: 8px; font-size: 1.1rem; }
.mobile-dark-toggle { display: none; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1023px) {
  .post-layout { padding-top: 24px; }
  .post-page { max-width: 100%; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .sticky-share { display: none; }
  .mobile-dark-toggle {
    display: flex; align-items: center; justify-content: center;
    position: fixed; bottom: 20px; left: 20px; z-index: 50;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bl-surface); border: 1px solid var(--bl-border);
    box-shadow: var(--bl-card-shadow);
    font-size: 1.2rem; cursor: pointer;
  }
  [dir="rtl"] .mobile-dark-toggle { left: auto; right: 20px; }
}

@media (max-width: 767px) {
  .post-header h1 { font-size: 1.25rem; }
  .post-meta { gap: 10px; font-size: 0.78rem; }
  .post-share { gap: 6px; }
  .share-btn { padding: 4px 10px; font-size: 0.75rem; }
  .author-card { flex-direction: column; text-align: center; }
  .author-social { justify-content: center; }
  .post-cta { padding: 20px 16px; }
  .related-grid { grid-template-columns: 1fr; }
  .post-content { font-size: 16px; }
  .post-content h2 { font-size: 1.2rem; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .cta-btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Universal Minimalist In-Content Banners (Shop & Consultation)
   بنرهای مدرن، ظریف، فشرده و با کنتراست عالی برای تمام مقالات و پروژه‌ها
   ═══════════════════════════════════════════════════════════════════════ */









/* ── ۱. بنر فروشگاه (پس‌زمینه سبز تیره و زمردی با کنتراست فونت عالی) ── */




/* ── ۲. بنر مشاوره (پس‌زمینه آبی آسمانی عمیق صنعتی با کنتراست فونت عالی) ── */








































[dir="ltr"] 



/* ═══════════════════════════════════════════════════════════════════════
   Universal Standard: Hide CTA Logo/Cart/Bolt Icons on Mobile & Tablet
   در نسخه موبایل و تبلت (صفحات زیر ۸۶۰ پیکسل)، آیکون سمت راست CTA حذف شود
   تا فشرده‌سازی حداکثری و چیدمان استاندارد حاصل شود؛ دسکتاپ کاملاً دست‌نخورده باقی بماند.
   ═══════════════════════════════════════════════════════════════════════ */



/* ═══════════════════════════════════════════════════════════════════════
   PORTFOLIO ULTRA-POLISH: COMPACT CARDS & MOBILE CTA SINGLE-LINE ENGINE
   ═══════════════════════════════════════════════════════════════════════ */

/* ── ۱. فشرده‌سازی و اصلاح متریال متریک کارت‌ها (30% و ±0.5°C) ── */
.pf-card-metric {
  margin: 8px 0 !important;
  padding: 8px 12px !important;
  background: rgba(13, 24, 42, 0.85) !important;
  border: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-right: 3px solid var(--za-teal, #5EEAD4) !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
}

[dir="ltr"] .pf-card-metric {
  border-right: 1px solid rgba(94, 234, 212, 0.22) !important;
  border-left: 3px solid var(--za-teal, #5EEAD4) !important;
}

.pf-card-metric .pf-metric-val {
  font-size: 1.15rem !important;
  font-weight: 850 !important;
  color: #5EEAD4 !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  font-variant-numeric: tabular-nums !important;
  direction: ltr !important;
  display: inline-block !important;
}

.pf-card-metric .pf-metric-lbl {
  font-size: 0.76rem !important;
  color: #CBD5E1 !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  flex: 1 1 auto !important;
}

/* ── ۲. فشرده‌سازی شکیل و ارگونومیک کل کارت نمونه‌کار ── */
.pf-card {
  border-radius: 12px !important;
  background: rgba(13, 22, 38, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.pf-card:hover {
  border-color: rgba(94, 234, 212, 0.45) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.pf-card-img-wrap {
  aspect-ratio: 16 / 9 !important;
  border-radius: 11px 11px 0 0 !important;
}

.pf-card-body {
  padding: 12px 14px 10px !important;
  gap: 6px !important;
}

.pf-card-tags {
  display: flex !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
  margin-bottom: 2px !important;
}

.pf-tag-service,
.pf-tag-platform,
.pf-tag-industry {
  padding: 2px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  border-radius: 5px !important;
  line-height: 1.3 !important;
}

.pf-card-title {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  margin: 2px 0 4px !important;
  color: #FFFFFF !important;
}

.pf-card-summary {
  font-size: 0.77rem !important;
  line-height: 1.6 !important;
  color: #94A3B8 !important;
  margin: 0 0 4px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

.pf-tech-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 4px 0 !important;
}

.pf-tech-pills .pf-pill {
  padding: 2px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.pf-tech-pills .pf-pill-more {
  padding: 2px 6px !important;
  font-size: 0.68rem !important;
  font-weight: 750 !important;
  color: #5EEAD4 !important;
  border-radius: 4px !important;
}

.pf-card-footer {
  margin-top: auto !important;
  padding-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  font-size: 0.72rem !important;
  color: #64748B !important;
}

.pf-card-cta {
  font-weight: 750 !important;
  color: #5EEAD4 !important;
  font-size: 0.74rem !important;
}

/* ── ۳. نمایش کامل عنوان نقش مهندس در صفحه جزئیات و مودال بدون برش ── */
.pf-cs-meta,
.pf-single-section .pf-cs-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

.pf-cs-meta .pf-pill,
.pf-cs-meta-item,
.pf-single-section .pf-cs-meta .pf-pill {
  white-space: normal !important; /* جلوگیری از بریدگی و امکان پیچش زیبا در یک یا دو سطر */
  word-break: normal !important;
  overflow-wrap: break-word !important;
  max-width: 100% !important;
  line-height: 1.5 !important;
  font-size: 0.78rem !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* ── ۴. تک‌خطی بودن قطعی جملات هر دو CTA در نسخه تبلت و موبایل ── */


/* ═══════════════════════════════════════════════════════════════════════
   CRITICAL CONTRAST FIXES: Sticky Share Tooltip & Bottom CTA Button
   اصلاح قطعی کنتراست رنگ فونت و پس‌زمینه در تولتیپ سایدبار و دکمه CTA پایین صفحه
   ═══════════════════════════════════════════════════════════════════════ */

/* ۱. اصلاح تولتیپ اشتراک‌گذاری (توییتر و سایر شبکه‌ها) — متن کاملاً سفید و واضح روی پس‌زمینه تیره کدر */
.sticky-share-btn .sticky-tooltip,
.sticky-tooltip {
  background: #0B1322 !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.55) !important;
  padding: 4px 12px !important;
  border-radius: 6px !important;
  font-size: 0.78rem !important;
  font-weight: 750 !important;
  letter-spacing: normal !important;
  white-space: nowrap !important;
  z-index: 99999 !important;
  text-shadow: none !important;
}

[data-theme="light"] .sticky-share-btn .sticky-tooltip,
[data-theme="light"] .sticky-tooltip {
  background: #0F172A !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* ۲. اصلاح دکمه «تماس با من» در انتهای مقاله — متن پررنگ و کاملاً خوانا روی دکمه سفید */
.cta-btn-primary {
  background: #FFFFFF !important;
  color: #0A1628 !important; /* رنگ سرمه‌ای بسیار تیره صنعتی با کنتراست بیش از 15:1 */
  font-weight: 850 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.22s ease !important;
}

.cta-btn-primary:hover {
  background: #F1F5F9 !important;
  color: #040D1A !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35) !important;
}

.cta-btn-outline {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #FFFFFF !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  font-weight: 750 !important;
}

.cta-btn-outline:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* ===== END {p} ===== */
