
/* ===============================================================
   Elixiria – Topic View supplemental styles (topic.css)
   Works with css/style.css generated earlier.
   Keeps your markup: .post-author, .post-content, .post-meta, .post-body
   =============================================================== */

:root{
  --border: rgba(255,255,255,0.08);
  --panel: #121016;
  --panel-2: #0f0d14;
  --muted: #B9B9C6;
  --text: #EAEAF2;
  --accent: #7C4DFF;
}

/* Layout for a topic post: sidebar author + content */
.topic-thread .post{
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 14px;
}

@media (max-width: 720px){
  .topic-thread .post{
    grid-template-columns: 1fr;
  }
}

.post-author{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  padding: 12px;
  color: var(--muted);
  font-size: .95rem;
  min-width: 170px;
  align-self: start;
}

.post-author strong{
  color: var(--text);
  font-size: 1rem;
}

.post-content{
  display: grid;
  gap: 10px;
}

.post-meta{
  color: var(--muted);
  font-size: .92rem;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.post-body{
  font-size: 1rem;
  line-height: 1.6;
}

.post-body p{ margin: 0 0 10px; }

.post-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* inline images/code blocks inside post body */
.post-body img{
  border-radius: 10px;
  border: 1px solid var(--border);
}
.post-body code, .post-body pre code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px 6px;
}
.post-body pre{
  margin: 0;
  overflow: auto;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

/* small badge utility (optional) */
.badge{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size:.8rem;
  color: #A084FF;
  border: 1px solid rgba(124,77,255,0.45);
  background: rgba(124,77,255,0.08);
}
