/* ============================================================================================================
   SUBCOMMUNITY SHARED STYLES - Organized & Streamlined
   Used by: The Drift, News & Stories, Community, Watch
   ============================================================================================================

   TABLE OF CONTENTS:
   1. GLOBAL STYLES & ANIMATIONS
   2. LAYOUT SYSTEMS
      - Welcome Back Bar
      - Hero Section
      - Panel Navigation
      - Three Column Layout
   3. SIDEBAR COMPONENTS
      - Shared Card Styles
      - Left Sidebar Cards
      - Right Sidebar Cards
   4. MAIN FEED COMPONENTS
      - Feed Controls
      - Feed Posts
      - Engagement & Actions
   5. PAGE-SPECIFIC STYLES
      - News & Stories
      - Community
      - Watch
   6. GLASSMORPHISM SYSTEM
   7. RESPONSIVE DESIGN

   ============================================================================================================ */


/* ============================================================================================================
   1. GLOBAL STYLES & ANIMATIONS
   ============================================================================================================ */

/* Keyframe Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes pulseDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================================================================
   2. LAYOUT SYSTEMS
   ============================================================================================================ */

/* ============================================
   WELCOME BACK BAR
   ============================================ */
.welcome-back-bar {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.1) 0%, rgba(var(--theme-primary-rgb), 0.05) 100%);
    border-bottom: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 80px;
    z-index: 900;
    backdrop-filter: blur(10px);
    animation: slideDown 0.4s ease-out;
}

.welcome-message {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.welcome-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theme-primary);
}

.time-away {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.whats-new-pills {
    display: flex;
    gap: 0.75rem;
}

.new-pill {
    background: rgba(var(--theme-primary-rgb), 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--theme-primary);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   HERO SECTION - COMPACT VERSION
   ============================================ */
.subcommunity-hero-compact {
    position: relative;
    height: 250px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content-compact {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-tagline {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    opacity: 0.95;
}

.community-pulse-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 10px #4ade80;
}

.pulse-dot-mini {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulseDot 2s ease-in-out infinite;
    box-shadow: 0 0 8px #4ade80;
}

.pulse-text {
    font-weight: 500;
}

/* ============================================
   PANEL NAVIGATION TABS - Enhanced Glassmorphism
   ============================================ */
.panel-navigation-tabs {
    display: flex;
    gap: 1rem;
    padding: 0 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    position: sticky;
    top: 140px;
    z-index: 850;
    background: var(--background-color);
    backdrop-filter: blur(10px);
}

.panel-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glassmorphism Base */
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.03) 0%,
        rgba(var(--theme-primary-rgb), 0.08) 50%,
        rgba(var(--theme-primary-rgb), 0.03) 100%
    );
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border-radius: 12px;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Remove bottom border positioning */
    top: 0;
    margin-bottom: 0.5rem;
}

/* Subtle inner glow effect */
.panel-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(var(--theme-primary-rgb), 0.05) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Hover State - Expansion & Glow */
.panel-tab:hover {
    color: var(--theme-primary);
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.12) 0%,
        rgba(var(--theme-primary-rgb), 0.18) 50%,
        rgba(var(--theme-primary-rgb), 0.12) 100%
    );
    border-color: rgba(var(--theme-primary-rgb), 0.5);
    box-shadow: 
        /* Outer glow - theme color */
        0 0 40px rgba(var(--theme-primary-rgb), 0.6),
        0 0 60px rgba(var(--theme-primary-rgb), 0.4),
        0 0 80px rgba(var(--theme-primary-rgb), 0.2),
        /* Close glow */
        0 8px 20px rgba(var(--theme-primary-rgb), 0.35),
        /* Inner highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        /* Depth shadow */
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.panel-tab:hover::before {
    opacity: 1;
}

/* Enhanced glow on active hover */
.panel-tab.active:hover {
    box-shadow: 
        /* Stronger outer glow - theme color */
        0 0 50px rgba(var(--theme-primary-rgb), 0.7),
        0 0 70px rgba(var(--theme-primary-rgb), 0.5),
        0 0 100px rgba(var(--theme-primary-rgb), 0.3),
        /* Close glow */
        0 8px 24px rgba(var(--theme-primary-rgb), 0.45),
        /* Inner highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        /* Depth shadow */
        0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px) scale(1.06);
}

.panel-tab.active::before {
    opacity: 1;
}

/* Icon styling */
.tab-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.panel-tab:hover .tab-icon {
    transform: scale(1.1) rotate(5deg);
}

.panel-tab.active .tab-icon {
    transform: scale(1.05);
}

/* Label styling */
.tab-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ============================================
   TIGHT INTEGRATION (ALL PAGES including Drift)
   ============================================ */

/* Initial state - close to main nav */
body[data-panel="news"] .panel-navigation-tabs,
body[data-panel="community"] .panel-navigation-tabs,
body[data-panel="watch"] .panel-navigation-tabs,
body[data-panel="drift"] .panel-navigation-tabs {
    top: 80px; /* Start closer */
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Merged state - LOCKED to main nav, no bounce */
body[data-panel="news"] .panel-navigation-tabs.merged,
body[data-panel="community"] .panel-navigation-tabs.merged,
body[data-panel="watch"] .panel-navigation-tabs.merged,
body[data-panel="drift"] .panel-navigation-tabs.merged {
    position: fixed !important;
    top: 60px !important; /* Exact bottom of main nav */
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0.6rem 1.5rem !important;
    z-index: 900;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(var(--theme-primary-rgb), 0.1);
}
/* ============================================
   THREE COLUMN LAYOUT
   ============================================ */
.subcommunity-three-column {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 .5rem .9rem .5rem;
}

/* ============================================================================================================
   3. SIDEBAR COMPONENTS
   ============================================================================================================ */

/* ============================================
   SHARED SIDEBAR STYLES
   ============================================ */
.subcommunity-sidebar-left,
.subcommunity-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 210px;
    height: fit-content;
    max-height: calc(100vh - 230px);
    overflow-y: auto;
}

.subcommunity-sidebar-left::-webkit-scrollbar,
.subcommunity-sidebar-right::-webkit-scrollbar {
    width: 6px;
}

.subcommunity-sidebar-left::-webkit-scrollbar-thumb,
.subcommunity-sidebar-right::-webkit-scrollbar-thumb {
    background: rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 3px;
}

/* ============================================
   SHARED CARD STYLES
   ============================================ */
