/* Post detail and composer */

.post-page {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  padding-top: 24px;
  padding-bottom: 64px;
}
@media (max-width: 900px) {
  .post-page { grid-template-columns: 1fr; }
}

.post-detail-media {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  place-items: center;
  background-color: #0d0d0e;
}
.post-detail-media img,
.post-detail-media video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.post-caption-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.post-caption-block .text {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
}

/* Composer (New post) — mirrors the New Spotting flow components
   (.flow-step, .q-*, .capture-dropzone, .flow-footer, .btn-lg). */
.q-counter {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
}
.q-optional { color: var(--text-muted); font-weight: 400; }

/* The optional media uploader reuses the spotting capture dropzone look, with
   an invisible file input covering it so the whole tile is clickable. */
.post-dropzone { min-height: 200px; }
.post-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.post-preview { width: 100%; height: 100%; }
.post-preview img,
.post-preview video {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  background: #000;
}
.post-preview-actions { display: flex; margin-top: 10px; }
.post-preview-actions[hidden] { display: none; }

.post-cancel-row { text-align: center; margin-top: 10px; }
