/* ============================================
   Guno BBS - Pure Usenet/BBS Nostalgic Style
   ============================================ */

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

body {
    background: #FFFFFF;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    color: #000000;
}

/* ── Header ── */
.bbs-header {
    background: #000080;
    color: #FFFFFF;
    padding: 8px 10px;
    border-bottom: 3px solid #0000CC;
}

.bbs-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.bbs-logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #FFFF00;
    text-decoration: none;
}

.bbs-logo:hover { color: #FFFFFF; }

.bbs-tagline {
    font-size: 11px;
    color: #AAAAFF;
    margin-top: 2px;
}

.bbs-header-nav {
    font-size: 12px;
}

.bbs-header-nav a {
    color: #AAAAFF;
    text-decoration: none;
    margin-left: 10px;
}

.bbs-header-nav a:hover { color: #FFFF00; }

/* ── Alert Banner ── */
.bbs-alert {
    background: #FFFF00;
    color: #000000;
    padding: 8px 15px;
    border-bottom: 2px solid #CCCC00;
    font-weight: bold;
    text-align: center;
}

.bbs-alert a { color: #000080; }

/* ── Main Container ── */
.bbs-container {
    max-width: 900px;
    margin: 10px auto;
    padding: 0 10px;
}

/* ── Board Table ── */
.board-table {
    border: 2px solid #000080;
    border-collapse: collapse;
    width: 100%;
}

.board-header-row td {
    background: #000080;
    color: #FFFF00;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.board-col-header td {
    background: #CCCCCC;
    color: #000000;
    padding: 4px 8px;
    font-weight: bold;
    border-bottom: 1px solid #999999;
    border-right: 1px solid #999999;
    font-size: 12px;
}

.board-row {
    border-bottom: 1px solid #DDDDDD;
}

.board-row:hover { background: #F0F0FF; }

.board-row td {
    padding: 8px;
    border-right: 1px solid #DDDDDD;
    vertical-align: top;
}

.board-name-cell {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.board-icon {
    color: #0000CC;
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.board-link {
    color: #0000CC;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.board-link:hover {
    text-decoration: underline;
    color: #000080;
}

.board-desc {
    color: #555555;
    font-size: 11px;
    margin-top: 3px;
}

.board-stat {
    color: #333333;
    font-size: 12px;
    text-align: center;
}

.board-last-post {
    font-size: 11px;
    color: #555555;
}

.last-post-date { color: #333333; }
.last-post-by { color: #0000CC; }
.no-posts { color: #999999; font-style: italic; }

/* ── Thread List ── */
.thread-table {
    border: 2px solid #000080;
    border-collapse: collapse;
    width: 100%;
    margin-top: 10px;
}

.thread-header-row td {
    background: #000080;
    color: #FFFF00;
    padding: 6px 10px;
    font-weight: bold;
}

.thread-col-header td {
    background: #CCCCCC;
    color: #000000;
    padding: 4px 8px;
    font-weight: bold;
    border-bottom: 1px solid #999999;
    border-right: 1px solid #999999;
    font-size: 12px;
}

.thread-row {
    border-bottom: 1px solid #DDDDDD;
}

.thread-row:hover { background: #F0F0FF; }

.thread-row td {
    padding: 7px 8px;
    border-right: 1px solid #DDDDDD;
    vertical-align: middle;
}

.thread-link {
    color: #0000CC;
    text-decoration: none;
    font-weight: bold;
}

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

.thread-author { color: #555555; font-size: 11px; }
.thread-date   { color: #555555; font-size: 11px; }
.thread-replies { text-align: center; color: #333333; }

/* ── Post View ── */
.post-box {
    border: 1px solid #AAAAAA;
    margin-bottom: 12px;
}

.post-header {
    background: #000080;
    color: #FFFFFF;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.post-author {
    font-weight: bold;
    font-size: 13px;
}

.post-author.admin-author {
    color: #FFFF00;
}

.post-author.mod-author {
    color: #AAFFAA;
}

.post-badge {
    font-size: 10px;
    padding: 1px 5px;
    border: 1px solid;
    margin-left: 5px;
    font-weight: bold;
}

.admin-badge {
    color: #FFFF00;
    border-color: #FFFF00;
}

.mod-badge {
    color: #AAFFAA;
    border-color: #AAFFAA;
}

.post-meta {
    font-size: 11px;
    color: #AAAAFF;
}

.post-number {
    color: #CCCCCC;
    font-size: 11px;
}

.post-body {
    padding: 12px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    background: #FFFFFF;
}

.post-quote {
    border-left: 3px solid #0000CC;
    padding-left: 10px;
    color: #555555;
    margin: 8px 0;
    font-style: italic;
}

.post-quote-header {
    color: #0000CC;
    font-weight: bold;
    font-style: normal;
}

.post-actions {
    background: #F0F0F0;
    padding: 4px 10px;
    border-top: 1px solid #DDDDDD;
    text-align: right;
}

.post-actions a {
    color: #0000CC;
    text-decoration: none;
    font-size: 11px;
    margin-left: 10px;
}

.post-actions a:hover { text-decoration: underline; }

/* ── Post Form ── */
.post-form-box {
    border: 2px solid #000080;
    margin-top: 15px;
}

.post-form-header {
    background: #000080;
    color: #FFFF00;
    padding: 6px 10px;
    font-weight: bold;
}

.post-form-body {
    padding: 15px;
}

.form-row {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-row label {
    width: 100px;
    font-weight: bold;
    flex-shrink: 0;
    padding-top: 4px;
    font-size: 12px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"],
.form-row textarea {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid #999999;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    background: #FFFFF0;
}

.form-row textarea {
    height: 150px;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 1px solid #0000CC;
    background: #FFFFFF;
}

.admin-post-section {
    border-top: 1px dashed #AAAAAA;
    margin-top: 15px;
    padding-top: 15px;
}

.admin-post-toggle {
    color: #0000CC;
    cursor: pointer;
    font-size: 12px;
    text-decoration: underline;
    background: none;
    border: none;
    font-family: inherit;
}

.admin-post-fields {
    display: none;
    margin-top: 10px;
}

.form-submit {
    text-align: right;
    margin-top: 10px;
}

.form-submit input[type="submit"],
.form-submit button {
    background: #000080;
    color: #FFFFFF;
    border: 2px solid #000060;
    padding: 5px 20px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    cursor: pointer;
    font-weight: bold;
}

.form-submit input[type="submit"]:hover,
.form-submit button:hover {
    background: #0000CC;
}

/* ── Breadcrumb ── */
.breadcrumb {
    margin: 8px 0;
    font-size: 12px;
    color: #555555;
}

.breadcrumb a {
    color: #0000CC;
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ── New Thread Button ── */
.new-thread-bar {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.btn-new-thread {
    background: #000080;
    color: #FFFF00;
    text-decoration: none;
    padding: 5px 15px;
    border: 2px solid #000060;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}

.btn-new-thread:hover {
    background: #0000CC;
    color: #FFFF00;
}

/* ── Rules Page ── */
.rules-box {
    border: 2px solid #000080;
    padding: 20px;
    margin: 10px 0;
    line-height: 1.8;
}

.rules-box h2 {
    color: #000080;
    margin: 20px 0 8px 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rules-box h3 {
    color: #000080;
    margin: 15px 0 5px 0;
    font-size: 13px;
}

/* ── Footer links bar ── */
.bbs-footer-links {
    margin-top: 15px;
    padding: 8px;
    background: #F0F0F0;
    border: 1px solid #CCCCCC;
    text-align: center;
    font-size: 12px;
}

.bbs-footer-links a {
    color: #0000CC;
    text-decoration: none;
    margin: 0 5px;
}

.bbs-footer-links a:hover { text-decoration: underline; }

.bbs-stats-bar {
    text-align: center;
    font-size: 11px;
    color: #555555;
    margin: 8px 0;
    padding: 5px;
    background: #F9F9F9;
    border: 1px solid #EEEEEE;
}

/* ── Footer ── */
.bbs-site-footer {
    margin-top: 20px;
    padding: 10px;
    border-top: 2px solid #000080;
    text-align: center;
    font-size: 11px;
    color: #555555;
}

.bbs-site-footer a {
    color: #0000CC;
    text-decoration: none;
}

/* ── Error / Success messages ── */
.bbs-message {
    padding: 8px 12px;
    margin: 10px 0;
    border: 1px solid;
    font-weight: bold;
}

.bbs-message.success { background: #CCFFCC; border-color: #00AA00; color: #006600; }
.bbs-message.error   { background: #FFCCCC; border-color: #CC0000; color: #CC0000; }

/* ── Pagination ── */
.bbs-pagination {
    margin: 10px 0;
    font-size: 12px;
}

.bbs-pagination a {
    color: #0000CC;
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid #AAAAAA;
    margin: 0 2px;
}

.bbs-pagination a:hover { background: #0000CC; color: #FFFFFF; }
.bbs-pagination .current-page {
    padding: 2px 6px;
    border: 1px solid #000080;
    background: #000080;
    color: #FFFFFF;
    margin: 0 2px;
}

/* ── Honeypot (invisible) ── */
.hp-field { display: none !important; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .bbs-header-top { flex-direction: column; }
    .bbs-header-nav { margin-top: 5px; }
    .bbs-header-nav a { margin-left: 0; margin-right: 8px; }
    .form-row { flex-direction: column; }
    .form-row label { width: auto; }
    .board-table, .thread-table { font-size: 12px; }
    .board-col-header td:nth-child(3),
    .board-row td:nth-child(3),
    .thread-col-header td:nth-child(3),
    .thread-row td:nth-child(3) { display: none; }
}