.pulse-dashboard,
.your-reputation-card,
.quick-nav-card,
.experts-card,
.review-queue-card,
.events-card,
.active-now-card,
.news-search-card,
.news-categories-card,
.peer-review-status-card,
.popular-authors-card,
.community-stats-card,
.submit-story-card,
.trending-guides-card,
.quick-actions-card,
.community-nav-card,
.online-members-card,
.quick-links-card,
.upcoming-events-mini,
.guidelines-card,
.moderator-team-card,
.video-categories-card,
.platform-filters-card,
.duration-filters-card,
.featured-creators-card,
.trending-videos-card,
.playlists-card,
.submit-video-card {
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.2rem;
}

/* ============================================
   LEFT SIDEBAR - PULSE DASHBOARD
   ============================================ */
.pulse-dashboard {
    background: var(--surface-color);
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.pulse-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-icon {
    font-size: 1.3rem;
}

.pulse-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.1);
}

.pulse-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.pulse-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Trending Topics */
.trending-topics {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.trending-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    transform: translateX(3px);
}

.trend-indicator {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}

.heating-up .trend-indicator {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.cooling-down .trend-indicator {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.trend-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trend-topic {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.trend-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Activity Bars */
.activity-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.activity-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.activity-bar-fill {
    height: 100%;
    background: var(--theme-primary);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.activity-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-primary);
}

/* Hot Topics */
.hot-topics-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hot-topic-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.hot-topic-link:hover {
    background: rgba(var(--theme-primary-rgb), 0.12);
    transform: translateX(3px);
}

.topic-emoji {
    font-size: 1.2rem;
}

.topic-text {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* ============================================
   LEFT SIDEBAR - REPUTATION CARD (FIX #1)
   ============================================ */
.your-reputation-card {
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.reputation-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theme-primary);
    margin: 0 0 1rem 0;
}

.reputation-level {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.level-badge {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-radius: 6px;
}

.reputation-points {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--theme-primary);
}

.reputation-progress {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--theme-primary);
    border-radius: 5px;
    transition: width 0.8s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.reputation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rep-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border-radius: 8px;
}

.rep-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--theme-primary);
}

.rep-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
}

/* View Profile Link - Enhanced with Glow */
.view-profile-link {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    
    /* Glassmorphism Base */
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.03) 0%,
        rgba(var(--theme-primary-rgb), 0.08) 50%,
        rgba(var(--theme-primary-rgb), 0.03) 100%
    );
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle inner glow effect */
.view-profile-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(var(--theme-primary-rgb), 0.05) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

/* Text needs to be above the ::before overlay */
.view-profile-link {
    position: relative;
}

/* Hover State - Expansion & Glow */
.view-profile-link:hover {
    color: var(--theme-primary);
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.12) 0%,
        rgba(var(--theme-primary-rgb), 0.18) 50%,
        rgba(var(--theme-primary-rgb), 0.12) 100%
    );
    border-color: rgba(var(--theme-primary-rgb), 0.5);
    box-shadow: 
        /* Outer glow - theme color */
        0 0 30px rgba(var(--theme-primary-rgb), 0.5),
        0 0 50px rgba(var(--theme-primary-rgb), 0.3),
        0 0 70px rgba(var(--theme-primary-rgb), 0.15),
        /* Close glow */
        0 6px 16px rgba(var(--theme-primary-rgb), 0.3),
        /* Inner highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        /* Depth shadow */
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.view-profile-link:hover::before {
    opacity: 1;
}

/* ============================================
   LEFT SIDEBAR - QUICK NAVIGATION - Enhanced with Glow
   ============================================ */
.quick-nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.5rem;
    position: relative;
    
    /* Glassmorphism Base */
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.03) 0%,
        rgba(var(--theme-primary-rgb), 0.08) 50%,
        rgba(var(--theme-primary-rgb), 0.03) 100%
    );
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle inner glow effect */
.quick-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(var(--theme-primary-rgb), 0.05) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Hover State - Expansion & Glow */
.quick-nav-link:hover {
    color: var(--theme-primary);
    transform: translateX(5px) scale(1.03);
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.12) 0%,
        rgba(var(--theme-primary-rgb), 0.18) 50%,
        rgba(var(--theme-primary-rgb), 0.12) 100%
    );
    border-color: rgba(var(--theme-primary-rgb), 0.5);
    box-shadow: 
        /* Outer glow - theme color */
        0 0 30px rgba(var(--theme-primary-rgb), 0.5),
        0 0 50px rgba(var(--theme-primary-rgb), 0.3),
        0 0 70px rgba(var(--theme-primary-rgb), 0.15),
        /* Close glow */
        0 6px 16px rgba(var(--theme-primary-rgb), 0.3),
        /* Inner highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        /* Depth shadow */
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-nav-link:hover::before {
    opacity: 1;
}

/* Icon styling */
.nav-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.quick-nav-link:hover .nav-icon {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 8px rgba(var(--theme-primary-rgb), 0.6));
}

/* Text styling */
.nav-text {
    font-size: 0.95rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quick-nav-link:hover .nav-text {
    font-weight: 600;
}
/* ============================================
   RIGHT SIDEBAR - EXPERTS CARD
   ============================================ */
.experts-card {
    border: 2px solid rgba(139, 92, 246, 0.3) !important;
}

.experts-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8b5cf6;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experts-icon {
    font-size: 1.2rem;
}

.experts-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.expert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.expert-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.expert-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--theme-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
}

.expert-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.expert-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expert-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.expert-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.expert-badge.veteran {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.expert-badge.expert {
    background: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary);
}

