/* Posts & reminders: composer, Discord preview, post list. */

.composer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .composer { grid-template-columns: 1fr; } }
.format-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.format-chip {
    display: inline-flex; align-items: center; gap: 7px;
    font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
    padding: 7px 14px; border-radius: 99px; background: var(--surface-2);
    border: 1px solid var(--border);
    transition: color var(--t-fast), border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t-fast) var(--ease-out);
}
.format-chip:hover { color: var(--text); transform: translateY(-1px); }
.format-chip.active {
    color: var(--text); border-color: var(--chip);
    background: color-mix(in srgb, var(--chip) 16%, transparent);
    box-shadow: 0 0 18px color-mix(in srgb, var(--chip) 30%, transparent);
}
.when { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.preview-pane { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 8px; }
.preview-label { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }

/* A close copy of Discord's own message and embed, so the preview reads true. */
.discord-msg {
    background: #313338; color: #dbdee1; border-radius: var(--radius); padding: 16px;
    font-family: "gg sans", "Noto Sans", "Inter", sans-serif; font-size: 15px; line-height: 1.375;
    border: 1px solid rgba(0, 0, 0, .3); box-shadow: var(--shadow);
}
.discord-msg.empty-preview { color: #949ba4; text-align: center; padding: 40px 16px; }
.discord-author-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.discord-bot-avatar { width: 40px; height: 40px; border-radius: 50%; }
.discord-name { font-weight: 600; color: #f2f3f5; }
.discord-tag { font-size: 10px; font-weight: 700; background: #5865f2; color: #fff; border-radius: 3px; padding: 0 4px; }
.discord-time { font-size: 12px; color: #949ba4; }
.discord-embed {
    margin: 4px 0 0 48px; max-width: 520px; padding: 12px 16px 14px;
    background: #2b2d31; border-left: 4px solid var(--embed); border-radius: 4px;
    display: flex; flex-direction: column; gap: 6px;
    transition: border-color var(--t);
}
@media (max-width: 600px) { .discord-embed { margin-left: 0; } }
.de-author { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #f2f3f5; }
.de-author img, .de-footer img { width: 22px; height: 22px; border-radius: 50%; }
.de-title { font-size: 16px; font-weight: 700; color: #f2f3f5; }
.de-desc { font-size: 14px; overflow-wrap: anywhere; }
.de-desc code { background: #1e1f22; padding: 0 3px; border-radius: 3px; font-size: 85%; }
.de-desc pre { background: #1e1f22; padding: 8px; border-radius: 4px; overflow-x: auto; margin: 4px 0; }
.de-image { max-width: 100%; border-radius: 4px; margin-top: 8px; }
.de-footer { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #b5bac1; margin-top: 4px; }
.md-h1 { font-size: 1.5em; font-weight: 700; margin: 6px 0 2px; }
.md-h2 { font-size: 1.25em; font-weight: 700; margin: 4px 0 2px; }
.md-h3 { font-size: 1.05em; font-weight: 700; }
.md-sub { font-size: 12px; color: #949ba4; }
.md-gap { height: 8px; }
.mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.md { overflow-wrap: anywhere; }
.md .md-sub { color: var(--muted); }
.discord-content { margin: 0 0 4px 48px; font-size: 15px; }
.embed-group + .embed-group { margin-top: 10px; }
@media (max-width: 600px) { .discord-content { margin-left: 0; } }

.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.post-row {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 0;
    border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden;
    transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease-out);
}
.post-row:hover { border-color: var(--border-strong); background: var(--surface-3); transform: translateX(2px); }
.post-bar { align-self: stretch; width: 4px; background: var(--chip); flex: none; }
.post-title { font-weight: 700; }
.post-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; }
@media (max-width: 760px) {
    .post-row { flex-wrap: wrap; padding-left: 14px; }
    .post-bar { display: none; }
    .post-meta { align-items: flex-start; text-align: left; }
}

/* Announcement sections */
.sections { display: flex; flex-direction: column; gap: 10px; }
.section-card {
    display: flex; flex-direction: column; gap: 8px; padding: 12px;
    border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--embed);
    animation: fade-up var(--t-slow) var(--ease-out) both;
}
.section-card input[type="color"] { width: 38px; height: 34px; padding: 2px; cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform var(--t-fast) var(--ease-spring); }
.swatch:hover { transform: scale(1.15); }
.swatch.on { border-color: var(--text); }

/* Embed fields and thumbnail, for the public roadmap preview. */
.discord-embed.has-thumb { flex-direction: row; gap: 16px; }
.de-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.de-thumb { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; flex: none; }
.de-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #f87171, #fbbf24); display: inline-block; }
.de-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin-top: 4px; }
.de-field { grid-column: 1 / -1; font-size: 14px; }
.de-field.inline { grid-column: auto; }
.de-field-name { font-weight: 700; color: #f2f3f5; margin-bottom: 2px; }
.stage-design input[type="color"] { width: 44px; height: 30px; padding: 2px; cursor: pointer; }
