/* Reddit/Lemmy-style Board */

.board-container {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: Arial, Helvetica, sans-serif;
}

/* Header */
.board-header {
    text-align: center;
    margin-bottom: 15px;
}

/* Rules box */
.board-rules {
    text-align: left;
    margin: 0 auto 20px auto;
    padding: 12px 15px;
    border: 1px dashed #ccc;
    background: #ffffffbb;
    font-size: 0.85em;
}

.board-rules ul {
    list-style-type: square;
    padding-left: 20px;
    margin: 0;
}

.board-rules li {
    margin-bottom: 4px;
}

/* Top bar with nav + new post */
.board-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    margin-bottom: 0;
    font-size: 0.9em;
}

.board-toolbar a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
    padding: 3px 10px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
    font-size: 0.9em;
}

.board-toolbar a:hover {
    background: #e8f5e9;
}

.board-toolbar-info {
    color: #666;
}

/* Post feed list */
.board-feed {
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
}

/* Individual post row – horizontal like Reddit/Lemmy */
.board-post {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid #ddd;
    background: #fff;
    transition: background 0.15s;
}

.board-post:hover {
    background: #f9f9f0;
}

/* Left side: tag/category stripe */
.board-post-tag-col {
    flex: 0 0 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-right: 1px solid #eee;
    padding: 10px 5px;
    text-align: center;
}

/* Tag pills */
.board-tag {
    font-weight: bold;
    padding: 3px 2px;
    border-radius: 4px;
    font-size: 0.75em;
    text-transform: uppercase;
    display: inline-block;
    width: 70px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.3px;
    box-sizing: border-box;
}

.tag-sell {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.tag-buy {
    background: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
}

.tag-trade {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.tag-search {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.tag-general {
    background: #f5f5f5;
    color: #424242;
    border: 1px solid #bdbdbd;
}

/* Right side: main content area */
.board-post-content {
    flex: 1;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 60px;
    text-align: left;
}

.board-post-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.4;
}

.board-post-meta {
    font-size: 0.8em;
    opacity: 0.8;
}

.board-post-meta a {
    color: #2e7d32;
    text-decoration: none;
}

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

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

/* Bottom pagination bar */
.board-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ccc;
    background: #f0f0f0;
    margin-top: 0;
    font-size: 0.9em;
}

.board-pagination a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
    padding: 3px 10px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 3px;
}

.board-pagination a:hover {
    background: #e8f5e9;
}

.board-pagination a.nav-disabled {
    color: #aaa;
    border-color: #ddd;
    background: #f9f9f9;
    cursor: default;
    pointer-events: none;
}

.board-pagination-info {
    color: #666;
}

/* Empty / Loading states */
.board-empty {
    padding: 30px;
    text-align: center;
    color: #888;
    border: 1px solid #ccc;
    border-top: none;
    background: #fff;
}

/* === FORM PAGE === */
.board-form-container {
    background: #fff;
    border: 1px dashed #ccc;
    padding: 20px;
    text-align: left;
    margin-bottom: 30px;
}

.board-form-group {
    margin-bottom: 15px;
}

.board-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.board-form-group input[type="text"],
.board-form-group input[type="email"],
.board-form-group input[type="url"],
.board-form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #aaa;
    box-sizing: border-box;
    font-family: inherit;
}

.board-form-group textarea {
    height: 120px;
    resize: vertical;
}

.board-submit-btn {
    background: #2e7d32;
    color: #fff;
    border: 1px solid #1b5e20;
    padding: 10px 20px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1.05em;
    border-radius: 3px;
}

.board-submit-btn:hover {
    background: #1b5e20;
}

.board-nav {
    margin-bottom: 15px;
}

.board-nav a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
}

.board-nav a:hover {
    text-decoration: underline;
}