/* Forum Styles - forums.css */
.forums-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Header */
.forum-page-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 25px;
    color: white;
    text-align: center;
}

.forum-page-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.forum-page-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Main Layout */
.forum-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}

@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }
}

/* Category Card */
.forum-category {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    overflow: hidden;
}

.category-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    padding: 15px 20px;
    color: white;
}

.category-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

/* Forum List */
.forum-list {
    padding: 0;
}

.forum-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

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

.forum-item:hover {
    background: #fef7f7;
}

.forum-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-left: 15px;
    flex-shrink: 0;
}

.forum-icon.has-new {
    background: linear-gradient(135deg, #c41e3a 0%, #ff6b6b 100%);
}

.forum-info {
    flex: 1;
    min-width: 0;
}

.forum-name {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.forum-name:hover {
    color: #c41e3a;
}

.forum-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    line-height: 1.4;
}

.forum-stats {
    font-size: 12px;
    color: #888;
}

.forum-stats span {
    margin-left: 15px;
}

.forum-last-post {
    width: 200px;
    text-align: left;
    padding-right: 15px;
    flex-shrink: 0;
}

.last-post-title {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.last-post-title:hover {
    color: #c41e3a;
}

.last-post-info {
    font-size: 11px;
    color: #888;
}

/* Sidebar */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    padding: 12px 18px;
    color: white;
    font-weight: 700;
    font-size: 15px;
}

.sidebar-content {
    padding: 15px 18px;
}

/* Stats Card */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 12px;
    background: #f8f4e8;
    border-radius: 10px;
}

.stat-number {
    font-size: 22px;
    font-weight: 700;
    color: #c41e3a;
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #666;
}

/* Recent Topics */
.recent-topic {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-topic:last-child {
    border-bottom: none;
}

.recent-topic-title {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-topic-title:hover {
    color: #c41e3a;
}

.recent-topic-info {
    font-size: 11px;
    color: #888;
}

/* Online Users in sidebar */
.sidebar-card .online-count {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #f8f4e8 0%, #fff 100%);
    border-radius: 10px;
}

.sidebar-card .online-count .number {
    font-size: 28px;
    font-weight: 700;
    color: #4CAF50;
}

.sidebar-card .online-count .label {
    font-size: 13px;
    color: #666;
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
}

.quick-link {
    background: linear-gradient(135deg, #c41e3a 0%, #8B0000 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    flex: 1;
    text-align: center;
    min-width: 100px;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.4);
}

/* No forums message */
.no-forums {
    padding: 40px;
    text-align: center;
    color: #666;
}

/* Online Users List */
.online-users-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.online-user {
    display: inline-block;
    padding: 4px 10px;
    background: #f8f4e8;
    border-radius: 15px;
    font-size: 12px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.online-user:hover {
    background: #c41e3a;
    color: white;
}

.online-user::before {
    content: '●';
    color: #4CAF50;
    margin-left: 5px;
    font-size: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-item {
        flex-wrap: wrap;
    }

    .forum-last-post {
        width: 100%;
        text-align: right;
        padding-right: 0;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px dashed #eee;
    }

    .forum-page-header h1 {
        font-size: 22px;
    }
}
