/* Q Detail - Modern Dark/Gold (RTL) */

.jd-page {
  background: #0d1117;
  min-height: 100vh;
  padding: 40px 0 80px;
  direction: rtl;
}

/* ۱. وسط‌چین کردن کانتینر اصلی */
/* ۱. اصلاح عرض در حالت کامپیوتر (عریض‌تر) */
.jd-container {
  max-width: 1300px; /* عرض را بیشتر کردیم تا با منوی بالا هماهنگ شود */
  margin: 0 auto;
  padding: 0 20px;
}

/* کارت‌ها */
.jd-card {
  background: #161b22; /* رنگ پس‌زمینه کمی روشن‌تر برای تفکیک */
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 20px; /* گوشه‌های گردتر برای ظاهر مدرن */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  margin-bottom: 25px;
  transition: transform 0.3s ease;
}

.jd-question {
  padding: 30px;
  position: relative;
  border-right: 5px solid #d4af37; /* خط طلایی در سمت راست */
}

/* هدر سوال */
.jd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.jd-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8b949e;
}

.jd-date { color: #d4af37; font-weight: bold; }
.jd-id { font-family: monospace; color: #58a6ff; background: rgba(88, 166, 255, 0.1); padding: 2px 8px; border-radius: 6px; }

.jd-body {
  color: #c9d1d9;
  line-height: 1.8;
  font-size: 1.1rem;
}

/* عنوان بخش پاسخ‌ها */
.jd-section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 40px 0 20px;
}

.jd-section-title h3 {
  color: #f0f6fc;
  font-size: 1.3rem;
  margin: 0;
}

.jd-section-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(212,175,55,0.4), transparent); }

.jd-count {
  background: #d4af37;
  color: #0d1117;
  padding: 2px 12px;
  border-radius: 20px;
  font-weight: bold;
}

/* کارت پاسخ متخصص */
.jd-answer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.jd-lawyer { display: flex; align-items: center; gap: 15px; }

.jd-avatar {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.jd-lawyer-name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.jd-lawyer-badge { font-size: 0.85rem; color: #8b949e; margin-top: 4px; display: block; }

.jd-answer-body {
  padding: 25px;
  color: #d1d5db;
  line-height: 1.9;
  background: transparent;
}

.jd-answer-foot {
  padding: 15px 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
}

/* دکمه‌ها */
/* ۲. تغییرات دکمه پاسخ برای دسکتاپ و موبایل */
.jd-btn-gold {
  background: linear-gradient(135deg, #d4af37, #f7df8b);
  color: #121212 !important;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.jd-btn-gold:hover {
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}


/* استایل مخصوص موبایل (Media Query) */
@media (max-width: 768px) {
  .jd-head {
    flex-direction: column-reverse; /* دکمه بیاید بالا */
    align-items: stretch; /* دکمه کشیده شود */
    gap: 15px;
  }

  .jd-btn-gold {
    width: 100%; /* دکمه تمام عرض در موبایل */
    display: flex;
    order: -1; /* اطمینان از بالا رفتن دکمه در فلکس باکس */
    padding: 15px;
    font-size: 1rem;
  }

  .jd-meta {
    justify-content: center; /* مرکزچین کردن تاریخ و آیدی در موبایل */
  }

  .jd-question {
    padding: 20px;
  }
}