.post-reported{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  font-size: 14px;
  color: var(--ink-dim);
  text-align: center;
}
.post{
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px;
}
.post-head{ display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-user{ flex: 1; min-width: 0; display: flex; flex-direction: column; }
.post-head-right{ margin-left: auto; display: flex; align-items: center; flex-shrink: 0; }
.post-options-wrap{ position: relative; }
.post-options-btn{
  background: none; border: none; padding: 4px; cursor: pointer;
  color: var(--ink-dim); line-height: 0; border-radius: 6px;
  transition: all 0.15s;
}
.post-options-btn:hover{ color: var(--ink); background: var(--surface); }
.post-options-btn svg{ width: 18px; height: 18px; }
.post-dropdown{
  position: absolute; top: 100%; right: 0; z-index: 100;
  min-width: 180px; max-width: 200px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(7,17,32,0.18);
  padding: 4px;
  display: none;
  overflow: hidden;
}
.post-dropdown.open{ display: block; }
.dropdown-item{
  display: block; width: 100%;
  background: none; border: none;
  padding: 8px 14px;
  font-size: 13.5px; font-family: 'Inter', sans-serif;
  color: var(--ink); text-align: left; cursor: pointer;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.12s;
}
.dropdown-item:hover{ background: var(--surface); }
.dropdown-delete{ color: var(--alert); }
.dropdown-delete:hover{ background: rgba(225,79,79,0.08); }
.dropdown-report{ color: var(--ink); }
.dropdown-report:hover{ background: var(--surface); }
.post-name{ align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--ink); }
.post-meta{ font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.post-meta .pill{ padding: 2px 8px; font-size: 10.5px; margin: 0 2px; }
.post-body{ font-size: 15px; color: var(--ink); margin: 0 0 12px; line-height: 1.45; }
.post-body-collapsible{ position: relative; max-height: 200px; overflow: hidden; transition: max-height .3s ease; }
.post-body-collapsible.is-expanded{ max-height: none; }
.post-body-collapsible::after{
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--paper));
  pointer-events: none;
  transition: opacity .2s;
}
.post-body-collapsible.is-expanded::after{ opacity: 0; }
.post-expand-btn{
  background: none; border: none; padding: 0;
  font-size: 13.5px; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--ink-dim); cursor: pointer;
  margin-top: -8px; margin-bottom: 12px;
  position: relative; z-index: 1;
}
.post-expand-btn:hover{ color: var(--signal); }
.post-image-wrap {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  max-height: 520px;
}
.post-image-wrap img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  display: block;
}
.post-image-wrap video {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
  background: #000;
}

/* --- Image carousel (multi-image posts) --- */
.post-image-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  max-height: 520px;
  background: #0a0e17;
}
.carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .25s ease;
}
.carousel-slide.is-active { opacity: 1; }
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 3;
  transition: background .2s, opacity .2s;
}
.carousel-arrow::before {
  content: "";
  position: absolute;
  inset: -8px -14px;
  border-radius: 50%;
}
.carousel-arrow svg { width: 20px; height: 20px; display: block; pointer-events: none; }
.carousel-arrow:hover { background: rgba(0,0,0,.8); }
.carousel-arrow.is-disabled {
  opacity: .25;
  pointer-events: none;
  cursor: default;
}
.carousel-prev { left: 6px; }
.carousel-next { right: 6px; }
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.25);
}

.post-actions{ display: flex; align-items: center; gap: 16px; }
.action{
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink-dim); font-size: 13px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: 'Inter', sans-serif;
}
.action svg{ width: 20px; height: 20px; }
.like-btn.active{ color: var(--signal); }
.action-link{ color: var(--signal); font-weight: 700; margin-left: auto; }
.action-link:hover{ text-decoration: underline; }

.share-btn:hover{ color: var(--signal); }
.comment-toggle:hover{ color: var(--signal); }

.delete-post-btn{ color: var(--ink-dim); }
.delete-post-btn:hover{ color: var(--alert); }
.comment-options-wrap{ position: relative; margin-left: auto; flex-shrink: 0; }
.comment-options-btn{
  background: none; border: none; padding: 2px; cursor: pointer;
  color: var(--ink-dim); line-height: 0; border-radius: 4px;
  transition: all 0.15s;
}
.comment-options-btn:hover{ color: var(--ink); background: var(--border); }
.comment-options-btn svg{ width: 14px; height: 14px; }
.comment-dropdown{
  position: absolute; top: 100%; right: 0; z-index: 100;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(7,17,32,0.18);
  padding: 4px;
  display: none;
  overflow: hidden;
}
.comment-dropdown.open{ display: block; }
.comment-head{ display: flex; align-items: center; gap: 8px; }

.comments{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.comment{ display: flex; gap: 8px; }
.avatar-sm{ width: 28px; height: 28px; font-size: 10px; }
.comment-body{
  flex: 1;
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 12px;
}
.comment-active .comment-body{ background: var(--signal-soft); }
.comment-name{ display: inline; font-size: 12px; font-weight: 600; color: var(--ink); }
.comment-body p{ font-size: 13px; color: var(--ink); margin: 3px 0 4px; line-height: 1.45; }
.comment-meta{ font-size: 11.5px; color: var(--ink-dim); }
.comment-like{
  background: none; border: none; padding: 0;
  color: var(--ink-dim); font-weight: 600; font-size: 11.5px; cursor: pointer;
}
.comment-like:hover, .comment-like.active{ color: var(--signal); }

.comments-more{
  background: none; border: none; padding: 6px 0; cursor: pointer;
  font-size: 12.5px; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--signal); align-self: flex-start;
  transition: color 0.15s;
}
.comments-more:hover{ color: var(--signal-hover); }
.comment-input-row{ display: flex; align-items: center; gap: 8px; }
.comment-input{
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink);
}
.comment-input:focus-visible{ outline: 2px solid var(--signal); outline-offset: 1px; }
.comment-send{
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  cursor: pointer;
  color: var(--signal);
  padding: 4px;
  transition: color 0.15s;
}
.comment-send:hover:not(:disabled){ color: var(--signal-hover); }
.comment-send:disabled{ opacity: 0.35; cursor: default; }
.comment-send svg{ width: 20px; height: 20px; }

/* --- Shared post styles --- */
.shared-header{
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.shared-header-text{
  flex: 1; min-width: 0; display: flex; flex-direction: column;
}
.shared-header-label{
  font-size: 12px; color: var(--ink-dim); margin-top: 1px;
}
.shared-original{
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0 12px;
  background: var(--surface);
}
.shared-original-head{
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.shared-original-head-text{
  display: flex; flex-direction: column;
}
.shared-original-head .post-name{
  font-size: 13px; font-weight: 600;
}
.shared-original-head .post-meta{
  font-size: 11.5px; color: var(--ink-dim);
}
.shared-original-content{
  font-size: 14px; color: var(--ink);
  line-height: 1.45;
  margin: 0 0 6px;
}
.shared-original-image{
  border-radius: 6px; overflow: hidden;
  max-height: 520px;
}
.shared-original-image img{
  width: 100%; display: block; border-radius: 6px;
  max-height: 520px;
  object-fit: cover;
}
.shared-original-image video{
  width: 100%; display: block; border-radius: 6px;
  max-height: 520px; background: #000;
}

/* --- Mobile specific image formatting --- */
@media (max-width: 768px) {
  .post-image-wrap img {
    object-fit: contain;
    background: #0a0e17;
  }
  .carousel-slide {
    object-fit: contain;
  }
  .shared-original-image img {
    object-fit: contain;
    background: #0a0e17;
  }
}
