/* Forum Specific Styles */

/* Forum Hero */
.forum-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.forum-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.forum-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.forum-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Forum Main Layout */
.forum-main {
    padding: 60px 0;
    background: #f8fafc;
}

.forum-main .container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.forum-categories h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 40px;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
}

.category-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

/* Forum Category Card */
.forum-category {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.forum-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    border-radius: 12px;
}

.category-info h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-info h4 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-info h4 a:hover {
    color: #2563eb;
}

.category-info p {
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
}

.category-stats {
    font-size: 0.85rem;
    color: #94a3b8;
}

.category-stats span {
    margin: 0 5px;
}

.category-latest {
    text-align: right;
}

.latest-topic {
    font-size: 0.9rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 5px;
}

.latest-author {
    font-size: 0.85rem;
    color: #64748b;
}

/* Sidebar */
.forum-sidebar {
    position: sticky;
    top: 110px;
    height: fit-content;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
}

/* Hot Topics */
.hot-topics {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-topic {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hot-topic:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hot-topic:hover .topic-title {
    color: #2563eb;
}

.topic-title {
    font-size: 0.9rem;
    color: #1e293b;
    flex: 1;
    margin-right: 10px;
}

.topic-stats {
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Forum Stats */
.forum-overall-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

.stat-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e0e7ff;
    color: #2563eb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
}

.cta-section h3 {
    color: white;
}

.cta-section p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Active Nav Link */
.nav-link.active {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .forum-main .container {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .forum-hero h1 {
        font-size: 2rem;
    }
    
    .forum-stats {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .forum-category {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .category-icon {
        margin: 0 auto;
    }
    
    .category-latest {
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid #e2e8f0;
    }
    
    .forum-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .forum-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .category-section h3 {
        font-size: 1.25rem;
    }
    
    .category-info h4 {
        font-size: 1.1rem;
    }
}

/* Additional Mobile Forum Styles */
@media (max-width: 768px) {
    .forum-hero {
        padding: 100px 0 40px;
    }
    
    .forum-hero h1 {
        font-size: 1.75rem;
    }
    
    .forum-hero p {
        font-size: 1rem;
    }
    
    .forum-main {
        padding: 40px 0;
    }
    
    .sidebar-section {
        margin-bottom: 15px;
    }
    
    .hot-topic {
        padding: 10px 0;
    }
    
    .tag-cloud {
        gap: 6px;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}