.expert-specialty {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.expert-contributions {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.expert-ask-btn {
    padding: 0.4rem 0.8rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.expert-ask-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.view-all-experts-link {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 0.75rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.view-all-experts-link:hover {
    transform: translateX(3px);
}

/* ============================================
   RIGHT SIDEBAR - REVIEW QUEUE CARD (FIX #2)
   ============================================ */
.review-queue-card {
    border: 2px solid rgba(59, 130, 246, 0.3);
}

.queue-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #3b82f6;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.queue-icon {
    font-size: 1.2rem;
}

.queue-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.queue-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 8px;
}

.queue-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.queue-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

.queue-title-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.queue-progress {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.progress-bar-mini {
    width: 100%;
    height: 4px;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill-mini {
    height: 100%;
    background: #3b82f6;
    border-radius: 2px;
    transition: width 0.6s ease;
}

.queue-review-btn {
    padding: 0.4rem 0.8rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.queue-review-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.queue-incentive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(59, 130, 246, 0.08);
    border-radius: 6px;
    margin-top: 1rem;
}

.incentive-icon {
    font-size: 1.2rem;
}

.incentive-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b82f6;
}


/* ============================================
   RIGHT SIDEBAR - EVENTS CARD (COMPACT) (FIX #3)
   ============================================ */
.events-card {
   border: 2px solid rgba(16, 185, 129, 0.3);
}

.events-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f97316;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.events-icon {
    font-size: 1.2rem;
}

.event-item-compact {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.event-item-compact:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    transform: translateX(2px);
}

.event-date-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    min-width: 55px;
}

.event-month {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.event-day {
    font-size: 1.4rem;
    font-weight: 800;
}

.event-info-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-name-compact {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.event-location-compact,
.event-attendees-compact {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.event-rsvp-compact {
    padding: 0.4rem 0.8rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    align-self: flex-start;
}

.event-rsvp-compact:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.view-all-events-compact {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

.view-all-events-compact:hover {
    transform: translateX(3px);
}

/* ============================================
   RIGHT SIDEBAR - ACTIVE NOW CARD (FIX #4)
   ============================================ */
.active-now-card {
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.active-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #10b981;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.active-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.active-member {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
}

.active-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.active-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.active-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.active-action {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.active-more {
    padding: 0.75rem;
    text-align: center;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    margin-top: 0.25rem;
}

.active-more-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}
/* ============================================================================================================
   UNIVERSAL SIDEBAR GLOW EFFECT - ALL LINKS & BUTTONS
   ============================================================================================================ */

/* Target ALL clickable elements in left sidebar */
.subcommunity-sidebar-left a,
.subcommunity-sidebar-left button:not(.expert-ask-btn):not(.queue-review-btn),
.trending-item,
.hot-topic-link,
.quick-nav-link,
.category-item,
.view-profile-link,
.quick-action-btn,
.author-item,
.trending-guide-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Glassmorphism Base */
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.03) 0%,
        rgba(var(--theme-primary-rgb), 0.08) 50%,
        rgba(var(--theme-primary-rgb), 0.03) 100%
    ) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Target ALL clickable elements in right sidebar */
.subcommunity-sidebar-right a,
.subcommunity-sidebar-right button:not(.expert-ask-btn):not(.queue-review-btn):not(.event-rsvp-compact):not(.creator-follow-btn),
.expert-item,
.queue-item,
.event-item-compact,
.active-member,
.video-category-item,
.platform-filter-btn,
.duration-filter-btn,
.featured-creator-item,
.trending-video-item,
.playlist-item,
.online-member,
.event-mini,
.quick-link-item,
.moderator-item {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    
    /* Glassmorphism Base */
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.03) 0%,
        rgba(var(--theme-primary-rgb), 0.08) 50%,
        rgba(var(--theme-primary-rgb), 0.03) 100%
    ) !important;
    backdrop-filter: blur(8px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(120%) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.15) !important;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

/* Inner glow overlay for ALL sidebar items */
.subcommunity-sidebar-left a::before,
.subcommunity-sidebar-left button::before,
.trending-item::before,
.hot-topic-link::before,
.subcommunity-sidebar-right a::before,
.subcommunity-sidebar-right button::before,
.expert-item::before,
.queue-item::before,
.event-item-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%,
        transparent 50%,
        rgba(var(--theme-primary-rgb), 0.05) 100%
    );
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 0;
}

/* Hover State - GLOW EFFECT for ALL sidebar items */
.subcommunity-sidebar-left a:hover,
.subcommunity-sidebar-left button:hover,
.trending-item:hover,
.hot-topic-link:hover,
.subcommunity-sidebar-right a:hover,
.subcommunity-sidebar-right button:hover,
.expert-item:hover,
.queue-item:hover,
.event-item-compact:hover,
.active-member:hover,
.video-category-item:hover,
.platform-filter-btn:hover,
.duration-filter-btn:hover,
.featured-creator-item:hover,
.trending-video-item:hover,
.playlist-item:hover,
.quick-link-item:hover,
.author-item:hover,
.trending-guide-item:hover {
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.12) 0%,
        rgba(var(--theme-primary-rgb), 0.18) 50%,
        rgba(var(--theme-primary-rgb), 0.12) 100%
    ) !important;
    border-color: rgba(var(--theme-primary-rgb), 0.5) !important;
    box-shadow: 
        /* Outer glow - theme color */
        0 0 30px rgba(var(--theme-primary-rgb), 0.5),
        0 0 50px rgba(var(--theme-primary-rgb), 0.3),
        0 0 70px rgba(var(--theme-primary-rgb), 0.15),
        /* Close glow */
        0 6px 16px rgba(var(--theme-primary-rgb), 0.3),
        /* Inner highlight */
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        /* Depth shadow */
        0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(3px) scale(1.02) !important;
}

/* Activate inner glow on hover */
.subcommunity-sidebar-left a:hover::before,
.subcommunity-sidebar-left button:hover::before,
.trending-item:hover::before,
.hot-topic-link:hover::before,
.subcommunity-sidebar-right a:hover::before,
.subcommunity-sidebar-right button:hover::before,
.expert-item:hover::before,
.queue-item:hover::before,
.event-item-compact:hover::before {
    opacity: 1;
}

/* Make sure content stays above overlay */
.subcommunity-sidebar-left a > *,
.subcommunity-sidebar-left button > *,
.subcommunity-sidebar-right a > *,
.subcommunity-sidebar-right button > *,
.expert-item > *,
.queue-item > *,
.trending-item > *,
.hot-topic-link > * {
    position: relative;
    z-index: 1;
}

/* ============================================================================================================
   4. MAIN FEED COMPONENTS
   ============================================================================================================ */

/* ============================================
   MAIN FEED CONTAINER
   ============================================ */
.subcommunity-main-feed {
    display: flex;
    flex-direction: column;
    gap: 0;  /* No gap - controls and stream are independent */
}

/* ============================================
   FEED CONTROLS - Sticky & Collapsible (FIXED)
   ============================================ */
.feed-controls {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    position: sticky !important;
    top: 210px !important;
    z-index: 500 !important;
    backdrop-filter: blur(10px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem !important;
    isolation: isolate;
    will-change: transform, padding;
}

/* Ensure glassmorphism doesn't break sticky */
.subcommunity-main-feed .feed-controls {
    position: sticky !important;
}

/* Compact state when scrolling */
.feed-controls.compact {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Title & subtitle - visible only when expanded */
.feed-controls .feed-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 50px;
    overflow: hidden;
}

.feed-controls .feed-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 30px;
    overflow: hidden;
}

/* Hide title & subtitle in compact mode */
.feed-controls.compact .feed-title,
.feed-controls.compact .feed-subtitle {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

/* Main filters - ALWAYS visible */
.feed-controls .feed-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    transition: margin 0.3s ease;
}

/* Compact mode: remove bottom margin from filters */
.feed-controls.compact .feed-filters {
    margin-bottom: 0;
}

/* Type filters - hide in compact mode */
.feed-controls .feed-type-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
}

.feed-controls.compact .feed-type-filters {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

/* Filter button styles */
.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

.type-filter-btn {
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.08);
    color: var(--text-primary);
}

