/* Forum System Styles */

/* New Thread Form */
.new-thread-form-container .card {
    border: 1px solid #e9ecef;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border-radius: 8px;
}

.new-thread-form-container .card-header {
    background: #039BE5;
    color: white;
    border-bottom: none;
}

.new-thread-form-container .card-header h5 {
    margin: 0;
    font-weight: 600;
}

.new-thread-form-container .form-label {  
    font-weight: 600;
    color: #495057;
}
 
.new-thread-form-container .form-control,
.new-thread-form-container .form-select {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

.new-thread-form-container .form-control:focus,
.new-thread-form-container .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.new-thread-form-container .btn {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 16px;
    transition: all 0.2s ease;
    width: auto;
    min-width: 120px;
}

.new-thread-form-container .btn:hover {
    transform: translateY(-1px);
}

.new-thread-form-container .btn-primary {
    background: #039BE5;
    border: none;
}

.new-thread-form-container .btn-primary:hover {
    background: #0288d1;
}

/* Button alignment and sizing */
.new-thread-form-container .btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.new-thread-form-container .btn {
    margin-bottom: 0;
}

/* Forum container */
.forum-container {
    padding: 20px 0;
}

/* Notification bar */
.notification-bar {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 10px 0;
    margin-bottom: 20px;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-actions {
    display: flex;
    gap: 10px;
}

/* Sidebar */
.forum-sidebar .card {
    margin-bottom: 20px;
}

.forum-sidebar .list-group-item {
    border-left: none;
    border-right: none;
    border-radius: 0;
}

.forum-sidebar .list-group-item.active {
    background-color: #039BE5;
    border-color: #039BE5;
}

.forum-sidebar .list-group-item i.fa.fa-chevron-right {
    color: #6c757d;
}

/* Stats */
.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
}

.stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
}

/* Category header */
.category-header h1 {
    color: #333;
    margin-bottom: 10px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

/* Threads list */
.threads-list {
    min-height: 200px;
}

/* Override global link colors for forum topics */
.thread-item .thread-title {
    color: #333 !important;
}

.thread-item .thread-title:hover {
    color: #007bff !important;
}

.thread-item a {
    color: #333 !important;
    text-decoration: none;
}

.thread-item a:hover {
    color: #007bff !important;
    text-decoration: none;
}

.thread-item {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Thread Layout (3 Columns) */
.thread-layout {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.thread-author-column {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.thread-content-column {
    flex-grow: 1;
    min-width: 0;
    border-left: 1px solid #e9ecef;
    padding-left: 30px;
}

.thread-date-column {
    flex-shrink: 0;
    width: 120px;
    text-align: right;
}

.thread-author-column .avatar img {
    border-radius: 50%;
    object-fit: cover;
}

.thread-author-column h6 {
    margin-bottom: 5px;
}

.thread-author-column h6 a {
    color: #333;
    text-decoration: none;
}

.thread-author-column h6 a:hover {
    color: #007bff;
}

.thread-location {
    margin-top: 5px;
}

.thread-location small {
    font-size: 12px;
}

.thread-item:hover {
    background-color: #f8f9fa;
}

.thread-item:last-child {
    border-bottom: none;
}

.thread-item.sticky {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

.thread-item.locked {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
}

.thread-header {
    margin-bottom: 15px;
}

.thread-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

.thread-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.thread-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.thread-status {
    display: flex;
    gap: 5px;
    margin-left: 15px;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.sticky {
    background-color: #ffc107;
    color: #000;
}

.status-badge.locked {
    background-color: #dc3545;
    color: #fff;
}

.status-badge.race {
    background-color: #28a745;
    color: #fff;
}

.thread-stats {
    display: flex;
    gap: 20px;
}

.thread-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #6c757d;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: #495057;
}

/* Pagination */
.pagination {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-container {
        padding: 15px;
        max-width: 100%;
    }
    
    .forum-sidebar {
        margin-bottom: 30px;
    }
    
    .category-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .category-actions .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .thread-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .thread-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Mobile thread layout */
    .thread-layout {
        flex-direction: column;
        gap: 15px;
    }
    
    .thread-author-column {
        width: 100%;
        justify-content: flex-start;
    }
    
    .thread-date-column {
        width: 100%;
        text-align: left;
    }
    
    .thread-content-column {
        order: 2;
    }
    
    .thread-author-column {
        order: 1;
    }
    
    .thread-date-column {
        order: 3;
    }
}

