/* =============================================================
   AethCore — forum.css
   Forum thread posts, badges, mod controls, post images,
   and lightbox overlay.
   ============================================================= */

/* --- Forum board list --- */

.forum-board-table {
    width: 100%;
    border-collapse: collapse;
}

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

.forum-board-row:last-child {
    border-bottom: none;
}

.forum-board-info {
    padding: 10px 12px;
    vertical-align: top;
}

.forum-board-name {
    font-size: 14px;
    font-weight: bold;
    color: #c85000;
    text-decoration: none;
}

.forum-board-name:hover {
    text-decoration: underline;
}

.forum-board-desc {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.forum-board-stat {
    width: 90px;
    padding: 10px 12px;
    text-align: center;
    vertical-align: middle;
    border-left: 1px solid #e8e8e8;
}

.forum-stat-num {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.forum-stat-label {
    display: block;
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Forum thread posts --- */

.forum-post {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-top: 1px solid #d0d0d0;
}

.forum-post:first-child {
    border-top: none;
}

.forum-post-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 130px;
    flex-shrink: 0;
    padding: 14px 10px;
    background: #f2f2f2;
    border-right: 1px solid #d0d0d0;
    text-align: center;
}

.forum-post-avatar,
.forum-post-no-avatar {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid #b8b8b8;
    display: block;
    flex-shrink: 0;
}

.forum-post-no-avatar {
    background: #d4d4d4;
}

.forum-post-username {
    font-weight: bold;
    font-size: 13px;
    word-break: break-all;
}

.forum-post-date {
    font-size: 11px;
    color: #777;
}

.forum-post-author-actions {
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #d0d0d0;
    width: 100%;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.forum-post-body {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

.forum-post-reply-wrap {
    margin-top: auto;
    text-align: right;
    padding-top: 8px;
}

.forum-post-reply-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
    padding: 2px 0;
}

.forum-post-reply-btn:hover {
    color: #c85000;
}

/* --- Post images --- */

.forum-post-image {
    margin-top: 12px;
}

.forum-post-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #d0d0d0;
    display: block;
    cursor: pointer;
}

.forum-post-image img:hover {
    border-color: #888;
}

/* --- Thread header badges and mod controls --- */

.thread-badge {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    background: #888;
    color: #fff;
    border-radius: 2px;
    vertical-align: middle;
    margin-right: 4px;
}

.thread-badge-locked {
    background: #b04000;
}

.thread-mod-actions {
    margin-left: auto;
    display: flex;
    gap: 4px;
    align-items: center;
}

/* --- Lightbox overlay --- */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid #444;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
