/* theme: chat, a message-feed layout matching the conversational UI this
   audience already reads all day (Discord, Slack, iMessage). the *shape* is
   borrowed on purpose (zero learning curve, fast scanning); the *colors*
   stay invocoast's own (mango/greenapple/banana/ananas per-poster palette)
   so it reads as "the wall, chat-shaped" rather than a cloned app skin. */

.wall-theme-chat {
  background: #313338;
  color: #dbdee1;
  border-radius: 10px;
  padding: 18px 18px 22px;
  font-family: system-ui, sans-serif;
}

.wall-theme-chat .wall-heading { text-align: left; border-bottom: 1px solid #26282c; padding-bottom: 12px; margin-bottom: 14px; }
.wall-theme-chat .wall-heading h2 { font-family: "VT323", monospace; font-size: 1.7rem; color: #f2f3f5; margin: 0; letter-spacing: 0.02em; }
.wall-theme-chat .wall-heading h2::before { content: "# "; color: #949ba4; font-weight: 400; }
.wall-theme-chat .wall-heading p { color: #949ba4; font-size: 0.82rem; margin: 4px 0 0; font-family: "Ubuntu Mono", monospace; }

.wall-theme-chat .wall-controls { border-bottom: 1px solid #26282c; padding-bottom: 10px; }
.wall-theme-chat .wall-count { font-family: "Ubuntu Mono", monospace; font-size: 0.75rem; color: #949ba4; }
.wall-theme-chat .wall-sort button { font-family: system-ui, sans-serif; font-size: 0.75rem; background: none; border: none; color: #949ba4; padding: 4px 10px; border-radius: 4px; cursor: pointer; }
.wall-theme-chat .wall-sort button.active { color: #fff; background: #404249; }
.wall-theme-chat .wall-sort button:hover { color: #dbdee1; }

.wall-theme-chat .wall-authbar { color: #949ba4; font-family: system-ui, sans-serif; font-size: 0.8rem; }
.wall-theme-chat .wall-authbar .switch { color: #5a6ff2; }
.wall-theme-chat .wall-authform { justify-content: flex-start; margin-left: 0; }
.wall-theme-chat .wall-authform input { font-family: system-ui, sans-serif; font-size: 0.85rem; color: #dbdee1; background: #1e1f22; border: 1px solid #26282c; border-radius: 6px; padding: 8px 10px; }
.wall-theme-chat .wall-authform button { font-family: system-ui, sans-serif; font-weight: 600; font-size: 0.8rem; background: #5a6ff2; color: #fff; border: none; padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.wall-theme-chat .wall-authform .err { color: #f23f43; }

/* compose bar styled like a message box */
.wall-theme-chat .wall-compose { background: #383a40; border-radius: 10px; padding: 10px 14px; max-width: 100%; }
.wall-theme-chat .wall-compose label { display: none; } /* placeholder on the textarea does the job */
.wall-theme-chat .wall-compose textarea {
  font-family: system-ui, sans-serif; font-size: 0.9rem; color: #dbdee1;
  background: transparent; border: none; padding: 4px 2px; min-height: 40px;
}
.wall-theme-chat .wall-compose textarea::placeholder { color: #6d6f78; }
.wall-theme-chat .wall-compose-file { color: #949ba4; font-size: 0.75rem; border-top: 1px solid #26282c; padding-top: 8px; margin-top: 6px; }
.wall-theme-chat .wall-filelabel { color: #949ba4; }
.wall-theme-chat .wall-filelabel:hover { color: #dbdee1; }
.wall-theme-chat .wall-compose-foot input[type=text] { font-family: system-ui, sans-serif; font-size: 0.8rem; background: #1e1f22; border: 1px solid #26282c; border-radius: 6px; color: #dbdee1; padding: 6px 9px; }
.wall-theme-chat .wall-compose-foot button {
  font-family: system-ui, sans-serif; font-weight: 600; font-size: 0.82rem;
  background: #5a6ff2; color: #fff; border: none; padding: 9px 18px; border-radius: 6px; cursor: pointer;
}
.wall-theme-chat .wall-compose-foot button:hover { background: #4a5adf; }

/* single-column feed, not a masonry grid, this is a conversation, not a bulletin board */
.wall-theme-chat .wall-grid { columns: 1; margin-top: 16px; }

/* avatar + stacked content, generated purely with CSS grid, no extra markup needed.
   the ::before (avatar) spans every row in column 1; every other direct child
   auto-places into column 2, row by row. */
.wall-theme-chat .wall-post {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 0 0 2px;
}
.wall-theme-chat .wall-post:hover { background: #2e3035; }

.wall-theme-chat .wall-post::before {
  content: attr(data-initial);
  grid-column: 1;
  grid-row: 1 / -1;
  align-self: start;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--note-accent, #5a6ff2);
  color: #1e1f22;
  display: flex; align-items: center; justify-content: center;
  font-family: system-ui, sans-serif; font-weight: 700; font-size: 1rem;
}

.wall-theme-chat .wall-post-head,
.wall-theme-chat .wall-post-body,
.wall-theme-chat .wall-attachment-img,
.wall-theme-chat .wall-attachment-file,
.wall-theme-chat .wall-post-foot,
.wall-theme-chat .wall-thread {
  grid-column: 2;
}

.wall-theme-chat .wall-post-name { font-weight: 600; font-size: 0.92rem; color: var(--note-accent, #f2f3f5); }
.wall-theme-chat .wall-post-time { font-family: "Ubuntu Mono", monospace; font-size: 0.68rem; color: #6d6f78; }
.wall-theme-chat .wall-post-body { font-size: 0.88rem; color: #dbdee1; margin: 2px 0 6px; }

.wall-theme-chat .wall-attachment-img { margin-bottom: 8px; }
.wall-theme-chat .wall-attachment-img img { border-radius: 8px; max-height: 260px; }
.wall-theme-chat .wall-attachment-file { color: #5a6ff2; font-size: 0.8rem; background: #1e1f22; padding: 6px 10px; border-radius: 6px; display: inline-block; margin-bottom: 8px; }
.wall-theme-chat .wall-attachment-file span { color: #6d6f78; }

/* reactions as small rounded chips, like message reactions in a chat app */
.wall-theme-chat .wall-reacts { gap: 6px; }
.wall-theme-chat .wall-reacts button {
  font-family: system-ui, sans-serif; font-size: 0.75rem; color: #dbdee1;
  background: #2b2d31; border: 1px solid #3a3c42; border-radius: 12px; padding: 3px 9px;
}
.wall-theme-chat .wall-reacts button:hover { border-color: #5a6ff2; background: #35373d; }
.wall-theme-chat .wall-replylink { font-family: system-ui, sans-serif; font-size: 0.75rem; color: #949ba4; text-decoration: none; }
.wall-theme-chat .wall-replylink:hover { color: #dbdee1; text-decoration: underline; }

.wall-theme-chat .wall-thread { border-left: 2px solid #3a3c42; padding-left: 14px; margin-top: 6px; margin-bottom: 4px; }
.wall-theme-chat .wall-reply { background: none; padding: 6px 0; }
.wall-theme-chat .wall-reply-head { gap: 8px; }
.wall-theme-chat .wall-reply-name { font-weight: 600; font-size: 0.82rem; color: #dbdee1; }
.wall-theme-chat .wall-reply-time { font-family: "Ubuntu Mono", monospace; font-size: 0.65rem; color: #6d6f78; }
.wall-theme-chat .wall-reply-body { font-size: 0.82rem; color: #c6c8cc; }
.wall-theme-chat .wall-reply .wall-reacts button { font-size: 0.68rem; padding: 2px 7px; }
.wall-theme-chat .wall-reply .wall-replylink { font-size: 0.68rem; }
.wall-theme-chat .wall-reply .wall-thread { margin-top: 6px; border-left-color: #2e3035; }

.wall-theme-chat .wall-replybox { margin-top: 8px; }
.wall-theme-chat .wall-replybox input[type=text] { font-family: system-ui, sans-serif; font-size: 0.8rem; color: #dbdee1; background: #1e1f22; border: 1px solid #26282c; border-radius: 14px; padding: 7px 12px; }
.wall-theme-chat .wall-replybox button { font-family: system-ui, sans-serif; font-size: 0.75rem; background: #5a6ff2; color: #fff; border: none; padding: 0 14px; border-radius: 12px; cursor: pointer; }
.wall-theme-chat .wall-replybox button:hover { background: #4a5adf; }

.wall-theme-chat .wall-loadmore { font-family: system-ui, sans-serif; font-size: 0.78rem; background: #2b2d31; border: 1px solid #3a3c42; color: #dbdee1; padding: 8px 16px; border-radius: 6px; cursor: pointer; }
.wall-theme-chat .wall-loadmore:hover { background: #35373d; }
.wall-theme-chat .wall-annot { font-family: "Ubuntu Mono", monospace; color: #6d6f78; }
.wall-theme-chat .wall-empty { color: #949ba4; font-family: system-ui, sans-serif; padding: 20px 0; }

/* keep the same per-poster color identity used across every theme */
.wall-theme-chat .wall-post.author-0 { --note-accent: #ffcf5c; }
.wall-theme-chat .wall-post.author-1 { --note-accent: #b8e46c; }
.wall-theme-chat .wall-post.author-2 { --note-accent: #fff3b0; }
.wall-theme-chat .wall-post.author-3 { --note-accent: #ff8a73; }
