/* ==========================
MODERN ARTICLE STYLE
========================== */
.single-article-page {
  padding-bottom: 80px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
/* Header */
.article-header-section {
  padding: 60px 0 30px;
  text-align: center;
}
.article-meta-top {
  display: inline-grid;
  gap: 15px;
  margin: 50px 0;
  font-size: 13px;
  color: var(--slate-500);
  font-weight: 500;
}
.category-badge {
  background: rgba(255, 87, 34, 0.1);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-main-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  color: var(--heading-color); /* ✏️ استفاده از متغیر داینامیک */
  line-height: 1.4;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.article-lead-text {
  font-size: 18px;
  color: var(--slate-600);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
  font-weight: 500;
}
/* Author Box */
.author-info {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  width: 40px;
  height: 40px;
  background: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
}
.author-details {
  display: flex;
  flex-direction: column;
  text-align: right;
  font-size: 13px;
}
.author-name {
  font-weight: 700;
  color: var(--slate-900);
}
.publish-date {
  color: var(--slate-500);
}
/* Content Wrapper */
.article-content-wrapper {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}
.article-body {
  font-size: 17px;
  line-height: 2;
  color: var(--text-color); /* ✏️ استفاده از متغیر داینامیک */
  text-align: justify; /* تراز متن از دو طرف */
}
/* استایل دهی به محتوای داخل ادیتور */
.article-body h1,
.article-body h2,
.article-body h3 {
  color: var(--heading-color); /* ✏️ استفاده از متغیر داینامیک */
  font-weight: 800;
  margin: 35px 0 20px;
  line-height: 1.4;
  text-align: right;
}
.article-body h2 {
  font-size: 24px;
}
.article-body h3 {
  font-size: 20px;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body ul,
.article-body ol {
  margin: 20px 0;
  padding-right: 25px;
}
.article-body li {
  margin-bottom: 10px;
}
.article-body a {
  color: var(--primary);
  font-weight: 600;
}
.article-body img {
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: var(--shadow-md);
}
/* Footer / Share */
.article-footer {
  margin-top: 60px;
  padding: 30px;
  background: var(--white);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
}
.share-box {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 600;
  color: var(--slate-700);
}
.social-share-links {
  display: flex;
  gap: 10px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  transition: 0.3s;
}
.share-btn.telegram {
  background: #0088cc;
}
.share-btn.whatsapp {
  background: #25d366;
}
.share-btn:hover {
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  .article-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  .share-box {
    flex-direction: column;
  }
}
