
/* ==========================================================================
   POST DETAIL
   ========================================================================== */

.post-view-page {
  padding-top: 10px;
}

.post-view-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
  flex-wrap: wrap;
}

.post-view-back {
  color: var(--text-soft);
  text-decoration: none;
}

.post-view-back:hover {
  color: var(--text-strong);
}

.post-view-slash {
  color: var(--text-faint);
}

.post-view-current {
  color: var(--text-strong);
}

.post-view-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.post-view-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-view-side-card {
  padding: 16px;
  border-radius: 20px;
}

.post-view-side-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-strong);
}

.post-view-side-card p {
  margin: 0 0 6px;
  color: var(--text-soft);
  line-height: 1.45;
  font-size: 13px;
}

.post-view-reaction-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-view-main {
  min-width: 0;
}

.post-view-card {
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.post-view-card-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.post-view-avatar,
.post-view-avatar-fallback {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #dfe6ff, #eef3ff);
}

.post-view-head-main {
  min-width: 0;
  flex: 1 1 auto;
}

.post-view-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.post-view-name {
  margin: 0;
  font-size: 22px;
  line-height: 1.05;
  font-weight: 900;
  color: var(--text-strong);
}

.post-view-kind {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(241, 244, 255, 0.94);
  border: 1px solid var(--line-soft);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
}

.post-view-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 12px;
}

.post-view-text {
  color: var(--text-main);
  line-height: 1.65;
  font-size: 15px;
  white-space: pre-wrap;
}



.post-view-empty {
  color: var(--text-soft);
  font-size: 14px;
}

.post-view-compose {
  padding: 16px;
  border-radius: 22px;
  margin-top: 14px;
  margin-bottom: 14px;
}

.post-view-compose h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 900;
  color: var(--text-strong);
}

.post-view-textarea {
  width: 100%;
  min-height: 86px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.90);
  color: var(--text-main);
  resize: vertical;
  outline: none;
}

.post-view-compose-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.post-view-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.90);
  color: var(--text-main);
  font-weight: 800;
  cursor: pointer;
}

.post-view-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-1), #8c9aff);
  border-color: transparent;
}

.post-view-btn-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #9a6b8a, #c08aa8);
  border-color: transparent;
}

.post-view-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 10px;
}

.post-view-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-strong);
}

.post-view-section-head span {
  color: var(--text-soft);
  font-size: 13px;
}

.post-view-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (max-width: 980px) {
  .post-view-layout {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   POST COMMENTS
   ========================================================================== */

.post-view-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post-comment-node {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-comment-card {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.post-comment-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.post-comment-avatar,
.post-comment-avatar-fallback {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #dfe6ff, #eef3ff);
}

.post-comment-head-main {
  min-width: 0;
  flex: 1 1 auto;
}

.post-comment-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.post-comment-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-strong);
}

.post-comment-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 12px;
}

.post-comment-text {
  color: var(--text-main);
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-wrap;
}

.post-comment-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}

.post-comment-action-btn {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.90);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.post-comment-action-btn:hover {
  color: var(--text-strong);
}

.post-comment-children {
  margin-left: 20px;
  padding-left: 14px;
  border-left: 2px solid rgba(124, 138, 210, 0.14);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-comment-level-0 > .post-comment-card {
  background: rgba(255, 255, 255, 0.78);
}

.post-comment-level-1 > .post-comment-card,
.post-comment-level-2 > .post-comment-card,
.post-comment-level-3 > .post-comment-card {
  background: rgba(248, 250, 255, 0.76);
}

