/* ======================================================== */
/* ===== صفحه جزئیات بلاگ - استایل اختصاصی (vp-article) ===== */
/* ======================================================== */

.vp-article {
  direction: rtl;
  background: #faf7fb;
  padding: 40px 20px 80px;
  font-family: inherit;
  min-height: 100vh;
}

.vp-article * {
  box-sizing: border-box;
}

/* ===== مسیر ناوبری ===== */
.vp-breadcrumb {
  max-width: 1000px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.vp-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s ease;
}

.vp-breadcrumb a:hover {
  color: #a3238e;
}

.vp-breadcrumb a i {
  font-size: 12px;
}

.vp-breadcrumb-sep {
  color: #cbd5e1;
  font-size: 10px;
}

.vp-breadcrumb-current {
  color: #64748b;
  font-weight: 500;
}

/* ===== کارت اصلی مقاله ===== */
.vp-article-card {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0e8ef;
}

/* ===== تصویر شاخص ===== */
.vp-article-hero {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: #f5f5f5;
}

.vp-article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 8s ease;
}

.vp-article-card:hover .vp-article-hero img {
  transform: scale(1.03);
}

.vp-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

/* ===== بدنه مقاله ===== */
.vp-article-body {
  padding: 45px 55px 50px;
}

/* ===== هدر مقاله ===== */
.vp-article-header {
  padding-bottom: 28px;
  margin-bottom: 32px;
  border-bottom: 1px solid #f0e8ef;
}

.vp-article-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(163, 35, 142, 0.08);
  color: #a3238e;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.vp-article-label i {
  font-size: 11px;
}

.vp-article-title {
  font-size: 32px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.45;
  margin: 0 0 22px;
  letter-spacing: -0.3px;
}

/* ===== متادیتا ===== */
.vp-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  align-items: center;
}

.vp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.vp-meta-item i {
  font-size: 13px;
  color: #a3238e;
}

/* ===== محتوای مقاله ===== */
.vp-article-content {
  font-size: 16.5px;
  line-height: 2;
  color: #334155;
  text-align: justify;
  word-spacing: -0.5px;
}

.vp-article-content p {
  margin-bottom: 18px;
}

.vp-article-content p:last-child {
  margin-bottom: 0;
}

.vp-article-content h2,
.vp-article-content h3 {
  color: #1e293b;
  font-weight: 700;
  margin: 28px 0 14px;
  line-height: 1.5;
}

.vp-article-content h2 {
  font-size: 22px;
}

.vp-article-content h3 {
  font-size: 18px;
}

.vp-article-content a {
  color: #a3238e;
  text-decoration: none;
  border-bottom: 1px solid rgba(163, 35, 142, 0.3);
  transition: border-color 0.2s ease;
}

.vp-article-content a:hover {
  border-bottom-color: #a3238e;
}

.vp-article-content ul,
.vp-article-content ol {
  margin: 16px 0;
  padding-right: 24px;
}

.vp-article-content li {
  margin-bottom: 8px;
}

.vp-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
  display: block;
}

/* ===== فوتر مقاله ===== */
.vp-article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #f0e8ef;
  flex-wrap: wrap;
}

/* دکمه بازگشت */
.vp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: transparent;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  color: #475569;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.vp-back-btn i {
  font-size: 12px;
  transition: transform 0.25s ease;
}

.vp-back-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #1e293b;
}

.vp-back-btn:hover i {
  transform: translateX(3px);
}

/* دکمه اشتراک‌گذاری */
.vp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #a3238e;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.vp-share-btn i {
  font-size: 13px;
}

.vp-share-btn:hover {
  background: #7a0472;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(163, 35, 142, 0.3);
}

/* ===== مطالب مرتبط ===== */
.vp-related-section {
  max-width: 1000px;
  margin: 50px auto 0;
}

.vp-related-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0e8ef;
  gap: 12px;
  flex-wrap: wrap;
}

.vp-related-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.vp-related-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(163, 35, 142, 0.08);
  color: #a3238e;
  font-size: 15px;
}

