/* phpBB-style green-on-black forum theme */
.forum-wrap {
    background: #000;
    color: #c8e6c9;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
    padding: 1rem 0 3rem;
    min-height: 70vh;
    background-image: radial-gradient(ellipse at top, rgba(0,80,0,0.25), transparent 60%);
}

.forum-wrap a {
    color: #5fdb5f;
    text-decoration: none;
}
.forum-wrap a:hover {
    color: #b5ffb5;
    text-decoration: underline;
}

.forum-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.forum-header {
    border: 1px solid #1f4d1f;
    background: linear-gradient(180deg, #0a1f0a, #051005);
    padding: 1rem 1.25rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.forum-header h1 {
    color: #6fdc6f;
    font-size: 1.9rem;
    margin: 0;
    text-shadow: 0 0 6px rgba(50,200,50,0.55);
    font-weight: 700;
}
.forum-header .forum-tagline {
    color: #9fcf9f;
    font-size: 0.95rem;
    margin: 0.25rem 0 0;
}
.forum-header .forum-search input {
    background: #000;
    border: 1px solid #2a6b2a;
    color: #b5ffb5;
    padding: 0.35rem 0.5rem;
    border-radius: 3px;
    width: 220px;
}

.forum-breadcrumb {
    border: 1px solid #1f4d1f;
    background: #050d05;
    padding: 0.55rem 0.9rem;
    margin-bottom: 0.5rem;
    border-radius: 3px;
}
.forum-breadcrumb i { margin-right: 4px; }

.forum-notice {
    background: #102810;
    border: 1px solid #2e7a2e;
    color: #c8ffc8;
    padding: 0.6rem 0.9rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.forum-errors {
    background: #2a0a0a;
    border: 1px solid #7a2222;
    color: #ffb3b3;
    padding: 0.6rem 0.9rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.forum-errors ul { margin: 0; padding-left: 1.25rem; }

.forum-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #1f4d1f;
    background: #030803;
    margin-bottom: 1rem;
}
.forum-table thead th {
    background: linear-gradient(180deg, #0e2f0e, #061706);
    color: #b5ffb5;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #1f4d1f;
}
.forum-table tbody tr {
    border-top: 1px solid #102810;
}
.forum-table tbody tr:hover {
    background: #061806;
}
.forum-table td {
    padding: 0.75rem;
    vertical-align: top;
}
.forum-table .col-icon  { width: 50px; text-align: center; color: #4a9b4a; font-size: 1.6rem; }
.forum-table .col-meta  { width: 90px;  text-align: center; color: #9fcf9f; }
.forum-table .col-last  { width: 230px; color: #9fcf9f; font-size: 0.88rem; }

.forum-table .forum-title {
    color: #6fdc6f;
    font-size: 1.05rem;
    font-weight: 600;
}
.forum-table .forum-desc {
    color: #8fbf8f;
    font-size: 0.85rem;
    margin-top: 0.2rem;
}
.forum-table .forum-subforums {
    color: #8fbf8f;
    font-size: 0.82rem;
    margin-top: 0.35rem;
}

.forum-category-banner {
    background: linear-gradient(180deg, #144014, #0a200a);
    color: #eece43;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border: 1px solid #1f4d1f;
    margin-top: 1rem;
    margin-bottom: 0;
}

.forum-topic-row .topic-title {
    color: #6fdc6f;
    font-weight: 600;
    font-size: 1rem;
}
.forum-topic-row .topic-meta {
    color: #8fbf8f;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}
.forum-topic-row .badge-sticky,
.forum-topic-row .badge-locked,
.forum-topic-row .badge-pending {
    display: inline-block;
    font-size: 0.7rem;
    padding: 0.05rem 0.4rem;
    border-radius: 2px;
    margin-right: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.forum-topic-row .badge-sticky { background: #2e7a2e; color: #fff; }
.forum-topic-row .badge-locked { background: #6b2222; color: #fff; }
.forum-topic-row .badge-pending { background: #6b6b22; color: #fff; }

.forum-avatar {
    display: inline-block;
    border-radius: 4px;
    border: 1px solid #1f4d1f;
    vertical-align: middle;
}
.forum-avatar--initials {
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-family: Verdana, sans-serif;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 0 rgba(0,0,0,0.4);
    font-size: 1.6rem;
}

.forum-post {
    border: 1px solid #1f4d1f;
    background: #030803;
    margin-bottom: 0.75rem;
    display: grid;
    grid-template-columns: 180px 1fr;
}
.forum-post .post-author {
    background: #061706;
    padding: 1rem;
    border-right: 1px solid #1f4d1f;
    text-align: center;
}
.forum-post .post-author .forum-avatar {
    margin-bottom: 0.6rem;
}
.forum-post .post-author .author-name {
    color: #6fdc6f;
    font-weight: 700;
    font-size: 1rem;
    word-break: break-word;
}
.forum-post .post-author .author-meta {
    color: #8fbf8f;
    font-size: 0.78rem;
    margin-top: 0.4rem;
}
.forum-post .post-body {
    padding: 1rem 1.25rem;
}
.forum-post .post-header {
    color: #9fcf9f;
    font-size: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #102810;
    margin-bottom: 0.75rem;
}
.forum-post .post-content {
    color: #d8f5d8;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.forum-form {
    border: 1px solid #1f4d1f;
    background: #030803;
    padding: 1.25rem;
    border-radius: 3px;
}
.forum-form label {
    color: #b5ffb5;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    display: block;
    margin: 0.6rem 0 0.2rem;
}
.forum-form input[type=text],
.forum-form textarea {
    width: 100%;
    background: #000;
    border: 1px solid #2a6b2a;
    color: #c8e6c9;
    padding: 0.45rem 0.55rem;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.95rem;
}
.forum-form textarea { min-height: 180px; }
.forum-form .hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.forum-form .form-help {
    color: #6b9b6b;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.forum-btn {
    background: #144014;
    color: #b5ffb5;
    border: 1px solid #2e7a2e;
    padding: 0.45rem 1rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
}
.forum-btn:hover { background: #1c5a1c; color: #fff; }

.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0;
}

.forum-pagination .pagination {
    --bs-pagination-bg: #0a1f0a;
    --bs-pagination-color: #5fdb5f;
    --bs-pagination-border-color: #1f4d1f;
    --bs-pagination-hover-bg: #144014;
    --bs-pagination-hover-color: #fff;
    --bs-pagination-active-bg: #2e7a2e;
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-border-color: #2e7a2e;
    --bs-pagination-disabled-bg: #050d05;
    --bs-pagination-disabled-color: #4a6b4a;
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet: hide last-post column, tighten meta */
@media (max-width: 768px) {
    .forum-table .col-last  { display: none; }
    .forum-table .col-meta  { width: 60px; font-size: 0.82rem; }
    .forum-table .col-icon  { width: 36px; font-size: 1.2rem; padding: 0.5rem 0.25rem; }
    .forum-table td         { padding: 0.55rem 0.5rem; }
    .forum-header           { flex-direction: column; gap: 0.5rem; }
    .forum-header h1        { font-size: 1.4rem; }
    .forum-header .forum-search input { width: 100%; box-sizing: border-box; }
    .forum-table .forum-title { font-size: 0.97rem; }
}

/* Mobile: hide meta columns too, stack posts vertically */
@media (max-width: 480px) {
    .forum-table .col-meta  { display: none; }
    .forum-table .col-icon  { display: none; }

    /* Stack post author above post body */
    .forum-post {
        grid-template-columns: 1fr;
    }
    .forum-post .post-author {
        border-right: none;
        border-bottom: 1px solid #1f4d1f;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        text-align: left;
        padding: 0.6rem 0.75rem;
    }
    .forum-post .post-author .forum-avatar {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .forum-post .post-author .author-name { font-size: 0.9rem; }
    .forum-post .post-author .author-meta { font-size: 0.72rem; }
    .forum-post .post-body  { padding: 0.75rem; }

    .forum-actions { flex-wrap: wrap; gap: 0.5rem; }
    .forum-header h1 { font-size: 1.2rem; }
    .forum-breadcrumb { font-size: 0.8rem; overflow-x: auto; white-space: nowrap; }

    .forum-form input[type=text],
    .forum-form textarea { font-size: 16px; } /* prevents iOS zoom */
}
