/* Forum Home - BeoWorld Style */

/* Content Container - 85% width */
.forum-theme .container-fluid {
    max-width: 85%;
    margin: 0 auto;
}

.forum-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 2rem 0 0 0;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    flex-wrap: wrap;
}

.forum-tabs .tab-item {
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    color: #666;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.forum-tabs .tab-item:hover {
    background: rgba(49, 129, 168, 0.08);
    color: #3181A8;
}

.forum-tabs .tab-item.active {
    background: rgba(49, 129, 168, 0.12);
    color: #3181A8;
    border-bottom-color: #3181A8;
}

/* Tab Content */
.forum-tab-content {
    margin-top: 2rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Forum Table */
.forum-table {
    width: 100%;
    border-collapse: collapse;
}

.forum-table thead {
    background: #F5F5F5;
}

.forum-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    border-bottom: 2px solid #E0E0E0;
}

.forum-table tbody tr {
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.2s ease;
}

.forum-table tbody tr:hover {
    background: rgba(49, 129, 168, 0.04);
}

.forum-table tbody td {
    padding: 16px;
    vertical-align: top;
}

.forum-table tbody td:nth-child(2),
.forum-table tbody td:nth-child(3) {
    text-align: center;
    font-weight: 600;
    color: #666;
}

/* Forum Info */
.forum-info .forum-link {
    font-weight: 600;
    font-size: 1rem;
    color: #3181A8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-info .forum-link:hover {
    color: #DEB256;
}

/* Sub-Forum List */
.subforum-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.subforum-list li {
    display: flex;
    align-items: center;
    gap: 4px;
}

.subforum-dash {
    color: #999;
    font-weight: bold;
}

.subforum-link {
    color: #3181A8;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.subforum-link:hover {
    color: #DEB256;
    text-decoration: underline;
}

/* Last Active */
.last-active {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    flex-shrink: 0;
    font-size: 2rem;
    color: #DEB256;
}

.user-avatar i {
    display: block;
}

.username {
    font-weight: 500;
    color: #333;
}

.post-meta,
.post-meta a {
    color: #999;
    font-size: 0.85rem;
    text-decoration: none;
}

.post-meta a:hover {
    color: #3181A8;
    text-decoration: underline;
}

/* Topic Item */
.topic-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.topic-avatar {
    flex-shrink: 0;
    font-size: 2.5rem;
    color: #DEB256;
}

.topic-avatar-small {
    flex-shrink: 0;
    font-size: 2rem;
    color: #DEB256;
}

.topic-content {
    flex: 1;
}

.topic-link {
    font-weight: 600;
    font-size: 1rem;
    color: #3181A8;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.topic-link:hover {
    color: #DEB256;
}

.topic-meta {
    font-size: 0.85rem;
    color: #999;
}

.topic-meta span {
    margin-right: 8px;
}

.category-link {
    color: #3181A8;
    text-decoration: none;
}

.category-link:hover {
    color: #DEB256;
    text-decoration: underline;
}

/* Pagination Info */
.pagination-info {
    padding: 12px 16px;
    background: #F9F9F9;
    border-bottom: 1px solid #E0E0E0;
    font-size: 0.9rem;
    color: #666;
}

.pagination-info:last-child {
    border-top: 1px solid #E0E0E0;
    border-bottom: none;
}

/* Loading & Empty States */
.loading-spinner,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 16px;
}

.loading-spinner p,
.empty-state p {
    font-size: 1rem;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 991px) {
    .forum-tabs {
        margin-top: 1.5rem;
    }
    
    .forum-tabs .tab-item {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .forum-table tbody td {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .topic-avatar {
        font-size: 2rem;
    }
    
    .user-avatar {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .forum-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-top: 1rem;
    }
    
    .forum-tabs .tab-item {
        padding: 10px 14px;
        font-size: 0.8rem;
    }
    
    .forum-table {
        font-size: 0.85rem;
    }
    
    .forum-table thead th {
        padding: 10px 12px;
        font-size: 0.8rem;
    }
    
    .forum-table tbody td {
        padding: 10px 12px;
    }
    
    .forum-table tbody td:nth-child(2),
    .forum-table tbody td:nth-child(3) {
        font-size: 0.85rem;
    }
    
    /* Hide Topics/Posts/Voices columns on mobile for Forum Index */
    .forum-table tbody tr td:nth-child(2),
    .forum-table tbody tr td:nth-child(3) {
        display: none;
    }
    
    .forum-table thead tr th:nth-child(2),
    .forum-table thead tr th:nth-child(3) {
        display: none;
    }
    
    .topic-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .topic-avatar {
        font-size: 1.5rem;
    }
    
    .topic-link {
        font-size: 0.9rem;
    }
    
    .topic-meta {
        font-size: 0.75rem;
    }
}

@media (max-width: 575px) {
    .forum-tabs .tab-item {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        padding: 10px 12px;
    }
}