.post-detail {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.post-detail__nav {
  flex-shrink: 0;
  background: $bg;
  border-bottom: 1px solid rgba(216, 180, 255, 0.06);
}

.post-detail__nav-row {
  display: flex;
  align-items: center;
  height: 50px;
  padding: 0 12px;
}

.post-detail__back {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: $fg;
}

.post-detail__back-icon {
  transform: rotate(180deg);
}

.post-detail__title {
  flex: 1;
  text-align: center;
  color: $fg;
  font: 700 16px / 1 $font-display;
}

.post-detail__nav-spacer {
  width: 36px;
}

.post-detail__scroll {
  flex: 1;
  min-height: 0;
}

.post-detail__post {
  padding-top: 12px;
}

.post-detail__comments {
  padding: 4px 16px 24px;
}

.post-detail__comments-title {
  display: block;
  margin: 8px 0 12px;
  color: $fg;
  font: 700 14px / 1 $font-display;
}

.post-detail__empty {
  display: block;
  text-align: center;
  color: $muted;
  font: 400 13px / 1.6 $font-body;
  padding: 36px 24px;
}

.post-detail__comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid rgba(216, 180, 255, 0.06);
}

.post-detail__comment-body {
  flex: 1;
  min-width: 0;
}

.post-detail__comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-detail__comment-name {
  color: $fg;
  font: 600 13px / 1.2 $font-body;
}

.post-detail__comment-time {
  color: $muted;
  font: 400 11px / 1 $font-body;
}

.post-detail__comment-text {
  display: block;
  margin-top: 6px;
  color: $fg;
  font: 400 14px / 1.55 $font-body;
  word-break: break-word;
}

.post-detail__input-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 12px;
  background: $bg;
  border-top: 1px solid rgba(216, 180, 255, 0.08);
}

.post-detail__input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: $radius-pill;
  background: rgba(31, 23, 66, 0.68);
  border: 1px solid rgba(216, 180, 255, 0.1);
  color: $fg;
  font: 400 14px / 40px $font-body;
}

.post-detail__input-ph {
  color: $muted;
}

.post-detail__send {
  flex-shrink: 0;
  padding: 0 18px;
  height: 40px;
  border-radius: $radius-pill;
  background: linear-gradient(135deg, $accent, $accent-2);
  color: $primary-on;
  font: 700 14px / 40px $font-body;
}

.post-detail__send--disabled {
  opacity: 0.5;
}
