/* =========================
   BLOG DETAIL (Clean)
========================= */
/* تغییر رنگ آیکن‌ها در فوتر */
.footer-social a#instagram {
  color: #E1306C; /* رنگ مخصوص آیکون اینستاگرام */
}

.footer-social a#linkedin {
  color: #0A66C2; /* رنگ مخصوص آیکون لینکدین */
} 

/* تغییر رنگ آیکن‌ها هنگام هاور */
.footer-social a#instagram:hover {
  color: #bc2a8d; /* رنگ روشن‌تر هنگام هاور برای اینستاگرام */
}

.footer-social a#linkedin:hover {
  color: #005c99; /* رنگ روشن‌تر هنگام هاور برای لینکدین */
} 

.blog-detail-page {
  background: #f6f8ff;
}

.blog-detail-container {
  max-width: 1400px; /* افزایش عرض */
}

/* progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.06);
  z-index: 9999;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--primary);
  transition: width 0.08s linear;
}

/* topbar */
.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
}

.breadcrumbs a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .current {
  color: #0f172a;
  font-weight: 900;
}

/* layout */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px; /* افزایش عرض سایدبار */
  gap: 20px; /* فاصله بیشتر بین مقاله و سایدبار */
  align-items: start;
}

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

/* hero */
.article-hero {
  background: #fff;
  border: 1px solid rgba(47, 124, 255, .18);
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: "";
  position: absolute;
  inset: -40% -35% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 124, 255, .16), transparent 62%);
  transform: translate(25%, -20%);
  pointer-events: none;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 124, 255, .08);
  color: var(--primary);
  border: 1px solid rgba(47, 124, 255, .18);
  font-weight: 900;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.article-title {
  margin: 12px 0 6px;
  font-size: 30px;
  line-height: 1.7;
  font-weight: 900;
  color: #0f172a;
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .article-title {
    font-size: 24px;
  }
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #64748b;
  position: relative;
  z-index: 1;
}

.meta-dot {
  opacity: .6;
}

.article-summary {
  margin: 12px 0 0;
  line-height: 2;
  color: #475569;
  max-width: 78ch;
  position: relative;
  z-index: 1;
}

.article-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* body */
.article-body {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

/* content */
.article-content {
  line-height: 2.15;
  color: #0f172a;
  font-size: 15px;
}

.article-content p {
  margin: 0 0 14px 0;
}

.article-content h2 {
  margin: 20px 0 10px;
  font-size: 20px;
  font-weight: 900;
}

.article-content h3 {
  margin: 18px 0 10px;
  font-size: 17px;
  font-weight: 900;
}

.article-content ul,
.article-content ol {
  margin: 0 0 14px 0;
  padding-right: 18px;
}

.article-content li {
  margin: 8px 0;
}

.article-content code {
  background: rgba(2, 6, 23, .06);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 13px;
}

/* sidebar */
.sidebar {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 1024px) {
  .sidebar {
    position: static;
    top: auto;
  }
}

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
}

.side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #0f172a;
}

.toc {
  display: grid;
  gap: 8px;
}

.toc a {
  text-decoration: none;
  color: #334155;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(47, 124, 255, .06);
  border: 1px solid rgba(47, 124, 255, .10);
  line-height: 1.9;
  font-size: 13px;
  font-weight: 800;
}

.toc a:hover {
  color: var(--primary);
  border-color: rgba(47, 124, 255, .22);
}

.toc a.sub {
  margin-right: 10px;
}

/* related */
.related-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
}

.related-title {
  font-weight: 900;
  margin: 0 0 6px;
  line-height: 1.9;
  font-size: 14px;
}

.related-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.related-text {
  margin: 8px 0 0;
  color: #64748b;
  line-height: 2;
  font-size: 13px;
}

/* comments */
.comments {
  margin-top: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
}

.comments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.comments-title {
  margin: 0;
  font-weight: 900;
  font-size: 16px;
}

.comments-note {
  font-size: 12px;
  color: #64748b;
}

.comment-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.comment-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 700px) {
  .comment-form .row {
    grid-template-columns: 1fr;
  }
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: inherit;
  outline: none;
  background: #f8fafc;
}

.comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-form .actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
}

.comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.comment-name {
  font-weight: 900;
  color: #0f172a;
}

.comment-time {
  font-size: 12px;
  color: #64748b;
}

.comment-text {
  margin: 8px 0 0;
  line-height: 2;
  color: #334155;
}

.comment-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-actions button {
  border: 1px solid rgba(47, 124, 255, .18);
  background: #fff;
  color: var(--primary);
  border-radius: 12px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}

.replies {
  margin-top: 10px;
  padding-right: 14px;
  border-right: 2px solid rgba(47, 124, 255, .10);
  display: grid;
  gap: 10px;
}

.empty-box {
  border: 1px dashed rgba(100, 116, 139, .35);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
} 

/* Footer Styles */
.footer {
  background-color: var(--dark); /* رنگ تیره برای فوتر */
  color: white; /* رنگ متن سفید */
  padding: 20px 0;
}

.footer .footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--light); /* رنگ متن لینک‌ها */
}

.footer-links a {
  color: inherit;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary); /* تغییر رنگ لینک‌ها هنگام هاور */
}

.footer-legal {
  color: var(--gray);
  margin-top: 10px;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  color: var(--light);
  font-size: 20px;
  transition: color 0.3s ease;
}

