/* =========================================================
   FORUM SYSTEM
========================================================= */

/* Shared list containers */
.forum-list,
.topic-list {
    display: flex;
    flex-direction: column;
}

/* Shared grid layout */
.forum-header,
.forum-row,
.topic-header,
.topic-row {
    display: grid;
    grid-template-columns:
        40px
        2fr
        90px
        90px
        2fr;
}

/* Shared header styling */
.forum-header,
.topic-header {
    font-weight: bold;
    padding: 6px 10px;
}

/* Shared row styling */
.forum-row,
.topic-row {
    align-items: center;
    padding: 10px;
    border-top: 1px solid var(--border);
    transition: background 0.15s ease;
}

/* Users list */
.users-list {
    display: flex;
    flex-direction: column;
}

.users-header,
.users-topics,
.users-posts {
    display: grid;
    grid-template-columns:
        35px
        350px
        350px;
}

.users-icon {
    text-align: center;
}

.users-title {
    color: var(--link);
    text-decoration: none;
}

.users-title:hover {
    color: var(--link-hover);
}

.users-info,
.users-last {
    /* Placeholder for future styles */
}

/* =========================================================
   ICONS
========================================================= */
.forum-icon,
.topic-icon {
    text-align: center;
}

/* =========================================================
   TITLES / LINKS
========================================================= */
.forum-title,
.topic-title {
    color: var(--link);
    text-decoration: none;
}

.forum-title:hover,
.topic-title:hover {
    color: var(--link-hover);
}

/* =========================================================
   STATS
========================================================= */
.forum-stat,
.topic-stat {
    text-align: center;
}

/* =========================================================
   LAST POST INFO
========================================================= */
.forum-empty {
    opacity: 0.5;
}

/* =========================================================
   BREADCRUMB
========================================================= */
.forum-breadcrumb {
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.7;
}

.forum-breadcrumb a {
    color: var(--link);
}

/* =========================================================
   POSTS
========================================================= */
.forum-post {
    display: grid;
    grid-template-columns:
        160px
        1fr;
    gap: 12px;
    padding: 12px;
    border-top: 1px solid var(--border);
}

/* User column */
.post-user {
    text-align: center;
}

.post-username {
    margin-bottom: 6px;
}

.post-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
}

/* Post header */
.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 6px;
}

.post-number {
    float: right;
}

/* Post body */
.post-body {
    display: flex;
    flex-direction: column;
}

.post-content {
    line-height: 1.5;
    word-wrap: break-word;
}

/* =========================================================
   FORUM FORMS
========================================================= */
.forum-form {
    display: flex;
    flex-direction: column;
}

.forum-input,
.forum-textarea {
    border-radius: 6px;
    border: 1px solid var(--border);
}

.forum-input {
    padding: 8px 10px;
}

.forum-textarea {
    padding: 10px;
    resize: vertical;
}

/* =========================================================
   ACTIONS
========================================================= */
.forum-actions {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}