/* style.css */

/* Base styles - let Bootstrap handle colors */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 600;
}

.forum-category-title {
    font-size: 1.2rem;
    text-decoration: none;
}

.forum-stats {
    font-size: 0.9rem;
    opacity: 0.7;
}

.topic-title {
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
}

.post-content {
    font-size: 1rem;
    line-height: 1.6;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.admin-badge {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    h2 {
        margin-top: 2rem;
    }

    .col-md-9 h2:first-child,
    .col-md-12 h2:first-child {
        margin-top: 1rem;
    }
}

/* User mention styling */
.mention {
    color: #0d6efd;
    font-weight: 500;
    text-decoration: none;
    background-color: rgba(13, 110, 253, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.mention:hover {
    background-color: rgba(13, 110, 253, 0.2);
    text-decoration: none;
}

/* Dark Mode Support - Using Bootstrap 5.3 Native Dark Mode */

/* Smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Zero-flicker icon switching */
#icon-sun {
    display: none;
}

#icon-moon {
    display: inline-block;
}

[data-bs-theme="dark"] #icon-sun {
    display: inline-block;
}

[data-bs-theme="dark"] #icon-moon {
    display: none;
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] .mention {
    background-color: rgba(13, 110, 253, 0.25);
    color: #6ea8fe;
}

[data-bs-theme="dark"] .navbar {
    box-shadow: 0 2px 4px rgba(255, 255, 255, .05);
}

[data-bs-theme="dark"] .card {
    box-shadow: 0 1px 3px rgba(255, 255, 255, .05);
}

.fa-thumbtack {
    font-size: 15px;
}

h2 .fa-thumbtack {
    font-size: 18px;
    position: relative;
    top: -2px;
}