/* ===================================================================
   BLOG-SINGLE.CSS — صفحه‌ی تک مطلب بلاگ
=================================================================== */

.article-head{
  max-width: 820px;
  margin: 0 auto;
  text-align:center;
}
.article-head .meta-row{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  flex-wrap:wrap;
  margin-top:26px;
  font-size:13.5px;
  color: var(--text-soft);
}
.article-head .meta-row .author{
  display:flex;
  align-items:center;
  gap:10px;
}
.article-head .meta-row .author .avatar{
  width:32px; height:32px;
  border-radius:50%;
  background: var(--grad-primary);
  display:flex; align-items:center; justify-content:center;
  font-size:12px; font-weight:700;
}
.article-head .meta-row span.sep{ opacity:.4; }
.article-head h1{ font-size: clamp(28px, 4.2vw, 46px); margin: 22px 0; line-height:1.4; }

.article-cover{
  max-width: var(--container);
  margin: 0 auto 64px;
  height: 420px;
  border-radius: var(--r-xl);
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow-lg);
}
.article-cover .pattern{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity:.5;
}
.article-cover .motif{
  position:absolute;
  inset:0;
  display:flex; align-items:center; justify-content:center;
  opacity:.5;
}
.article-cover .motif svg{ width:200px; }

/* =========================== بدنه‌ی مقاله =========================== */
.article-body{
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 2;
  color: #cbd2e0;
}
.article-body > p{ margin-bottom: 26px; color:#cbd2e0; font-size:17px; }
.article-body h2{
  font-size: 27px;
  margin: 52px 0 22px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:14px;
}
.article-body h2::before{
  content:"";
  width:8px; height:8px;
  border-radius:50%;
  background: var(--grad-primary);
  flex-shrink:0;
}
.article-body h3{ font-size:21px; margin: 36px 0 16px; color:#fff; }
.article-body ul{ margin: 0 0 28px; padding-right: 4px; }
.article-body ul li{
  position:relative;
  padding-right: 28px;
  margin-bottom: 14px;
  color: #cbd2e0;
  font-size:16px;
}
.article-body ul li::before{
  content:"";
  position:absolute;
  right:0; top:9px;
  width:14px; height:14px;
  border-radius:4px;
  background: var(--grad-primary-soft);
  border: 1px solid rgba(255,255,255,.15);
}
.article-blockquote{
  position:relative;
  margin: 38px 0;
  padding: 30px 34px;
  border-right: 3px solid var(--primary);
  background: rgba(255,255,255,.04);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 19px;
  color:#fff;
  font-weight:600;
  line-height:1.8;
}
.article-image-break{
  height: 280px;
  border-radius: var(--r-lg);
  margin: 44px 0;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
}
.article-image-break .pattern{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity:.5;
}
.article-image-break figcaption{
  position:absolute;
  bottom:18px; right:18px; left:18px;
  font-size:12.5px;
  color: var(--text-soft);
  text-align:center;
}

.article-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin: 46px 0 0;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.article-share{
  display:flex;
  align-items:center;
  gap:14px;
  margin-top: 28px;
}
.article-share span{ font-size:13.5px; color: var(--text-soft); }

/* =========================== کارت نویسنده =========================== */
.author-card{
  max-width: 720px;
  margin: 56px auto 0;
  display:flex;
  align-items:center;
  justify-content: center;
  gap:24px;
  padding: 32px;
}


.author-card .avatar-lg{
  width:80px; height:80px;
  border-radius: 50%;
  flex-shrink:0;
  overflow:hidden;
  border: 2px solid rgba(255,255,255,.12);
}
.author-card .avatar-lg svg{ width:100%; height:100%; }
.author-card h4{ font-size:17px; margin-bottom:6px; }
.author-card p{ font-size:14px; margin-bottom:14px; }
.author-card .social{ display:flex; gap:8px; }
.author-card .social a{
  width:36px; height:36px;
  border-radius:50%;
  background: rgba(255,255,255,.06);
  display:flex; align-items:center; justify-content:center;
}
.author-card .social svg{ width:15px; height:15px; }

/* =========================== نظرات =========================== */
.comments-section{ max-width:720px; margin: 70px auto 0; }
.comments-section > h3{ font-size: 22px; margin-bottom: 32px; }
.comment-item{
  display:flex;
  gap:18px;
  margin-bottom: 30px;
}
.comment-item .avatar{
  width:46px; height:46px;
  border-radius:50%;
  background: var(--grad-primary-soft);
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
  flex-shrink:0;
  font-size:13.5px;
}
.comment-item .bubble{ padding: 18px 22px; flex:1; }
.comment-item .top-row{
  display:flex; align-items:center; gap:12px; margin-bottom:10px; flex-wrap:wrap;
}
.comment-item strong{ font-size:14.5px; }
.comment-item .date{ font-size:12px; color: var(--text-faint); }
.comment-item p{ font-size:14.5px; }
.comment-item .reply-btn{
  font-size:12.5px;
  font-weight:700;
  color: var(--accent-soft);
  margin-top:10px;
  display:inline-block;
}
.comment-item.reply{ margin-right: 64px; }

.comment-form{ margin-top: 50px; padding: 36px; }
.comment-form h4{ font-size:18px; margin-bottom:24px; }
.comment-form .row-2{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }

/* =========================== مطالب مرتبط =========================== */
.related-grid{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

@media (max-width: 1000px){
  .article-cover{ height:300px; }
}
@media (max-width: 720px){
  .article-cover{ height:220px; }
  .article-body{ font-size:16px; }
  .article-body h2{ font-size:23px; }
  .author-card{ flex-direction:column; text-align:center; }
  .comment-item.reply{ margin-right:24px; }
  .comment-form .row-2{ grid-template-columns:1fr; }
  .related-grid{ grid-template-columns:1fr; }
}
