/* Forum Index Page Styles */

#header-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/pages/forum/forum_header.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 300px;
    border-radius: 0;
}

#header-background {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Stat Cards */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Topic Cards */
.topic-card {
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.topic-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
}

.topic-card .card-title a {
    color: inherit;
    transition: color 0.2s ease;
}

.topic-card .card-title a:hover {
    color: #0d6efd;
}

/* Category Badge */
.category-badge {
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.category-badge:hover {
    background-color: #e9ecef !important;
}

/* Sidebar Cards */
.list-group-item-action {
    transition: all 0.2s ease;
}

.list-group-item-action:hover {
    background-color: #f8f9fa;
    padding-left: 1.25rem;
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] .topic-card {
    border-color: rgba(255, 255, 255, 0.125);
}

[data-bs-theme="dark"] .topic-card:hover {
    border-color: rgba(13, 110, 253, 0.5);
}

[data-bs-theme="dark"] .category-badge {
    background-color: #2d3238 !important;
    color: #e9ecef !important;
}

[data-bs-theme="dark"] .category-badge:hover {
    background-color: #3d4248 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #header-image {
        min-height: 250px;
    }

    #header h1 {
        font-size: 1.75rem;
    }

    .stat-card .card-body {
        padding: 1rem;
    }

    .stat-card h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    #header-image {
        min-height: 200px;
    }

    #header h1 {
        font-size: 1.5rem;
    }

    .stat-card .fs-1 {
        font-size: 2rem !important;
    }
}
