/* ============ BREADCRUMB (shared pattern) ============ */
.breadcrumb-wrap { padding-bottom: 0; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-gray);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-gray); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb i { font-size: 10px; }
.breadcrumb span { color: var(--navy); font-weight: 700; }

/* ============ LAYOUT ============ */
.subject-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

/* ============ MAIN POST ============ */
.subject-post {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 24px;
}
.subject-post .discussion-head { margin-bottom: 18px; }
.subject-post .discussion-head img { width: 50px; height: 50px; }
.subject-post .discussion-time a { color: var(--teal); font-weight: 700; }
.subject-post .discussion-text { font-size: 15px; }

.subject-post-footer {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-light);
  padding-top: 16px;
}
.follow-topic-btn { margin-right: auto; }
.follow-topic-btn.following { color: var(--teal); }
.engage-btn.liked { color: #d1493f; }

/* ============ COMMENTS ============ */
.comments-section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 26px;
}
.comments-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.comments-head h2 { font-size: 18px; font-weight: 800; color: var(--navy); }

.comment-form { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.comment-form img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.comment-form input {
  flex: 1;
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 11px 18px;
  font-size: 13px;
  outline: none;
}
.comment-form .btn.small { flex: none; }

.comment-list { display: flex; flex-direction: column; gap: 18px; }
.comment-item { display: flex; gap: 12px; }
.comment-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-bubble {
  background: var(--cream-alt);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 6px;
}
.comment-bubble strong { display: block; font-size: 13px; margin-bottom: 4px; }
.comment-bubble p { font-size: 14px; color: #333; line-height: 1.8; }
.comment-actions { display: flex; align-items: center; gap: 16px; padding: 0 6px; font-size: 12px; color: var(--text-gray); }
.mini-like-btn, .reply-btn { display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--text-gray); }
.mini-like-btn:hover, .reply-btn:hover { color: var(--teal); }
.mini-like-btn.liked { color: #d1493f; }

.comment-item.reply { margin-top: 14px; }

.btn-outline.center { display: flex; margin: 22px auto 0; max-width: 260px; }

/* ============ SIDEBAR ============ */
.subject-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.sidebar-card {
  background: var(--cream-alt);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 20px;
}
.sidebar-card h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin-bottom: 16px; }

.book-mini-link { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.book-cover.mini { width: 70px; height: 90px; border-radius: 8px; padding: 8px; flex: none; display: flex; }
.book-cover.mini .cover-title { font-size: 11px; }
.book-mini-link strong { display: block; font-size: 14px; margin-bottom: 2px; }
.book-mini-link p { font-size: 12px; color: var(--text-gray); margin-bottom: 4px; }
.book-mini-link .rating { font-size: 12px; font-weight: 700; }
.book-mini-link .rating i { color: var(--star); margin-left: 4px; }
.book-mini-card .btn-outline { width: 100%; justify-content: center; }

.follow-user-btn { width: 100%; justify-content: center; }
.follow-user-btn.following { background: var(--teal); color: #fff; border-color: var(--teal); }

.related-topic { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.related-topic:last-child { border-bottom: none; padding-bottom: 0; }
.related-topic p { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; line-height: 1.6; }
.related-topic span { font-size: 12px; color: var(--text-gray); }
.related-topic:hover p { color: var(--teal); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1000px) {
  .subject-layout { grid-template-columns: 1fr; }
  .subject-sidebar { position: static; }
}
@media (max-width: 560px) {
  .subject-post-footer { gap: 14px; }
  .follow-topic-btn { margin-right: 0; }
}
