/* =====================================================
   THE TAILGATE - Forum Styles
   The Back Porch Southern Sports Show
   ===================================================== */

/* ===== Forum Header ===== */
.forum-header {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(201, 162, 39, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 24px;
}

.forum-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.forum-title-section h1 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.forum-title-section h1 i {
    color: var(--bourbon);
}

.forum-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.forum-stats-bar {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.stat-item i {
    color: var(--bourbon);
}

.stat-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ===== Forum Main Layout ===== */
.forum-main {
    padding: 24px;
}

.forum-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
}

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

.btn-new-topic {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
}

.btn-bourbon {
    background: linear-gradient(135deg, var(--bourbon) 0%, var(--bourbon-dark) 100%);
    color: #000;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-bourbon:hover {
    background: linear-gradient(135deg, var(--bourbon-light) 0%, var(--bourbon) 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 162, 39, 0.3);
}

.sidebar-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-section h3 i {
    color: var(--bourbon);
}

/* Category List */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.category-item:hover {
    background: var(--bg-card-hover);
}

.category-item.active {
    background: rgba(201, 162, 39, 0.15);
    color: var(--bourbon);
}

.category-item i {
    font-size: 14px;
    color: var(--text-muted);
    width: 18px;
    text-align: center;
}

.category-item.active i {
    color: var(--bourbon);
}

.category-item span:first-of-type {
    flex: 1;
    font-size: 13px;
}

.category-item .count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 10px;
}

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

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-input);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(201, 162, 39, 0.2);
    color: var(--bourbon);
}

/* Sidebar Promo */
.sidebar-promo {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(37, 34, 32, 0.95) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
}

.sidebar-promo .promo-logo {
    height: 40px;
    margin: 0 auto 12px;
}

.sidebar-promo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.btn-bourbon-outline {
    border: 1px solid var(--bourbon);
    color: var(--bourbon);
    background: transparent;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s;
}

.btn-bourbon-outline:hover {
    background: var(--bourbon);
    color: #000;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ===== Forum Content ===== */
.forum-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.topics-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.topics-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.topics-section .section-header h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
}

.topics-section .section-header h2 i {
    color: var(--bourbon);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 4px;
}

.filter-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.filter-tab:hover {
    color: var(--text-secondary);
    background: var(--bg-input);
}

.filter-tab.active {
    color: var(--bourbon);
    background: rgba(201, 162, 39, 0.15);
}

/* ===== Topic Cards ===== */
.topic-card {
    display: grid;
    grid-template-columns: 60px 1fr 140px;
    gap: 16px;
    padding: 20px;
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all 0.2s;
}

.topic-card:last-child {
    margin-bottom: 0;
}

.topic-card:hover {
    background: var(--bg-card-hover);
}

.topic-card.pinned {
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08) 0%, var(--bg-input) 100%);
    border-left: 3px solid var(--bourbon);
}

.topic-card.hot {
    border-left: 3px solid var(--live-red);
}

/* Votes */
.topic-votes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.vote-btn {
    width: 40px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all 0.2s;
}

.vote-btn:hover {
    background: rgba(201, 162, 39, 0.2);
    color: var(--bourbon);
}

.vote-btn.upvoted {
    background: rgba(201, 162, 39, 0.2);
    color: var(--bourbon);
}

.vote-count {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Topic Content */
.topic-content {
    min-width: 0;
}

.topic-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-pinned {
    background: rgba(201, 162, 39, 0.2);
    color: var(--bourbon);
}

.badge-official {
    background: rgba(76, 175, 80, 0.2);
    color: var(--success);
}

.badge-hot {
    background: rgba(229, 57, 53, 0.2);
    color: var(--live-red);
}

.badge-duck-club {
    background: rgba(201, 162, 39, 0.2);
    color: var(--bourbon);
}

.badge-sec {
    background: rgba(224, 120, 50, 0.2);
    color: var(--orange);
}

.badge-rivalry {
    background: rgba(156, 39, 176, 0.2);
    color: #ce93d8;
}

.badge-recruiting {
    background: rgba(33, 150, 243, 0.2);
    color: #64b5f6;
}

.badge-coaching {
    background: rgba(255, 152, 0, 0.2);
    color: #ffb74d;
}

.badge-hunting {
    background: rgba(76, 175, 80, 0.2);
    color: #81c784;
}

.badge-bourbon {
    background: rgba(121, 85, 72, 0.3);
    color: #bcaaa4;
}

.badge-gameday {
    background: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
}

.badge-show {
    background: rgba(103, 58, 183, 0.2);
    color: #b39ddb;
}

.topic-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.topic-content h3 a {
    color: var(--text-primary);
    transition: color 0.2s;
}

.topic-content h3 a:hover {
    color: var(--bourbon);
}

.topic-content > p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Topic Meta */
.topic-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.topic-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--text-muted);
}

.author-avatar.staff {
    background: linear-gradient(135deg, var(--bourbon) 0%, var(--bourbon-dark) 100%);
    color: #000;
}

.author-avatar.premium {
    background: linear-gradient(135deg, var(--bourbon) 0%, var(--orange) 100%);
    color: #000;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.author-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-muted);
}

.author-badge.duck-club {
    background: rgba(201, 162, 39, 0.2);
    color: var(--bourbon);
}

.topic-stats {
    display: flex;
    gap: 16px;
}

.topic-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.topic-stats i {
    font-size: 11px;
}

/* Topic Activity */
.topic-activity {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

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

.reply-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-author .author-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.reply-author span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Active Users */
.active-users {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.user-stack {
    display: flex;
    align-items: center;
}

.mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
    margin-left: -8px;
}

.mini-avatar:first-child {
    margin-left: 0;
}

.more-users {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 6px;
}

.active-label {
    font-size: 10px;
    color: var(--text-muted);
}

/* ===== Pagination ===== */
.forum-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.page-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.page-btn.active {
    background: var(--bourbon);
    color: #000;
}

.page-ellipsis {
    color: var(--text-muted);
    padding: 0 8px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .forum-container {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .btn-new-topic {
        grid-column: 1 / -1;
    }
    
    .sidebar-promo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .forum-header {
        padding: 24px 16px;
    }
    
    .forum-title-section h1 {
        font-size: 24px;
    }
    
    .forum-stats-bar {
        gap: 16px;
    }
    
    .forum-main {
        padding: 16px;
    }
    
    .forum-sidebar {
        grid-template-columns: 1fr;
    }
    
    .topic-card {
        grid-template-columns: 50px 1fr;
        gap: 12px;
    }
    
    .topic-activity {
        display: none;
    }
    
    .topics-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    
    .topic-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .topic-stats {
        flex-wrap: wrap;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .forum-title-section h1 {
        font-size: 20px;
    }
    
    .forum-tagline {
        font-size: 14px;
    }
    
    .stat-item {
        font-size: 12px;
    }
    
    .topic-content h3 {
        font-size: 14px;
    }
    
    .topic-badges {
        gap: 4px;
    }
    
    .badge {
        padding: 3px 8px;
        font-size: 10px;
    }
}