.type-filter-btn.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}

/* Ensure feed controls content is above glassmorphism */
.feed-controls > * {
    position: relative;
    z-index: 2;
}
/* ============================================================================================================
   STICKY PANEL TABS (for pages without welcome bar)
   ============================================================================================================ */
.panel-navigation-tabs.sticky-only {
    position: fixed;
    top: 60px; /* Height of your main nav bar */
    left: 0;
    right: 0;
    z-index: 900;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* ============================================
   FEED STREAM & POSTS
   ============================================ */
.feed-stream {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0 !important;
}

.feed-post {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease-out;
    position: relative;
    z-index: 1;  /* Below feed controls */
}

.feed-post:hover {
    border-color: rgba(var(--theme-primary-rgb), 0.4);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Post Badges */
.post-badge-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-badge.featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
}

.post-badge.veteran {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.post-badge.help {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.post-badge.review {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.post-badge.hot {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: white;
}

.post-badge.discussion {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

/* Post Header */
.post-header {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.author-badge.expert {
    background: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary);
}

.author-badge.veteran {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.author-badge.contributing {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.author-badge.newcomer {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.post-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Post Content */
.post-content {
    margin-bottom: 1rem;
}

.post-tag {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: rgba(var(--theme-primary-rgb), 0.15);
    color: var(--theme-primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.post-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.post-excerpt {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Post Peer Review */
.post-peer-review {
    background: linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.05) 0%, rgba(var(--theme-primary-rgb), 0.1) 100%);
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.peer-review-score {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.score-stars {
    font-size: 1.2rem;
}

.score-number {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--theme-primary);
}

.veteran-review {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 6px;
    border-left: 3px solid #8b5cf6;
}

.reviewer-badge {
    font-size: 1.2rem;
}

.reviewer-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.5;
}

/* Post Status Indicators */
.post-help-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.help-icon {
    font-size: 1.2rem;
}

.help-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #10b981;
}

.post-trending-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.trending-icon {
    font-size: 1.2rem;
}

.trending-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f97316;
}

/* ============================================
   POST ENGAGEMENT & ACTIONS
   ============================================ */
.post-engagement {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.engagement-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-icon {
    font-size: 1.1rem;
}

.btn-count {
    font-weight: 700;
    color: var(--theme-primary);
}

/* Load More */
.feed-load-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
}

.load-more-btn {
    padding: 0.8rem 2rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.feed-end-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}


/* ============================================================================================================
   5. PAGE-SPECIFIC STYLES
   ============================================================================================================ */

/* ============================================
   NEWS & STORIES PAGE - ARTICLE CARDS
   ============================================ */

/* Articles Grid - Compact 2-Column Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Article Card - Compact Square Format */
.article-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 450px; /* IMPORTANT: Limits total card height */
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Article Image - FIXED HEIGHT for square appearance */
.article-image {
    position: relative;
    width: 100%;
    height: 200px; /* CRITICAL: Fixed height */
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* Star Rating Badge - Top Right */
.article-review-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* Article Content Area - Flexible but controlled */
.article-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0; /* Allows proper flex shrinking */
}

/* Meta Row - Category + Read Time */
.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.article-category {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-read-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Article Title - EXACTLY 2 Lines */
.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em; /* Force 2-line height */
    flex-shrink: 0;
}

/* Article Excerpt - EXACTLY 2 Lines */
.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.7em; /* Force 2-line height */
    flex: 1;
    flex-shrink: 1;
}

/* Footer - Author + Read Button */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.article-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.article-read-btn-small {
    padding: 0.4rem 1rem;
    background: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.article-read-btn-small:hover {
    background: var(--theme-primary);
    color: white;
    transform: translateX(2px);
}
/* ============================================
   LEFT SIDEBAR - NEWS PAGE COMPONENTS
   ============================================ */

/* News Search */
.news-search-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.news-search-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    background: var(--background-color);
    color: var(--text-primary);
}

.news-search-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* News Categories */
.news-categories-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.12);
    transform: translateX(3px);
}

.category-item.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-left: 3px solid var(--theme-primary);
}

.category-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

.category-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
}

.category-count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    background: rgba(var(--theme-primary-rgb), 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

/* Peer Review Status Card */
.peer-review-status-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.review-filter-btns {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.review-filter-btn {
    padding: 0.4rem 0.8rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.review-filter-btn.active {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

.review-info-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Popular Authors Card */
.popular-authors-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.author-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.author-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.author-avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
    flex-shrink: 0;
}

.author-info-small {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
}

.author-name-small {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.author-articles-small {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* ============================================
   RIGHT SIDEBAR - NEWS PAGE COMPONENTS
   ============================================ */

/* Community Stats */
.community-stats-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--theme-primary);
}

/* Submit Story Card */
.submit-story-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.submit-story-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.submit-story-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

.submit-story-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.submit-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border-radius: 6px;
}

.info-icon {
    font-size: 1.2rem;
}

.info-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Trending Guides Card */
.trending-guides-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.trending-guide-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-guide-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.trending-guide-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.trending-rank {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--theme-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

.trending-guide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trending-guide-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trending-guide-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Quick Actions Card */
.quick-actions-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.quick-action-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
}

.quick-action-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    transform: translateX(3px);
}

.action-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.action-text {
    font-size: 0.95rem;
    font-weight: 500;
}
/* ============================================
   NEWS PAGE HEADER - MATCHES SIDEBAR STYLE
   ============================================ */
.news-page-header {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.news-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.news-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.news-sort-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
    transform: translateY(-1px);
}

.sort-btn.active {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}
/* ============================================
   COMMUNITY PAGE
   ============================================ */

/* Community Navigation */
.community-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    position: relative;
}

.community-nav-link:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    transform: translateX(3px);
}

.community-nav-link.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-left: 3px solid var(--theme-primary);
}

.nav-count {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--theme-primary);
    padding: 0.2rem 0.5rem;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-radius: 12px;
}

.nav-badge {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    padding: 0.2rem 0.5rem;
    background: #10b981;
    border-radius: 12px;
}

/* Online Members */
.online-members-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.online-member {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
}

.member-avatar-tiny {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #10b981;
}

.member-name-tiny {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.online-more {
    text-align: center;
    padding: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Community Stats */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.1);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--theme-primary);
}

/* Community Section */
.community-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 2rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    margin-bottom: 2rem;
}

.section-header-community {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title-community {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    font-size: 2rem;
}

.new-topic-btn,
.create-event-btn,
.list-item-btn {
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-topic-btn:hover,
.create-event-btn:hover,
.list-item-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Forum */
.forum-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.forum-category-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.forum-category-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.forum-category-btn.active {
    background: var(--theme-primary);
    color: white;
}

.forum-topics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.forum-topic {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.1);
    transition: all 0.2s ease;
    cursor: pointer;
}

.forum-topic:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    transform: translateX(4px);
}

