

.forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0 2rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.forum-header-content .forum-title {
    font-size: 2.25rem;
    color: #e5e7eb;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
}

.forum-header-content .forum-description {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
}

.forum-header-actions .btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #3478F6;
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(52, 120, 246, 0.2);
}

.forum-header-actions .btn.btn-primary:hover {
    background: #2a6ad9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 120, 246, 0.3);
}

/* --- Sub-Forums List --- */
.sub-forums-container {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.sub-forums-container .sub-forums-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.1);
}

.sub-forums-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background-color: rgba(255, 255, 255, 0.1);
}

.sub-forum-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background-color: #1a1a1e;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.sub-forum-item:hover {
    background-color: #242429;
}

.sub-forum-icon {
    font-size: 1.5rem;
    color: #3478F6;
}

.sub-forum-name {
    font-weight: 600;
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 0.2rem;
}

.sub-forum-desc {
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.5;
}


/* --- Thread List (Table-like Layout) --- */
.thread-list {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.thread-list-header,
.thread-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.thread-list-header {
    background-color: rgba(0, 0, 0, 0.1);
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.thread-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background-color 0.2s ease;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-item:hover {
    background-color: #242429;
}

.thread-item.sticky {
    background-color: rgba(52, 120, 246, 0.08);
    border-left: 3px solid #3478F6;
    padding-left: calc(1.5rem - 3px);
}

/* Column Widths */
.thread-icon-col { flex: 0 0 30px; text-align: center; font-size: 1.1rem; color: #6b7280; }
.thread-title-col { flex: 1 1 50%; }
.thread-stats-col { flex: 0 0 120px; text-align: right; }
.thread-activity-col { flex: 0 0 200px; text-align: right; }

/* Content inside columns */
.thread-labels { margin-bottom: 0.4rem; }
.thread-label {
    display: inline-block;
    padding: 3px 8px;
    margin-right: 5px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
}

.thread-title-link {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.2s ease;
}
.thread-title-link:hover { color: #3478F6; }

.thread-author {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}
.thread-author a { color: #b0c9f7; text-decoration: none; }
.thread-author a:hover { text-decoration: underline; }

.thread-stats-col span,
.thread-activity-col span,
.thread-activity-col time {
    display: block;
    font-size: 0.9rem;
    color: #d1d5db;
}

.thread-stats-col span { margin-bottom: 0.25rem; }

.thread-activity-col span { font-weight: 500; }
.thread-activity-col time, .thread-activity-col span a { font-size: 0.85rem; color: #9ca3af; text-decoration: none; }
.thread-activity-col span a:hover { text-decoration: underline; }


/* "No Threads" Message */
.thread-item-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #9ca3af;
}
.thread-item-empty p { margin: 0.5rem 0; }
.thread-item-empty a { color: #3478F6; font-weight: 600; }


/* Responsive Design */
@media (max-width: 768px) {
    .forum-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .thread-stats-col, .thread-activity-col {
        display: none;
    }
    .thread-list-header, .thread-item {
        padding: 0.75rem 1rem;
    }
    .thread-icon-col { flex: 0 0 25px; }
}