/* ==========================================================================
   MINIMALIST FORUM - STRICT MONOCHROME (BLACK & WHITE ONLY)
   No grays, no colors, no gradients.
   ========================================================================== */

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

body {
    background-color: #ffffff;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 16px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
header {
    border-bottom: 2px solid #000000;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000000;
}

.logo-link:hover {
    background-color: transparent;
    color: #000000;
}

.ascii-icon {
    font-family: monospace;
    font-size: 8px;
    line-height: 1.05;
    font-weight: bold;
    background-color: #000000;
    color: #ffffff;
    padding: 3px 5px;
    margin: 0;
    user-select: none;
    border: 1px solid #000000;
    display: inline-block;
}

.logo-link:hover .ascii-icon {
    background-color: #ffffff;
    color: #000000;
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: #000000;
    text-transform: uppercase;
}

.logo-link:hover .logo-text {
    text-decoration: underline;
}


nav {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

nav a, nav span {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
}

nav a:hover, nav a:focus {
    text-decoration: underline;
}

.inline-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.link-btn {
    background: none;
    border: none;
    color: #000000;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    padding: 0;
}

.link-btn:hover {
    background-color: #000000;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Typography & Basic Elements
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: #000000;
    font-weight: bold;
    line-height: 1.25;
    margin-bottom: 16px;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

p {
    margin-bottom: 16px;
}

a {
    color: #000000;
    text-decoration: underline;
}

a:hover {
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
}

hr {
    border: 0;
    border-top: 1px solid #000000;
    margin: 24px 0;
}

/* --------------------------------------------------------------------------
   Messages / Alerts
   -------------------------------------------------------------------------- */
.messages {
    list-style: none;
    margin-bottom: 24px;
}

.message {
    border: 1px solid #000000;
    padding: 8px 12px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* --------------------------------------------------------------------------
   Feed & Topic List
   -------------------------------------------------------------------------- */
.feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid #000000;
    padding-bottom: 8px;
}

.topic-list {
    list-style: none;
    border-top: 1px solid #000000;
}

.topic-item {
    border-bottom: 1px solid #000000;
    padding: 12px 0;
}

.topic-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.topic-title a {
    text-decoration: none;
    color: #000000;
}

.topic-title a:hover {
    background-color: #000000;
    color: #ffffff;
}

.topic-meta {
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tags-list {
    display: inline-flex;
    gap: 4px;
    list-style: none;
}

.tag-badge {
    border: 1px solid #000000;
    padding: 1px 6px;
    font-size: 12px;
    text-decoration: none;
    font-weight: bold;
    color: #000000;
}

.tag-badge:hover {
    background-color: #000000;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Topic Detail & Posts
   -------------------------------------------------------------------------- */
.topic-heading {
    border-bottom: 2px solid #000000;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.post-card {
    border: 1px solid #000000;
    padding: 16px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #000000;
    padding-bottom: 8px;
    margin-bottom: 12px;
    font-size: 13px;
}

.post-author {
    font-weight: bold;
}

.post-actions {
    display: flex;
    gap: 8px;
}

.post-body {
    font-size: 15px;
    line-height: 1.6;
    word-break: break-word;
}

.post-body p {
    margin-bottom: 12px;
}

.post-body p:last-child {
    margin-bottom: 0;
}

.post-body blockquote {
    border-left: 3px solid #000000;
    padding-left: 12px;
    margin: 12px 0;
}

.post-body pre {
    border: 1px solid #000000;
    padding: 10px;
    overflow-x: auto;
    margin: 12px 0;
    font-family: monospace;
    font-size: 13px;
    background-color: #ffffff;
}

.post-body code {
    font-family: monospace;
    font-size: 13px;
    border: 1px solid #000000;
    padding: 0 4px;
}

.post-body pre code {
    border: none;
    padding: 0;
}

.post-body ul, .post-body ol {
    margin: 12px 0 12px 24px;
}

.post-updated {
    font-size: 12px;
    font-style: italic;
    margin-top: 12px;
    border-top: 1px dashed #000000;
    padding-top: 6px;
}

/* --------------------------------------------------------------------------
   Forms & Inputs
   -------------------------------------------------------------------------- */
form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #000000;
    background-color: #ffffff;
    color: #000000;
    font-family: inherit;
    font-size: 14px;
    border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #000000;
}

.form-help {
    font-size: 12px;
    margin-top: 4px;
}

.errorlist {
    list-style: none;
    border: 1px solid #000000;
    padding: 6px 10px;
    margin-bottom: 12px;
    font-weight: bold;
}

.btn {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    border-radius: 0;
    font-family: inherit;
}

.btn:hover, .btn:focus {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #000000;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Pagination Component
   -------------------------------------------------------------------------- */
.pagination-container {
    border-top: 1px solid #000000;
    padding-top: 16px;
    margin: 24px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 14px;
}

.page-item {
    border: 1px solid #000000;
    padding: 4px 8px;
    text-decoration: none;
    color: #000000;
    font-weight: bold;
}

.page-item:hover {
    background-color: #000000;
    color: #ffffff;
}

.page-item.active {
    background-color: #000000;
    color: #ffffff;
}

.page-ellipsis {
    padding: 4px 6px;
    font-weight: bold;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pagination-jump input[type="number"] {
    width: 65px;
    padding: 4px 6px;
    border: 1px solid #000000;
    font-size: 14px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 0;
}

.pagination-jump .btn {
    padding: 4px 10px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    border-top: 2px solid #000000;
    padding-top: 16px;
    margin-top: 32px;
    font-size: 13px;
    text-align: center;
}