.topic-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-radius: 8px;
}

.topic-icon.hot {
    background: rgba(239, 68, 68, 0.15);
}

.topic-icon.new {
    background: rgba(59, 130, 246, 0.15);
}

.topic-icon.question {
    background: rgba(249, 115, 22, 0.15);
}

.topic-content {
    flex: 1;
}

.topic-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.topic-meta {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.topic-author {
    font-weight: 600;
}

.topic-separator {
    margin: 0 0.5rem;
}

.topic-replies,
.topic-time {
    color: var(--text-secondary);
}

.topic-stats {
    display: flex;
    gap: 1.5rem;
}

.topic-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--theme-primary);
}

.load-more-forum-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-forum-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

/* Live Chat */
.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #10b981;
    font-weight: 600;
}

.live-chat-container {
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.chat-messages {
    padding: 1.5rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
}

.chat-message {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.chat-content {
    flex: 1;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-username {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.chat-badge {
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary);
}

.chat-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-left: auto;
}

.chat-text {
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0;
}

.chat-input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--surface-color);
    border-top: 2px solid rgba(var(--theme-primary-rgb), 0.2);
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--background-color);
    color: var(--text-primary);
}

.chat-send-btn {
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

/* Events */
.events-filter-tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.event-filter-tab {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-filter-tab:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.event-filter-tab.active {
    background: var(--theme-primary);
    color: white;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.event-card-full {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 12px;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    transition: all 0.3s ease;
}

.event-card-full:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.event-date-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--theme-primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    min-width: 80px;
}

.event-month-large {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-day-large {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.event-content-full {
    flex: 1;
}

.event-title-full {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.event-location-full {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.event-description-full {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.event-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-attendees-full {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.attendee-avatars {
    display: flex;
    margin-left: -8px;
}

.attendee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--surface-color);
    margin-left: -8px;
}

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

.attendee-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary);
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--surface-color);
    margin-left: -8px;
}

.attendee-count {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.event-rsvp-btn {
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-rsvp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Marketplace */
.marketplace-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.marketplace-category-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.marketplace-category-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.marketplace-category-btn.active {
    background: var(--theme-primary);
    color: white;
}

.marketplace-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.marketplace-item {
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.marketplace-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.item-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.marketplace-item:hover .item-image img {
    transform: scale(1.05);
}

.item-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: var(--theme-primary);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.item-badge.featured {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.item-content {
    padding: 1.25rem;
}

.item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--theme-primary);
    margin-bottom: 0.5rem;
}

.item-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.item-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.item-seller {
    font-weight: 600;
}

.load-more-marketplace-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.load-more-marketplace-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

/* Campsite Finder */
.finder-search-container {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.finder-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--background-color);
    color: var(--text-primary);
}

.finder-search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.finder-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.finder-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.finder-filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.finder-filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.finder-filter-btn.active {
    background: var(--theme-primary);
    color: white;
}

.finder-map-placeholder {
    position: relative;
    width: 100%;
    height: 400px;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 2px dashed rgba(var(--theme-primary-rgb), 0.3);
}

.map-overlay-content {
    text-align: center;
    padding: 2rem;
}

.map-overlay-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.map-overlay-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.finder-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.finder-feature {
    padding: 1.25rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.feature-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}

.feature-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.finder-notify-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.finder-notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Quick Links */
.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
}

.quick-link-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    transform: translateX(3px);
}

.link-icon {
    font-size: 1.2rem;
}

.link-text {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Upcoming Events Mini */
.event-mini {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.event-date-mini {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--theme-primary);
    padding: 0.5rem;
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-radius: 6px;
    text-align: center;
    min-width: 50px;
}

.event-info-mini {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-name-mini {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.event-location-mini {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.view-all-mini {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

/* Guidelines */
.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.guidelines-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.guidelines-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--theme-primary);
    font-weight: 700;
}

.read-full-guidelines {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
}

/* Moderators */
.moderator-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.moderator-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
}

.mod-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.mod-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.contact-mods-btn {
    width: 100%;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.contact-mods-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

/* ============================================
   WATCH PAGE
   ============================================ */

/* Watch Page Header */
.watch-page-header {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    margin-bottom: 2rem;
}

.watch-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}

.watch-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.watch-search {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    max-width: 500px;
}

.watch-search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    border-radius: 8px;
    font-size: 0.95rem;
    background: var(--background-color);
    color: var(--text-primary);
}

.watch-search-btn {
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.watch-sort {
    display: flex;
    gap: 0.75rem;
}

.watch-sort-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.watch-sort-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.watch-sort-btn.active {
    background: var(--theme-primary);
    color: white;
}

/* Featured Video */
.featured-video-container {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    margin-bottom: 2rem;
}

.featured-video-player {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
}

.featured-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.featured-video-container:hover .video-play-overlay {
    background: rgba(0,0,0,0.5);
}

.play-button-large {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.9);
    color: var(--theme-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    padding-left: 8px;
}

.featured-video-container:hover .play-button-large {
    transform: scale(1.1);
    background: white;
}

.video-duration-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
}

.featured-video-info {
    padding: 2rem;
}

.video-platform-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(var(--theme-primary-rgb), 0.15);
    color: var(--theme-primary);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.featured-video-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
    line-height: 1.2;
}

.featured-video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.video-creator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creator-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.creator-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.creator-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.creator-followers {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.video-stats-row {
    display: flex;
    gap: 1.5rem;
}

.video-stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.featured-video-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.featured-video-actions {
    display: flex;
    gap: 0.75rem;
}

.video-action-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--theme-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.video-action-btn.primary {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

.video-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-card {
    background: var(--surface-color);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    border-color: rgba(var(--theme-primary-rgb), 0.4);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.video-platform-icon {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 1.2rem;
    background: rgba(0,0,0,0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.video-platform-icon.trending {
    background: rgba(249, 115, 22, 0.9);
}

.video-card-content {
    padding: 1rem;
}

.video-creator-row {
    display: flex;
    gap: 0.75rem;
}

.video-creator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.video-info {
    flex: 1;
}

.video-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-creator-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.video-meta-stats {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.videos-load-more {
    text-align: center;
    padding: 2rem 0;
}

/* Video Categories */
.video-category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.video-category-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.video-category-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.12);
    transform: translateX(3px);
}

.video-category-item.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-left: 3px solid var(--theme-primary);
}

/* Platform Filters */
.platform-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.platform-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.platform-filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.12);
}

.platform-filter-btn.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-color: var(--theme-primary);
}

.platform-icon {
    font-size: 1.2rem;
}

.platform-name {
    font-weight: 600;
}

/* Duration Filters */
.duration-filter-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.duration-filter-btn {
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.duration-filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.12);
}

.duration-filter-btn.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    border-color: var(--theme-primary);
}

