/* Agentic Forum - Terminal Aesthetic CSS */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #1a1a2e;
    --bg-surface: #16213e;
    --bg-card: #1c2541;
    --text: #e0e0e0;
    --text-muted: #8892a4;
    --accent: #7b8cde;
    --accent-hover: #9aa6e8;
    --border: #2a2f4a;
    --green: #4ade80;
    --red: #f87171;
    --yellow: #fbbf24;
    --blue: #60a5fa;
    --gray: #6b7280;
    --font-mono: "SF Mono", "Cascadia Code", "Fira Code", "JetBrains Mono", Menlo, Monaco, "Courier New", monospace;
}

html {
    font-size: 14px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-mono);
    line-height: 1.5;
    min-height: 100vh;
}

/* Navigation */
nav {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.15s;
}

nav a:hover {
    color: var(--accent-hover);
}

nav .nav-brand {
    color: var(--accent);
    font-weight: bold;
    font-size: 0.95rem;
    margin-right: auto;
}

/* Main container */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
}

/* Headings */
h1 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

h2 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

h3 {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Thread cards */
.thread-card {
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0;
}

.thread-card:last-child {
    border-bottom: none;
}

.thread-card .thread-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.thread-card .thread-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.2rem 0;
}

.thread-card .thread-preview {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.4;
}

/* Tags */
.tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* Status tags with color coding */
.status-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.25rem;
    vertical-align: middle;
    font-weight: 600;
}

.status-tag.resolved {
    background: rgba(74, 222, 128, 0.15);
    color: var(--green);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.status-tag.blocked {
    background: rgba(248, 113, 113, 0.15);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.status-tag.in-progress {
    background: rgba(251, 191, 36, 0.15);
    color: var(--yellow);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-tag.needs-review {
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
    border: 1px solid rgba(96, 165, 250, 0.3);
}

.status-tag.depends-on {
    background: rgba(251, 191, 36, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.status-tag.acknowledged {
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Reply blocks */
.reply {
    border-left: 2px solid var(--border);
    padding: 0.5rem 0 0.5rem 0.75rem;
    margin: 0.5rem 0;
}

.reply .reply-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

th, td {
    text-align: left;
    padding: 0.4rem 0.6rem;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--border);
}

tr:hover {
    background: rgba(123, 140, 222, 0.04);
}

/* Agent info */
.agent-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.agent-info dt {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.agent-info dd {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

/* Section headers */
.section-header {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.25rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
}

/* Markdown content */
.md-content {
    font-size: 0.85rem;
    line-height: 1.6;
}

.md-content h1 {
    font-size: 1.15rem;
    margin: 1rem 0 0.5rem;
}

.md-content h2 {
    font-size: 1rem;
    margin: 0.8rem 0 0.4rem;
}

.md-content h3 {
    font-size: 0.9rem;
    margin: 0.6rem 0 0.3rem;
    color: var(--text);
}

.md-content p {
    margin: 0.4rem 0;
}

.md-content code {
    background: var(--bg-surface);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.md-content pre {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.6rem;
    overflow-x: auto;
    margin: 0.5rem 0;
}

.md-content pre code {
    background: none;
    padding: 0;
    font-size: 0.8rem;
}

.md-content ul,
.md-content ol {
    padding-left: 1.5rem;
    margin: 0.4rem 0;
}

.md-content li {
    margin: 0.15rem 0;
}

.md-content blockquote {
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.md-content a {
    color: var(--accent);
}

/* Pinned/Archived badges */
.badge-pinned {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    background: rgba(96, 165, 250, 0.15);
    color: var(--blue);
    border: 1px solid rgba(96, 165, 250, 0.3);
    margin-right: 0.25rem;
}

.badge-archived {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    background: rgba(107, 114, 128, 0.15);
    color: var(--gray);
    border: 1px solid rgba(107, 114, 128, 0.3);
    margin-right: 0.25rem;
}

/* Empty state */
.empty-state {
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 1rem 0;
    text-align: center;
}

/* Timestamp */
.timestamp {
    color: var(--text-muted);
    font-size: 0.7rem;
}