.vp-related-count {
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 500;
  background: #fff;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid #f0e8ef;
}

/* ===== گرید مرتبط ===== */
.vp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.vp-related-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #f0e8ef;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vp-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(163, 35, 142, 0.25);
  box-shadow: 0 12px 28px rgba(163, 35, 142, 0.1);
}

.vp-related-img {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f5f5f5;
}

.vp-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vp-related-card:hover .vp-related-img img {
  transform: scale(1.06);
}

.vp-related-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  color: #a3238e;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vp-related-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.vp-related-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 44px;
  transition: color 0.2s ease;
}

.vp-related-card:hover .vp-related-card-title {
  color: #a3238e;
}

.vp-related-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #94a3b8;
  padding-top: 8px;
  border-top: 1px solid #f5f5f5;
  margin-top: auto;
}

.vp-related-meta i {
  font-size: 11px;
  color: #a3238e;
}

/* ======================================================== */
/* ===================== ریسپانسیو ======================== */
/* ======================================================== */

@media (max-width: 900px) {
  .vp-article-hero {
      height: 340px;
  }

  .vp-article-body {
      padding: 36px 40px 40px;
  }

  .vp-article-title {
      font-size: 27px;
  }

  .vp-related-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .vp-article {
      padding: 24px 14px 60px;
  }

  .vp-breadcrumb {
      font-size: 12px;
      margin-bottom: 18px;
      gap: 8px;
  }

  .vp-article-card {
      border-radius: 16px;
  }

  .vp-article-hero {
      height: 240px;
  }

  .vp-article-body {
      padding: 28px 22px 32px;
  }

  .vp-article-header {
      padding-bottom: 22px;
      margin-bottom: 26px;
  }

  .vp-article-title {
      font-size: 22px;
      line-height: 1.5;
      margin-bottom: 18px;
  }

  .vp-article-label {
      font-size: 11px;
      padding: 4px 10px;
      margin-bottom: 12px;
  }

  .vp-article-meta {
      gap: 8px 16px;
  }

  .vp-meta-item {
      font-size: 12px;
  }

  .vp-meta-item i {
      font-size: 12px;
  }

  .vp-article-content {
      font-size: 15.5px;
      line-height: 1.95;
  }

  .vp-article-content h2 {
      font-size: 19px;
  }

  .vp-article-content h3 {
      font-size: 16.5px;
  }

  .vp-article-footer {
      flex-direction: column-reverse;
      align-items: stretch;
      gap: 12px;
  }

  .vp-back-btn,
  .vp-share-btn {
      justify-content: center;
      padding: 12px 18px;
      font-size: 13px;
      width: 100%;
  }

  .vp-related-section {
      margin-top: 40px;
  }

  .vp-related-title {
      font-size: 17px;
  }

  .vp-related-icon {
      width: 32px;
      height: 32px;
      font-size: 13px;
  }

  .vp-related-count {
      font-size: 11.5px;
  }

  .vp-related-grid {
      grid-template-columns: 1fr;
      gap: 14px;
  }

  .vp-related-img {
      height: 180px;
  }
}

@media (max-width: 480px) {
  .vp-article {
      padding: 18px 10px 50px;
  }

  .vp-breadcrumb-current {
      display: none;
  }

  .vp-article-hero {
      height: 200px;
  }

  .vp-article-body {
      padding: 22px 16px 26px;
  }

  .vp-article-title {
      font-size: 19px;
  }

  .vp-article-content {
      font-size: 15px;
      line-height: 1.9;
      text-align: right;
  }

  .vp-article-content h2 {
      font-size: 17.5px;
  }

  .vp-article-content h3 {
      font-size: 15.5px;
  }

  .vp-back-btn,
  .vp-share-btn {
      font-size: 12.5px;
      padding: 11px 16px;
  }

  .vp-related-title {
      font-size: 15.5px;
  }

  .vp-related-img {
      height: 160px;
  }

  .vp-related-card-title {
      font-size: 13.5px;
  }
}