/* Featured Creators */
.featured-creator-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-creator-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
}

.featured-creator-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.featured-creator-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.featured-creator-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.featured-creator-platform {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.featured-creator-subs {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.creator-follow-btn {
    padding: 0.4rem 0.8rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.creator-follow-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.view-all-creators-link {
    display: block;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary);
    text-decoration: none;
    padding: 0.75rem;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.view-all-creators-link:hover {
    transform: translateX(3px);
}

/* Trending Videos */
.trending-video-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trending-video-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trending-video-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.trending-video-thumb {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
}

.trending-video-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.trending-video-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.trending-video-views {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Playlists */
.playlist-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.playlist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(var(--theme-primary-rgb), 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-item:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
}

.playlist-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-radius: 8px;
}

.playlist-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.playlist-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.playlist-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Submit Video */
.submit-video-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.submit-video-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-video-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}


/* ============================================================================================================
   6. GLASSMORPHISM SYSTEM - Column-Based Control
   ============================================================================================================ */

/* ============================================
   LEFT COLUMN - Custom Gradient Pattern (MATCHING RIGHT)
   ============================================ */
.subcommunity-sidebar-left {
    --left-darkness-start: rgba(0, 0, 0, .80);
    --left-darkness-30: rgba(0, 0, 0, .59);
    --left-darkness-60: rgba(0, 0, 0, .30);
    --left-darkness-end: rgba(0, 0, 0, 0);      /* Fully transparent */
    --left-gradient-angle: 135deg;
    --left-blur: 1.6px;
    --left-saturation: 150%;
    --left-brightness: 1.0;
    --left-frost: 0.10;
    --left-transparency: 0.01;
}

.subcommunity-sidebar-left > * {
    background: linear-gradient(var(--left-gradient-angle), 
        var(--left-darkness-start) 0%,
        var(--left-darkness-30) 50%,
        var(--left-darkness-60) 70%,
        var(--left-darkness-end) 100%
    ) !important;
    backdrop-filter: blur(var(--left-blur)) saturate(var(--left-saturation)) brightness(var(--left-brightness));
    -webkit-backdrop-filter: blur(var(--left-blur)) saturate(var(--left-saturation)) brightness(var(--left-brightness));
    border: none !important;
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.15),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Frost Overlay - Centered Peak (LEFT COLUMN) */
.subcommunity-sidebar-left > *::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--left-gradient-angle), 
        rgba(255, 255, 255, 0.02) 0%,                              /* Dark top-left */
        rgba(255, 255, 255, 0.08) 25%,                             /* Building up */
        rgba(255, 255, 255, var(--left-frost)) 45%,                /* PEAK FROST - CENTER */
        rgba(255, 255, 255, calc(var(--left-frost) * 0.6)) 65%,   /* Fading */
        rgba(255, 255, 255, var(--left-transparency)) 100%         /* Transparent bottom */
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.subcommunity-sidebar-left > * > * {
    position: relative;
    z-index: 1;
}

/* ============================================
   CENTER COLUMN - Diagonal Gradient
   ============================================ */
.subcommunity-main-feed {
    --center-darkness-start: rgba(0, 0, 0, 0.45);
    --center-darkness-30: rgba(0, 0, 0, 0.30);
    --center-darkness-60: rgba(0, 0, 0, 0.15);
    --center-darkness-end: rgba(0, 0, 0, 0.07);
    --center-gradient-angle: 120deg;
    --center-blur: 10px;
    --center-saturation: 170%;
    --center-brightness: 0.95;
    --center-frost: 0.08;
}

.subcommunity-main-feed .feed-controls,
.subcommunity-main-feed .feed-post,
.subcommunity-main-feed .article-card-featured,
.subcommunity-main-feed .article-card,
.subcommunity-main-feed .video-card,
.subcommunity-main-feed .forum-topic,
.subcommunity-main-feed .event-card-full,
.subcommunity-main-feed .marketplace-item,
.subcommunity-main-feed .news-page-header,
.subcommunity-main-feed .watch-page-header,
.subcommunity-main-feed .community-section,
.subcommunity-main-feed .featured-video-container {
    background: linear-gradient(var(--center-gradient-angle), 
        var(--center-darkness-start) 0%,
        var(--center-darkness-30) 30%,
        var(--center-darkness-60) 60%,
        var(--center-darkness-end) 100%
    ) !important;
    backdrop-filter: blur(var(--center-blur)) saturate(var(--center-saturation)) brightness(var(--center-brightness));
    -webkit-backdrop-filter: blur(var(--center-blur)) saturate(var(--center-saturation)) brightness(var(--center-brightness));
    border: none !important;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.2),
        inset 0 0 80px rgba(0, 0, 0, 0.25);
    position: relative;
}

/* Center Column Frost Overlay */
.subcommunity-main-feed .feed-controls::before,
.subcommunity-main-feed .feed-post::before,
.subcommunity-main-feed .article-card::before,
.subcommunity-main-feed .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--center-gradient-angle), 
        rgba(255, 255, 255, var(--center-frost)) 0%,
        rgba(255, 255, 255, calc(var(--center-frost) * 0.4)) 50%,
        rgba(255, 255, 255, calc(var(--center-frost) * 0.1)) 100%
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

.subcommunity-main-feed .feed-controls > *,
.subcommunity-main-feed .feed-post > *,
.subcommunity-main-feed .article-card > *,
.subcommunity-main-feed .video-card > * {
    position: relative;
    z-index: 1;
}

/* Center Column Hover State */
.subcommunity-main-feed .feed-post:hover,
.subcommunity-main-feed .article-card:hover,
.subcommunity-main-feed .video-card:hover,
.subcommunity-main-feed .forum-topic:hover,
.subcommunity-main-feed .event-card-full:hover {
    background: linear-gradient(var(--center-gradient-angle), 
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.75) 30%,
        rgba(0, 0, 0, 0.55) 60%,
        rgba(0, 0, 0, 0.40) 100%
    ) !important;
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.3),
        inset 0 0 80px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(var(--color-primary-rgb), 0.2);
}

/* ============================================
   RIGHT COLUMN - Custom Gradient Pattern
   ============================================ */
