/* ====================== Forum Thread Detail (viewPost) ====================== */

/* Thread title */
#viewPost .vp-thread-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin: 16px 0 20px;
  line-height: 1.35;
}

/* Post card */
#viewPost .vp-post {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  margin-bottom: 10px;
}
#viewPost .vp-post--main {
  border-color: #c5ccd8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

/* Avatar */
#viewPost .vp-post__avatar {
  flex-shrink: 0;
}
#viewPost .vp-post__avatar .vp-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
#viewPost .vp-post__avatar .vp-avatar-icon {
  font-size: 46px;
  line-height: 1;
  color: #7A92FF;
  display: block;
}

/* Right column */
#viewPost .vp-post__main {
  flex: 1;
  min-width: 0;
}
#viewPost .vp-post__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}
#viewPost .vp-post__author {
  font-weight: 600;
  font-size: 15px;
  color: #1a1a2e;
  text-decoration: none;
}
#viewPost .vp-post__author:hover { color: #016DC5; }
#viewPost .vp-post__date {
  font-size: 13px;
  color: #aab4c4;
}

/* Body text */
#viewPost .vp-post__body {
  font-size: 15px;
  line-height: 1.65;
  color: #333;
}
#viewPost .vp-post__body p {
  margin: 0 0 0.8em;
}
#viewPost .vp-post__body p:last-child { margin-bottom: 0; }

/* Vote footer */
#viewPost .forumListsPostsFooter {
  margin-top: 14px;
  display: flex;
  align-items: center;
}
#viewPost .voteContainer {
  display: inline-flex !important;
  align-items: center;
}

/* Upvote button */
#viewPost .vp-vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #c5ccd8;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: #6b7280;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
#viewPost .vp-vote-btn:hover {
  border-color: #016DC5;
  color: #016DC5;
  background: rgba(1,109,197,0.06);
}
#viewPost .vp-vote-btn--active {
  border-color: #016DC5;
  color: #016DC5;
  background: rgba(1,109,197,0.08);
}
#viewPost .vp-vote-count {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  margin-left: 6px;
}

/* Replies divider */
#viewPost .vp-replies-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 12px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#viewPost .vp-replies-divider::before,
#viewPost .vp-replies-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e4e8ee;
}

/* Reply form */
#viewPost .vp-reply-form {
  background: #f8f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}
#viewPost .vp-reply-form h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a2e;
}
#viewPost textarea[name='reply_post'] {
  width: 100%;
  min-height: 120px;
  border: 1px solid #e4e8ee;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 110%;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  display: block;
  margin-bottom: 10px !important;
}
#viewPost textarea[name='reply_post']:focus {
  outline: none;
  border-color: #016DC5;
  box-shadow: 0 0 0 3px rgba(1,109,197,0.12);
}

/* Login prompt */
#viewPost .footer_login {
  background: #f7f8fc;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
  height: auto;
}
#viewPost .footer_login .forum_login_text_bottom {
  font-size: 15px;
  color: #555;
  float: none;
  margin: 0;
}
#viewPost .footer_login a {
  color: #016DC5;
  font-weight: 600;
}

/* Mobile */
@media (max-width: 600px) {
  #viewPost .vp-post {
    padding: 14px;
    gap: 10px;
  }
  #viewPost .vp-post__avatar .vp-avatar-img {
    width: 38px;
    height: 38px;
  }
  #viewPost .vp-post__avatar .vp-avatar-icon {
    font-size: 38px;
  }
}
