/* Modern Forum Design - Inspired by Discourse/phpBB */

.forum-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 40px;
    min-height: calc(100vh - 400px);
}

/* Breadcrumbs */
.forum-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #999;
}

.forum-breadcrumbs a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.forum-breadcrumbs a:hover {
    color: #ff8c5a;
}

.breadcrumb-separator {
    color: #666;
}

/* Forum Header */
.forum-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 107, 53, 0.3);
}

.forum-title-section h1 {
    font-size: 2rem;
    color: var(--theme-primary);
    margin: 0;
}

.forum-stats {
    display: flex;
    gap: 30px;
    font-size: 0.9rem;
    color: #aaa;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Category Section */
.forum-category {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.category-header {
    background: rgba(255, 107, 53, 0.1);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-icon {
    font-size: 1.8rem;
}

.category-info h2 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--theme-primary);
}

.category-description {
    font-size: 0.85rem;
    color: #aaa;
    margin: 4px 0 0 0;
}

/* Thread Table */
.threads-table {
    width: 100%;
}

.thread-row {
    display: grid;
    grid-template-columns: 1fr 120px 100px 250px;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    cursor: pointer;
    align-items: center;
}

.thread-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.thread-row.pinned {
    background: rgba(255, 107, 53, 0.05);
}

/* Thread Content Column */
.thread-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.thread-icon {
    font-size: 1.5rem;
    opacity: 0.6;
    flex-shrink: 0;
}

.thread-icon.pinned {
    opacity: 1;
}

.thread-details {
    flex: 1;
    min-width: 0;
}

.thread-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thread-title:hover {
    color: var(--theme-primary);
}

.thread-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 12px;
    align-items: center;
}

.thread-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: rgba(255, 107, 53, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--theme-primary);
}

/* Stats Columns */
.thread-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.author-name {
    font-size: 0.9rem;
    color: #ccc;
}

.author-role {
    font-size: 0.75rem;
    color: #888;
}

.thread-stats {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.stat-line {
    font-size: 0.85rem;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.stat-number-small {
    font-weight: 600;
    color: var(--theme-primary);
}

/* Last Activity Column */
.thread-activity {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.activity-time {
    font-size: 0.85rem;
    color: #aaa;
}

.activity-user {
    font-size: 0.85rem;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Empty State */
.empty-category {
    padding: 40px;
    text-align: center;
    color: #888;
}

.empty-category-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}

/* Action Buttons */
.forum-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-forum {
    padding: 12px 24px;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-forum:hover {
    background: #ff8c5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

.btn-forum-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-forum-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Pagination */
.forum-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
}

.page-btn:hover {
    background: rgba(255,107,53,0.2);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

.page-btn.active {
    background: var(--theme-primary);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .thread-row {
        grid-template-columns: 1fr 100px 80px 200px;
    }
}

@media (max-width: 768px) {
    .thread-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .thread-stats,
    .thread-activity {
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
    }
    
    .forum-stats {
        flex-direction: column;
        gap: 10px;
    }
}