.subcommunity-sidebar-right {
    --right-darkness-start: rgba(0, 0, 0, .80);
    --right-darkness-30: rgba(0, 0, 0, .59);
    --right-darkness-60: rgba(0, 0, 0, .30);    /* ← Lighter at 70% */
    --right-darkness-end: rgba(0, 0, 0, 0);   /* ← ALMOST TRANSPARENT! */
    --right-gradient-angle: 135deg;
    --right-blur: 1.6px;
    --right-saturation: 150%;
    --right-brightness: 1.0;
    --right-frost: 0.10;
    --right-transparency: 0.01;
}

.subcommunity-sidebar-right > * {
    background: linear-gradient(var(--right-gradient-angle), 
        var(--right-darkness-start) 0%,
        var(--right-darkness-30) 50%,
        var(--right-darkness-60) 70%,
        var(--right-darkness-end) 100%      /* ← Now fades to almost transparent */
    ) !important;
    backdrop-filter: blur(var(--right-blur)) saturate(var(--right-saturation)) brightness(var(--right-brightness));
    -webkit-backdrop-filter: blur(var(--right-blur)) saturate(var(--right-saturation)) brightness(var(--right-brightness));
    border: none !important;
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(var(--color-primary-rgb), 0.15),
        inset 0 0 60px rgba(0, 0, 0, 0.2);
    position: relative;
}

/* Frost Overlay - Centered Peak */
.subcommunity-sidebar-right > *::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(var(--right-gradient-angle), 
        rgba(255, 255, 255, 0.02) 0%,                              /* Dark top-left */
        rgba(255, 255, 255, 0.08) 25%,                             /* Building up */
        rgba(255, 255, 255, var(--right-frost)) 45%,               /* PEAK FROST - CENTER */
        rgba(255, 255, 255, calc(var(--right-frost) * 0.6)) 65%,  /* Fading */
        rgba(255, 255, 255, var(--right-transparency)) 150%        /* Transparent bottom */
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}


/* ============================================================================================================
   7. RESPONSIVE DESIGN
   ============================================================================================================ */

@media (max-width: 1400px) {
    .subcommunity-three-column {
        grid-template-columns: 280px 1fr 280px;
        gap: 1.5rem;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .subcommunity-three-column {
        grid-template-columns: 1fr;
    }
    
    .subcommunity-sidebar-left,
    .subcommunity-sidebar-right {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .marketplace-items-grid {
        grid-template-columns: 1fr;
    }
    
    .finder-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-back-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .whats-new-pills {
        flex-direction: column;
        width: 100%;
    }
    
    .new-pill {
        text-align: center;
    }
    
    .subcommunity-hero-compact {
        height: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .panel-navigation-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .watch-controls {
        flex-direction: column;
    }
    
    .watch-search {
        max-width: 100%;
    }
    
    .feed-filters,
    .feed-type-filters,
    .news-sort-filters,
    .forum-categories,
    .marketplace-categories {
        justify-content: center;
    }
}


/* ============================================================================================================
   SPACING FIX - Independent Feed Controls
   ============================================================================================================ */

/* Feed controls are independent and don't affect feed stream */
.subcommunity-main-feed .feed-controls {
    margin-bottom: 1.5rem !important;
    isolation: isolate;
}

/* Feed stream starts cleanly below controls */
.feed-stream {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 0 !important;
    position: relative;
    z-index: 1;
}

/* First post should not have extra margin */
.feed-stream .feed-post:first-child {
    margin-top: 0 !important;
}

/* Reset any conflicting margins */
.subcommunity-main-feed > * {
    margin-top: 0;
}
/* ============================================
   FEED CONTROLS - Sticky & Collapsible
   ============================================ */
.feed-controls {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    position: sticky;
    top: 210px;  /* Same height as sidebars */
    z-index: 100;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem !important;
    isolation: isolate;
}

/* Compact state when scrolling */
.feed-controls.compact {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

/* Title & subtitle visible only when expanded */
.feed-controls .feed-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
    transition: all 0.3s ease;
}

.feed-controls .feed-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* Hide title, subtitle, and type filters in compact mode */
.feed-controls.compact .feed-title,
.feed-controls.compact .feed-subtitle,
.feed-controls.compact .feed-type-filters {
    display: none;
    opacity: 0;
}

/* Main filters always visible */
.feed-controls .feed-filters {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    transition: margin 0.3s ease;
}

/* Compact mode: remove bottom margin from filters */
.feed-controls.compact .feed-filters {
    margin-bottom: 0;
}

/* Type filters (bottom row) */
.feed-controls .feed-type-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

/* Filter button styles */
.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.15);
}

.filter-btn.active {
    background: var(--theme-primary);
    color: white;
    border-color: var(--theme-primary);
}

.type-filter-btn {
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.type-filter-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.08);
    color: var(--text-primary);
}

.type-filter-btn.active {
    background: rgba(var(--theme-primary-rgb), 0.15);
    color: var(--theme-primary);
    border-color: var(--theme-primary);
}
/* ============================================
   WELCOME BAR & PANEL TABS - SMOOTH MERGED STATE
   ============================================ */

