/* css/topic.css — single forum topic (buttons, forms, avatars, back-link come from site.css) */

.topic-section { padding: 56px 24px 0; }
.topic-container { max-width: 760px; margin: 0 auto; }

.not-found { padding: 72px 24px; text-align: center; }
.not-found h2 { margin-bottom: 24px; font-family: var(--lp-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.03em; }

.topic-header { margin-bottom: 32px; }
.pinned-badge-topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 600;
}
.topic-category-link {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border: 1px solid var(--lp-line);
    border-radius: 999px;
    background: var(--color-white);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary) !important; /* inline colour from sample data */
}
.topic-title-main {
    font-family: var(--lp-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--lp-ink);
}
.topic-meta-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--lp-line);
}
.topic-author-header { display: flex; align-items: center; gap: 14px; }
.topic-author-header strong,
.reply-header strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.topic-date,
.reply-date { display: block; margin-top: 2px; font-size: 13px; color: var(--lp-muted); }
.topic-stats-header { display: flex; gap: 18px; font-size: 14px; color: var(--lp-muted); }

/* body copy */
.topic-content-card,
.reply-card {
    border: 1px solid var(--lp-line);
    border-radius: 28px;
    background: var(--color-white);
}
.topic-content-card { padding: 32px; margin-bottom: 56px; }
.topic-content-card,
.reply-content { font-size: 16px; line-height: 1.75; color: var(--color-slate-700); overflow-wrap: anywhere; }
.topic-content-card p,
.reply-content p { margin-bottom: 1em; }
.topic-content-card p:last-child,
.reply-content p:last-child { margin-bottom: 0; }
.topic-content-card a,
.reply-content a { color: var(--color-primary); text-underline-offset: 3px; }

/* replies */
.replies-title { margin-bottom: 24px; font-family: var(--lp-display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.replies-section { margin-bottom: 56px; }
.no-replies { padding: 36px 24px; border: 1px dashed var(--color-slate-300); border-radius: 24px; text-align: center; color: var(--lp-muted); }
.reply-card { padding: 22px 26px; margin-bottom: 12px; }
.reply-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reply-content { font-size: 15px; }

.reply-form-section { padding: 32px; border: 1px solid var(--lp-line); border-radius: 32px; background: var(--color-white); }

@media (max-width: 768px) {
    .topic-section { padding: 36px 16px 0; }
    .topic-content-card { padding: 24px 20px; margin-bottom: 44px; }
    .reply-form-section { padding: 24px 20px; border-radius: 24px; }
}
