/* Forum-specific styles */

.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.forum-header {
    text-align: center;
    margin-bottom: 3rem;
}

.forum-header h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.forum-header h1 i {
    color: var(--wow-blue);
}

.forum-actions {
    margin-bottom: 2rem;
    text-align: right;
}

.forum-categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category {
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow);
}

.forum-category h3 {
    background-color: var(--bg-forum-category-header);
    color: var(--text-primary);
    margin: 0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.forum-category h3:hover {
    background-color: #c82333;
}

.forum-category h3 i {
    color: var(--wow-gold);
}

.forum-category h3 .toggle-arrow {
    margin-left: auto;
    color: var(--text-primary);
    font-weight: 900;
    transition: transform 0.3s ease;
}

.forum-category h3 .toggle-arrow:hover {
    color: #ffffff;
}

.forum-list {
    display: flex;
    flex-direction: column;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.forum-item {
    display: grid;
    grid-template-columns: 60px 2fr 150px 200px;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background-color 0.3s ease;
    min-height: 80px;
}

.forum-category-item {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 2rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background-color 0.3s ease;
    min-height: 60px;
}

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

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

.forum-item:hover {
    background-color: var(--bg-secondary);
}

.forum-category-item:hover {
    background-color: var(--bg-secondary);
}

.forum-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    color: var(--wow-blue);
    font-size: 1.5rem;
    box-shadow: 0 2px 4px var(--shadow);
}

.forum-info h4 {
    margin: 0 0 0.5rem 0;
}

.forum-info h4 a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.forum-info h4 a:hover {
    color: var(--accent-hover);
}

.forum-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.forum-stats {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    text-align: center;
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    align-items: center;
}

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

.stat-number {
    font-weight: bold;
    color: var(--wow-gold);
    font-size: 1.1rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-last-post {
    padding: 0.5rem;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    font-size: 0.85rem;
}

.last-post-info {
    color: var(--text-secondary);
}

.last-post-author {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.last-post-author:hover {
    color: var(--accent-hover);
}

.last-post-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.no-posts {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

.forum-stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--shadow);
}

.forum-stats-overview .stat-item {
    text-align: center;
    padding: 1rem;
}

.forum-stats-overview .stat-item i {
    font-size: 2rem;
    color: var(--wow-gold);
    margin-bottom: 0.5rem;
}

.forum-stats-overview .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-primary);
}

.forum-stats-overview .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive forum layout */
@media (max-width: 768px) {
    .forum-item {
        grid-template-columns: auto 1fr;
        gap: 0.5rem;
    }
    
    .forum-stats {
        grid-column: 2;
        justify-self: end;
    }
    
    .forum-last-post {
        grid-column: 1 / -1;
        min-width: auto;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border);
    }
    
    .forum-stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .forum-container {
        padding: 1rem;
    }
    
    .forum-item {
        padding: 1rem;
    }
    
    .forum-stats {
        gap: 1rem;
    }
    
    .forum-stats-overview {
        grid-template-columns: 1fr;
    }
}