/* Hero section smooth fade out */
.subcommunity-hero-compact {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.subcommunity-hero-compact.hidden {
    max-height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Welcome bar smooth transitions */
.welcome-back-bar {
    position: sticky;
    top: 80px;
    z-index: 900;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --merge-progress: 0;
}

.welcome-back-bar.merged {
    opacity: 0;
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
}

/* Panel tabs smooth merged state */
.panel-navigation-tabs {
    position: sticky;
    top: 140px;
    z-index: 850;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --merge-progress: 0;
}

.panel-navigation-tabs.merged {
    top: 80px;
    left: 0;
    right: 0;
    background: var(--background-color);
    backdrop-filter: blur(10px);
    z-index: 900;
    border-bottom: 2px solid rgba(var(--theme-primary-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.6rem 1.5rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

/* Welcome text smooth fade in */
.panel-navigation-tabs::before {
    content: 'Welcome back';
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--theme-primary);
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.panel-navigation-tabs.merged::before {
    opacity: 1;
    transform: translateX(0);
}

/* Panel tabs smooth transitions */
.panel-navigation-tabs .panel-tab {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-navigation-tabs.merged .panel-tab {
    padding: 0.5rem 0.9rem;
    margin-bottom: 0;
    border-bottom: 2px solid transparent;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.panel-navigation-tabs .panel-tab .tab-icon {
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                margin 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.panel-navigation-tabs.merged .panel-tab .tab-icon {
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
}

.panel-navigation-tabs.merged .tab-label {
    font-size: 0.85rem;
}

/* Stats smooth fade in */
.panel-navigation-tabs::after {
    content: '28 new  |  5 guides  |  12 reviews';
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    padding: 0.4rem 0.9rem;
    background: rgba(var(--theme-primary-rgb), 0.08);
    border-radius: 16px;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
}

.panel-navigation-tabs.merged::after {
    opacity: 1;
    transform: translateX(0);
}

/* Ensure no wrapping in non-merged state */
.panel-navigation-tabs:not(.merged) {
    flex-wrap: wrap;
}

.panel-navigation-tabs:not(.merged)::before,
.panel-navigation-tabs:not(.merged)::after {
    display: none;
}

/* Smooth feed controls adjustment */
body:has(.panel-navigation-tabs.merged) .feed-controls {
    transition: top 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    top: 140px !important;
}

/* Force single line layout */
.panel-navigation-tabs.merged > * {
    flex-shrink: 0;
}
/* ============================================================================================================
 
   ============================================================================================================ */

/* ==================== CENTER TEXT UNDER MAIN MENU IMAGES ==================== */
.nav-label {
    font-size: 0.65rem !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
}

.nav-thumbnail {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ==================== MAIN MENU ALWAYS ON TOP (MAX Z-INDEX) ==================== */

/* Main navigation STAYS FIXED at top on subcommunity pages */
body[data-panel="news"] .floating-nav,
body[data-panel="community"] .floating-nav,
body[data-panel="watch"] .floating-nav,
body[data-panel="drift"] .floating-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important;
    width: 100% !important;
}

body[data-panel="news"] .nav-container,
body[data-panel="community"] .nav-container,
body[data-panel="watch"] .nav-container,
body[data-panel="drift"] .nav-container {
    z-index: 9999 !important;
}

/* Panel navigation tabs stay below main nav */
body[data-panel="news"] .panel-navigation-tabs,
body[data-panel="community"] .panel-navigation-tabs,
body[data-panel="watch"] .panel-navigation-tabs {
    z-index: 900 !important;
}

body[data-panel="news"] .panel-navigation-tabs.merged,
body[data-panel="community"] .panel-navigation-tabs.merged,
body[data-panel="watch"] .panel-navigation-tabs.merged {
    z-index: 900 !important;
}

/* Welcome back bar stays below panel tabs */
body[data-panel="news"] .welcome-back-bar,
body[data-panel="community"] .welcome-back-bar,
body[data-panel="watch"] .welcome-back-bar,
body[data-panel="drift"] .welcome-back-bar {
    z-index: 850 !important;
}

/* Sidebars stay at lower z-index */
body[data-panel="news"] .subcommunity-sidebar-left,
body[data-panel="community"] .subcommunity-sidebar-left,
body[data-panel="watch"] .subcommunity-sidebar-left,
body[data-panel="news"] .subcommunity-sidebar-right,
body[data-panel="community"] .subcommunity-sidebar-right,
body[data-panel="watch"] .subcommunity-sidebar-right {
    z-index: 20 !important;
}

/* Feed controls stay below everything */
body[data-panel="news"] .feed-controls,
body[data-panel="community"] .feed-controls,
body[data-panel="watch"] .feed-controls {
    z-index: 500 !important;
}
/* ============================================
   SCROLL BREAK POST - Dancing Sasquatch
   ============================================ */
.scroll-break-post {
    background: linear-gradient(135deg, 
        rgba(var(--theme-primary-rgb), 0.15) 0%,
        rgba(var(--theme-primary-rgb), 0.25) 50%,
        rgba(var(--theme-primary-rgb), 0.15) 100%) !important;
    border: 3px solid rgba(var(--theme-primary-rgb), 0.5) !important;
    box-shadow: 
        0 0 40px rgba(var(--theme-primary-rgb), 0.4),
        0 8px 24px rgba(0, 0, 0, 0.3) !important;
    animation: scrollBreakPulse 3s ease-in-out infinite;
}

@keyframes scrollBreakPulse {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(var(--theme-primary-rgb), 0.4),
            0 8px 24px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(var(--theme-primary-rgb), 0.6),
            0 12px 32px rgba(0, 0, 0, 0.4);
    }
}

.scroll-break-container {
    text-align: center;
    padding: 1rem;
}

.scroll-break-header {
    margin-bottom: 1.5rem;
}

.scroll-break-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--theme-primary);
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.scroll-break-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.scroll-break-video {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.sasquatch-video {
    width: 100%;
    height: auto;
    display: block;
}

.scroll-break-footer {
    padding-top: 1rem;
    border-top: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.scroll-break-message {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--theme-primary);
    margin: 0;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
/* ============================================================================================================
   VANNEWS.HTML - ARTICLE CARDS (ORIGINAL WORKING STYLE)
   This recreates the compact, square card format from your working version
   ============================================================================================================ */

/* Articles Grid - Compact Layout */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Article Card - Compact Square Format */
.article-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Article Image - Controlled Height */
.article-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* Star Rating Badge - Top Right */
.article-review-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: #fbbf24;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

/* Article Content Area */
.article-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Meta Row - Category + Read Time */
.article-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.article-category {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.article-read-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Article Title - 2 Lines Max */
.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Description - 2 Lines Max */
.article-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* Footer - Author + Read Button */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.article-author {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.article-read-btn-small {
    padding: 0.4rem 1rem;
    background: rgba(var(--theme-primary-rgb), 0.2);
    color: var(--theme-primary);
    border: 1px solid rgba(var(--theme-primary-rgb), 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-read-btn-small:hover {
    background: var(--theme-primary);
    color: white;
    transform: translateX(2px);
}

/* ============================================================================================================
   FEATURED ARTICLE - Stays Larger
   ============================================================================================================ */

.article-card-featured {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    grid-column: 1 / -1; /* Spans full width if in grid */
}

.article-card-featured:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.article-image-large {
    position: relative;
    width: 100%;
    height: 350px;
    overflow: hidden;
}

.article-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-peer-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.article-content-large {
    padding: 2rem;
}

.article-title-large {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-excerpt-large {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.article-author-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(var(--theme-primary-rgb), 0.3);
}

.article-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.article-publish-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.article-read-btn {
    padding: 0.75rem 1.5rem;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.article-read-btn:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), 0.4);
}

/* ============================================================================================================
   PAGE HEADER
   ============================================================================================================ */

.news-page-header {
    margin-bottom: 2rem;
}

.news-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.news-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.news-sort-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sort-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.sort-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
}

.sort-btn.active {
    background: rgba(var(--theme-primary-rgb), 0.2);
    border-color: var(--theme-primary);
    color: var(--theme-primary);
}

/* Load More Button */
.articles-load-more {
    text-align: center;
    padding: 2rem 0;
}

.load-more-btn {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.load-more-btn:hover {
    background: rgba(var(--theme-primary-rgb), 0.1);
    border-color: rgba(var(--theme-primary-rgb), 0.3);
    transform: translateY(-2px);
}

/* ============================================================================================================
   RESPONSIVE - Single Column on Small Screens
   ============================================================================================================ */

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}