/*
Theme Name: New Forum Theme
Description: Custom WordPress theme for bodybuilding/fitness forum with bbPress integration
Version: 1.0
Author: Custom Development
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    background-color: #000;
    color: #cbd5e1;
    line-height: 1.65;
}

/* Design Tokens */
:root {
    --edge: 16px;
    --container: 1400px;
    --section-gap: 24px;
    --card-padding-x: 16px;
    --row-padding-y: 14px;
    --radius: 12px;
    --archive-width: 820px;
    --headline-size: 68px;
    --hero-sub-size: 18px;
    --section-title-size: 18px;
    --small-text: 13px;
    --col-topics: 120px;
    --col-posts: 120px;
    --col-freshness: 240px;
    --hero-left: 72px;
}

/* Mobile-first variable tuning for better scaling */
@media (max-width: 768px) {
    :root {
        --headline-size: 38px;
        --hero-sub-size: 16px;
        --section-title-size: 16px;
        --hero-left: 20px;
    }
}
@media (max-width: 480px) {
    :root {
        --headline-size: 32px;
        --hero-sub-size: 15px;
        --section-title-size: 15px;
        --hero-left: 16px;
    }
}

/* Mobile drawer will be defined in main responsive section below */

/* Global typography polish */
h1, h2, h3, h4, h5, h6 { font-weight: 600; letter-spacing: .2px; }
.site-title, .main-navigation a, .post-author, .btn, button, input[type="submit"] { font-weight: 500; }
.post-card p, .post-card li, .bbp-body, .bbp-forum-content, .bbp-topic-content, .bbp-reply-content { font-weight: 400; }
/* Forum specific headings */
.topic-view-title { font-weight: 700; }

/* Container and Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-fluid { max-width: none; width: 100%; padding-left: var(--edge); padding-right: var(--edge); }

/* Header Styles */
.site-header {
    background: #000;
    color: white;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1000;
    border-bottom: 1px solid #1a1a1a;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.85rem 1.5rem;
    gap: 2rem;
    flex-wrap: nowrap !important;
}
.site-branding { 
    margin-right: auto; 
    flex-shrink: 0 !important;
    order: 1;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    z-index: 1002;
}

.site-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1;
}

.site-title a { 
    color: #90cdf4; 
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.site-title a:hover { 
    color: #bee3f8; 
}

/* WordPress Custom Logo Support */
.custom-logo-link {
    display: inline-block;
    line-height: 0;
}

.custom-logo {
    height: auto;
    max-height: 70px;
    width: auto;
    max-width: 350px;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.custom-logo:hover {
    opacity: 0.8;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none !important;
    flex-direction: column !important;
    justify-content: space-around !important;
    width: 36px !important;
    height: 30px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    z-index: 1700 !important;
    position: relative !important;
    align-self: center !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    order: 4 !important;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #90cdf4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
    background-color: #ff4444;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    background-color: #ff4444;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Navigation Styles */
.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    flex-shrink: 1 !important;
    order: 2;
    min-width: 0 !important;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation li {
    margin: 0;
}

.main-navigation a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.main-navigation a:hover {
    color: #fff;
    background: rgba(144, 205, 244, 0.1);
}

/* Auth Buttons */
.auth-buttons { 
    display: flex; 
    gap: 0.75rem; 
    align-items: center;
    flex-shrink: 0 !important;
    order: 3;
    white-space: nowrap !important;
}

.btn-auth {
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
}

.btn-login {
    background: transparent;
    color: #90cdf4;
    border: 1px solid #90cdf4;
}

.btn-login:hover {
    background: rgba(144, 205, 244, 0.1);
    color: #bee3f8;
    border-color: #bee3f8;
}

.btn-signup {
    background: #ef4444;
    color: white;
    border: 1px solid #ef4444;
}

.btn-signup:hover {
    background: #dc2626;
    border-color: #dc2626;
}

/* User Menu (Logged In) */
.user-menu-wrapper {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    border-color: #90cdf4;
    background: rgba(144, 205, 244, 0.05);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    z-index: 1500;
}

.user-menu-wrapper.active .user-dropdown {
    display: block;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.user-dropdown a:hover {
    background: rgba(144, 205, 244, 0.1);
    color: #90cdf4;
}

.user-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.user-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .main-navigation ul {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle { 
        display: flex !important; 
        position: relative !important;
        z-index: 1700 !important;
        order: 4 !important; 
        margin: 0 !important;
        align-self: center !important;
        top: auto !important;
        right: auto !important;
    }
    
    .site-branding {
        order: 1;
        align-self: center;
    }
    
    .auth-buttons { display: none !important; }
    
    .header-content { 
        padding: 0.75rem 1rem; 
        flex-wrap: nowrap !important; 
        align-items: center !important; 
        gap: 1rem; 
    }
    
    .main-navigation {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        background: #0d0d0d !important;
        color: #ffffff !important;
        transition: left 0.3s ease !important;
        z-index: 1600 !important;
        padding-top: 80px !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        display: block !important;
    }
    
    .main-navigation.mobile-active {
        left: 0 !important;
    }
    
    .main-navigation ul {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: stretch !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .main-navigation li {
        width: 100%;
        margin: 0;
    }
    
    .main-navigation a {
        padding: 1.4rem 2rem !important;
        border-radius: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.15) !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        font-size: 17px !important;
        display: block !important;
        width: 100%;
        transition: all 0.3s ease !important;
    }
    
    .main-navigation a:hover {
        background: rgba(59, 130, 246, 0.3) !important;
        color: #90cdf4 !important;
        padding-left: 2.5rem !important;
    }
    
    .custom-logo {
        max-height: 65px;
        max-width: 220px;
    }
    
    .btn-auth {
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-menu-toggle {
        padding: 0.4rem;
    }
}

/* Mobile-only utility */
.mobile-only { display: none; }
@media (max-width: 768px) { .mobile-only { display: block; } }

@media (max-width: 480px) {
    .header-content {
        padding: 0.4rem 0.65rem;
    }
    
    .custom-logo {
        max-height: 45px;
        max-width: 150px;
    }
    
    .btn-auth {
        padding: 0.3rem 0.6rem;
        font-size: 0.78rem;
    }
    
    .site-title {
        font-size: 0.95rem;
    }
}

/* Mobile Menu Overlay - DISABLED since drawer is full width */
.mobile-menu-overlay {
    display: none !important;
}

.mobile-menu-overlay.active {
    display: none !important;
}

/* Main Content Area */
.site-main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
    background: transparent;
}

/* bbPress pages: pure black background everywhere */
body.bbpress,
body.bbpress .site-main,
body.bbpress #page {
    /* deep black base with subtle marble texture */
    background-color: #000 !important;
    background-image:
        radial-gradient(1200px 600px at 80% -10%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0) 60%),
        url('assets/marble-dark.svg');
    background-size: cover, 800px 800px;
    background-repeat: no-repeat, repeat;
    background-attachment: fixed, fixed;
    color: #fff;
}
/* Remove light background on these pages */
body.bbpress .site-main,
body.page-template-page-reply .site-main { background: transparent !important; }
/* Force solid black header/footer on forum pages */
body.bbpress .site-header,
body.bbpress .site-footer { background: #000 !important; color: #fff; }
body.bbpress .container-fluid,
body.bbpress .row { background: transparent !important; color: #fff; }
/* Hide any generic page headers/breadcrumbs on bbPress pages */
body.bbpress .entry-header,
body.bbpress .archive-header,
body.bbpress .page-header,
body.bbpress .bbp-breadcrumb-wrapper,
body.bbpress .breadcrumbs,
body.bbpress .breadcrumb,
body.bbpress .yoast-breadcrumb,
body.bbpress .rank-math-breadcrumb { display: none !important; }
/* Neutralize any leftover white card styles from blog templates */
body.bbpress .single-post { background: transparent !important; box-shadow: none !important; border: 0 !important; }

/* Bootstrap Layout Adjustments */
body.bbpress .container-fluid { padding: 0 !important; }
body.bbpress .row { margin: 0 !important; }
body.bbpress .col-lg-8, body.bbpress .col-md-7, body.bbpress .col-lg-9, body.bbpress .col-md-8 { padding: 30px 15px 30px 30px; background: transparent !important; }
body.bbpress .col-lg-4, body.bbpress .col-md-5, body.bbpress .col-lg-3, body.bbpress .col-md-4 { padding: 30px 30px 30px 15px; background: transparent !important; }

/* Forums Main Section */
.forums-main { padding: 0 14px; }

.forums-main .section-header { 
    color: #888; 
    text-align: left; 
    padding: 0 0 1rem 0; 
    margin: 0; 
}

.forums-main .section-title.large { 
    color: #fff; 
    font-size: 24px; 
    font-weight: bold; 
    text-transform: none; 
    letter-spacing: normal; 
    margin: 0 0 20px 0;
}

/* Sidebar Styling */
.forums-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-right: 0;
    background: transparent !important;
    border-left: 1px solid rgba(51,51,51,0.6);
}

.sidebar-widget {
    background: rgba(10,10,10,0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 12px 30px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
}

.widget-title {
    background: rgba(0,0,0,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Recent Topics in Sidebar */
.recent-topics-list {
    padding: 0;
}

.recent-topic-item {
    padding: 12px 16px;
    border-bottom: 1px solid #333;
}

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

.topic-link {
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    display: block;
    margin-bottom: 4px;
}

.topic-link:hover {
    color: #fbbf24;
}

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

.forum-name {
    color: #666;
}

/* Ad Spot */
.ad-spot {
    padding: 0;
}

.ad-label {
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(51,51,51,0.5);
}

.ad-placeholder {
    padding: 60px 20px;
    text-align: center;
    color: #666;
    background: rgba(0,0,0,0.35);
    border: 2px dashed rgba(255,255,255,0.08);
    margin: 16px;
    border-radius: 4px;
}

.ad-placeholder p {
    margin: 0;
    font-size: 14px;
}

/* Community Stats */
.community-stats { max-width: var(--container); margin: 32px auto; padding: 24px var(--edge) 20px; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); }
.community-stats-header { margin-bottom: 20px; text-align: center; }
.community-stats-header h2 { color: #fff; font-size: 20px; margin: 0 0 8px; font-weight: 600; }
.community-stats-header p { color: #94a3b8; margin: 0; font-size: 14px; line-height: 1.5; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.stat-card { background: #0b0f14; border: 1px solid #1f2933; border-radius: 10px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: center; min-height: 100px; }
.stat-card .stat-label { display: block; color: #94a3b8; font-size: 11px; letter-spacing: .5px; margin-bottom: 8px; text-transform: uppercase; font-weight: 500; }
.stat-card .stat-value { display: block; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.2; margin-bottom: 6px; }
.stat-card .stat-meta { display: block; color: #6b7280; font-size: 11px; margin-top: auto; line-height: 1.4; }
.stat-card.highlight { background: linear-gradient(180deg, #0b0f14 0%, #0e131a 100%); box-shadow: inset 0 0 0 1px rgba(59,130,246,.15); }

/* Community Highlights */
.community-highlights { max-width: var(--container); margin: 20px auto 32px; padding: 20px var(--edge); background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); }
.highlights-header h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.highlights-header p { color: #94a3b8; margin: 0 0 14px; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.highlight-card { background: #0b0f14; border: 1px solid #1f2933; border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.highlight-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; color: #fff; background: #111827; border: 1px solid #1f2933; }
.highlight-card h4 { color: #fff; margin: 0; font-size: 16px; }
.highlight-card p { color: #94a3b8; margin: 0; font-size: 14px; }
.highlight-link { color: #60a5fa; text-decoration: none; font-weight: 600; font-size: 13px; }
.highlight-link:hover { color: #90cdf4; }

@media (max-width: 992px) {
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .highlights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .community-stats, .community-highlights { margin-left: 12px; margin-right: 12px; }
    .community-stats-header h2 { font-size: 18px; }
    .community-stats-header p { font-size: 13px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card { padding: 16px 14px; min-height: 90px; }
}

/* Homepage Recent Topics Section */
.recent-topics {
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    margin: 3rem auto;
    max-width: 1200px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.recent-topics .section-header {
    padding: 2rem 2.5rem 1rem 2.5rem;
    border-bottom: 1px solid #1a1a1a;
}

.recent-topics .section-title {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.topics-list {
    padding: 0;
}

.topic-item {
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
}

.topic-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

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

.topic-info {
    flex: 1;
}

.topic-title-home {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.topic-title-home a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.topic-title-home a:hover {
    color: #90cdf4;
}

.topic-meta-home {
    font-size: 0.875rem;
    color: #64748b;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.topic-author strong {
    color: #cbd5e1;
}

.topic-forum a {
    color: #3b82f6;
    text-decoration: none;
}

.topic-forum a:hover {
    color: #90cdf4;
}

.topic-stats-home {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    min-width: 120px;
}

.topic-replies {
    font-size: 0.875rem;
    color: #cbd5e1;
    font-weight: 600;
}

.topic-time {
    font-size: 0.75rem;
    color: #64748b;
}

/* Mobile Responsive for Recent Topics */
@media (max-width: 768px) {
    .recent-topics {
        margin: 2rem 1rem;
        border-radius: 12px;
    }
    
    .recent-topics .section-header {
        padding: 1.5rem 1.25rem 1rem 1.25rem;
    }
    
    .recent-topics .section-title {
        font-size: 1.5rem;
    }
    
    .topic-item {
        padding: 1.25rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .topic-stats-home {
        align-items: flex-start;
        flex-direction: row;
        gap: 1rem;
        min-width: auto;
    }
    
    .topic-meta-home {
        gap: 0.75rem;
    }
}

.ad-placeholder small {
    font-size: 11px;
    color: #555;
}

/* Forum Stats */
.forum-stats {
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.stat-label {
    display: block;
    color: #888;
    font-size: 11px;
    text-transform: lowercase;
    margin-top: 4px;
}

/* Online Users */
.online-users {
    padding: 16px;
}

.online-count {
    color: #fff;
    font-size: 13px;
    margin: 0 0 12px 0;
}

.online-list {
    font-size: 12px;
    line-height: 1.5;
}

.online-user {
    color: #fbbf24;
}

.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-radius: 12px;
    background: rgba(12, 17, 25, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.38);
    min-height: 70px;
    max-height: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.topic-list .forum-ad-slot {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: rgba(12, 12, 12, 0.65);
    margin: 0;
}

.topic-item.forum-ad-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-row.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 12, 0.65);
    position: relative;
    overflow: hidden;
}

.forum-ad-slot-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    display: block;
}

.forum-ad-content {
    position: relative;
    z-index: 0;
    pointer-events: none;
    width: 100%;
}

.forum-ad-label {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.6);
    pointer-events: none;
    z-index: 2;
}

.post-card { background: rgba(18,18,18,0.75); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); padding: 18px; margin: 12px 0; backdrop-filter: blur(6px); width: 100%; display: block; }
.post-card.original { border-left: 3px solid #60a5fa; }
.post-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.post-avatar { width: 48px; height: 48px; border-radius: 999px; overflow: hidden; background: #0f1215; border: 1px solid rgba(255,255,255,0.08); }
.post-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 999px; }
.post-author { color: #e5e9f0; font-weight: 600; }
.post-role { color: #8b8b8b; font-size: 12px; }
.post-time { color: #8b8b8b; font-size: 12px; }

.post-body {
    color: #cbd5e1;
    line-height: 1.7;
    writing-mode: horizontal-tb !important;
    clear: both;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
}
.post-body p {
    display: block;
    margin: 0 0 10px;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: break-word;
}
.post-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
}
.post-body, .post-card .post-body * {
    max-width: 100%;
}
.post-card .post-body .alignleft,
.post-card .post-body .alignright,
.post-card .post-body .avatar,
.post-card .post-body .bbp-author,
.post-card .post-body .bbp-meta {
    float: none !important;
}

/* Quote/blockquote variants that plugins might output */
.post-card .post-body blockquote,
.post-card .post-body .bbp-quote,
.post-card .post-body .bbcode-quote,
.post-card .post-body .bbcode-block,
.post-card .post-body .quote { margin: 8px 0; padding: 10px 12px; border-left: 3px solid rgba(148,163,184,0.35); background: rgba(255,255,255,0.03); border-radius: 6px; color: #aebacf; }
.post-card .post-body blockquote .avatar,
.post-card .post-body .bbp-quote .avatar { display: none; }
.post-card .bbp-reply-content, .post-card .bbp-topic-content { float: none !important; width: 100% !important; }
.post-card .bbp-reply-author, .post-card .bbp-topic-author { display: none !important; }
.post-card .bbp-reply-content p, .post-card .bbp-topic-content p { white-space: normal; word-break: normal; overflow-wrap: anywhere; }

/* Force horizontal text flow inside bbPress post bodies */
.post-card .bbp-reply-content, .post-card .bbp-topic-content, .post-card .post-body {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
}
.post-card .bbp-reply-content *, .post-card .bbp-topic-content * {
    writing-mode: horizontal-tb !important;
    white-space: normal !important;
}
.post-actions { display: flex; gap: 14px; justify-content: flex-end; color: #94a3b8; font-size: 12px; margin-top: 12px; }
.post-actions a { color: #94a3b8; text-decoration: none; }
.post-actions a:hover { color: #cbd5e1; }

/* bbPress Search Results */
.search-main { padding: 32px var(--edge) 60px; background: #000; }
.bbpress-search-wrapper { background: #000; padding: 0; }
.bbpress-search-wrapper .search-main { margin: 0 auto; max-width: 1200px; }
.bbpress-search-wrapper, .bbpress-search-wrapper .site-main, .bbpress-search-wrapper #page { background: #000 !important; }
.bbpress-search-wrapper .entry-header, .bbpress-search-wrapper .archive-header, .bbpress-search-wrapper .page-header, .bbpress-search-wrapper .hero-section { display: none !important; }
.bbpress-search-wrapper .bbp-breadcrumb-wrapper, .bbpress-search-wrapper .breadcrumbs, .bbpress-search-wrapper .breadcrumb, .bbpress-search-wrapper .yoast-breadcrumb, .bbpress-search-wrapper .rank-math-breadcrumb { display: none !important; }
.search-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 22px; background: #05070c; border: 1px solid rgba(61,72,92,0.45); border-radius: 14px; box-shadow: 0 18px 38px rgba(0,0,0,0.55); }
.search-title { color: #f8fafc; font-size: 28px; font-weight: 700; margin: 0; }
.search-title .search-term { color: #67e8f9; }
.search-toolbar-form { flex: 1 1 320px; }
.search-toolbar-form #bbp-search-form { display: flex; gap: 10px; align-items: center; background: #05070c; border: 1px solid rgba(94,108,132,0.4); border-radius: 10px; padding: 8px 10px; }
.search-toolbar-form #bbp_search { flex: 1; background: transparent; border: 0; color: #e2e8f0; font-size: 15px; padding: 4px 6px; outline: none; }
.search-toolbar-form #bbp_search::placeholder { color: #64748b; }
.search-toolbar-form #bbp_search_submit { background: linear-gradient(135deg, #1dd1a1, #16a34a); border: 0; border-radius: 9px; padding: 9px 16px; font-weight: 600; color: #fff; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.search-toolbar-form #bbp_search_submit:hover { transform: translateY(-1px); box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35); }

.search-results-panel { margin-top: 28px; background: #05070c; border: 1px solid rgba(40,48,64,0.55); border-radius: 16px; padding: 26px 28px 32px; box-shadow: 0 24px 54px rgba(0,0,0,0.55); }
.search-results-panel.empty { display: flex; align-items: center; justify-content: center; min-height: 220px; text-align: center; }
.search-results-panel .bbp-template-notice { background: rgba(15,18,24,0.75); border-color: rgba(94,108,132,0.4); color: #9aa7bd; border-radius: 12px; }
.search-results-grid { display: flex; flex-direction: column; gap: 18px; }

.search-card { background: rgba(15,17,25,0.95); border: 1px solid rgba(90,105,130,0.35); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 18px 40px rgba(0,0,0,0.52); position: relative; overflow: hidden; }
.search-card::after { content: ''; position: absolute; inset: 0; border-radius: 14px; border: 1px solid rgba(255,255,255,0.02); pointer-events: none; }
.search-card-meta { display: flex; gap: 14px; align-items: center; justify-content: space-between; font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.18em; }
.search-pill { display: inline-flex; align-items: center; justify-content: center; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; }
.search-pill.topic { background: rgba(59,130,246,0.18); color: #93c5fd; border: 1px solid rgba(59,130,246,0.36); }
.search-pill.reply { background: rgba(16,185,129,0.18); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.36); }
.search-pill.forum { background: rgba(244,114,182,0.18); color: #f9a8d4; border: 1px solid rgba(244,114,182,0.32); }
.search-time { color: #9aa7bd; font-size: 12px; text-transform: none; letter-spacing: normal; }

.search-card-title { margin: 0; font-size: 22px; line-height: 1.3; font-weight: 700; color: #f1f5f9; }
.search-card-title a { color: inherit; text-decoration: none; }
.search-card-title a:hover { color: #7dd3fc; }

.search-card-context { color: #9aa7bd; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.search-card-context a { color: #cbd5e1; text-decoration: none; font-weight: 500; }
.search-card-context a:hover { color: #7dd3fc; }
.search-card-context .sep { color: #4b5563; margin: 0 4px; }

.search-card-body { display: flex; gap: 16px; align-items: flex-start; }
.search-avatar { width: 52px; height: 52px; border-radius: 999px; overflow: hidden; flex-shrink: 0; border: 1px solid rgba(148,163,184,0.35); background: #0d1016; box-shadow: 0 6px 16px rgba(0,0,0,0.45); }
.search-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-snippet { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.search-author { font-weight: 600; color: #f8fafc; font-size: 14px; }
.search-snippet p { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.6; }

.search-card-footer { display: flex; align-items: center; gap: 12px; border-top: 1px solid rgba(255,255,255,0.04); padding-top: 12px; font-size: 12px; color: #94a3b8; }
.search-card-footer .search-meta { color: #9aa7bd; }
.search-card-footer .search-link { margin-left: auto; color: #7dd3fc; text-decoration: none; font-weight: 600; }
.search-card-footer .search-link:hover { color: #45b9f8; }

.search-pagination { margin-top: 28px; display: flex; justify-content: center; }

@media (max-width: 991px) {
    .search-toolbar-form { flex-basis: 100%; }
    .search-toolbar-form #bbp-search-form { width: 100%; }
}

@media (max-width: 640px) {
    .search-main { padding: 24px 14px 40px; }
    .search-title { font-size: 26px; }
    .search-card { padding: 18px 18px 20px; }
    .search-card-body { flex-direction: column; }
    .search-card-footer { flex-direction: column; align-items: flex-start; }
    .search-card-footer .search-link { margin-left: 0; }
    .search-avatar { width: 46px; height: 46px; }
}

/* Threaded replies visual indentation */
.topic-single .post-card.child { margin-left: 24px; }
.topic-single .post-card.depth-2 { margin-left: 48px; }
/* Threaded replies indentation */
.bbp-replies,
.bbp-threaded-replies,
.bbp-replies-list,
.bbp-replies ul,
.bbp-threaded-replies ul,
.bbp-replies-list ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}
.bbp-replies li,
.bbp-threaded-replies li,
.bbp-replies-list li {
    list-style: none;
}
/* Reply list layout */
.bbp-replies-list > li { margin: 14px 0; background: rgba(18,18,18,0.75); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); padding: 18px 18px 12px; backdrop-filter: blur(6px); position: relative; }
.bbp-replies-list > li > .reply-wrapper { margin: 0; padding: 0; }
/* If no child list follows, tighten bottom padding */
.bbp-replies-list > li:not(:has(> ul)) { padding-bottom: 16px; }
/* Inline author + replying target */
.reply-wrapper .post-author-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 14px; font-weight: 600; }
.reply-wrapper .post-author-line .replying-inline { font-weight: 500; color: #95a7ba; font-size: 12px; }
.reply-wrapper .post-author-line .replying-inline a { color: #aebed0; text-decoration: none; }
.reply-wrapper .post-author-line .replying-inline a:hover { color: #d7e2ec; }
.reply-wrapper .replying-to { display: none !important; }
/* Children inside parent card */
.bbp-replies-list > li > ul { margin: 12px 0 4px; padding-left: 16px; position: relative; border-left: 1px solid rgba(255,255,255,0.08); }
/* Ensure nested list is visually inside the parent card (no overflow gap) */
.bbp-replies-list > li > ul { margin-right: -4px; }
.bbp-replies-list > li > ul > li { margin: 10px 0 0; padding-left: 6px; }
/* Child wrapper inherits inline layout */
.bbp-replies-list > li > ul > li > .reply-wrapper { padding: 0; }
.bbp-replies-list > li > ul > li .post-head { grid-template-columns: 34px 1fr auto; margin-bottom: 4px; }
.bbp-replies-list > li > ul > li .post-avatar { width: 34px; height: 34px; }
.bbp-replies-list > li > ul > li .post-author-line { font-size: 13px; }
.bbp-replies-list > li > ul > li .post-author-line .replying-inline { font-size: 11px; }
.bbp-replies-list > li > ul > li + li { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 10px; }
.bbp-replies-list > li > ul > li .post-actions { margin-top: 6px; }
/* Reset left margin helpers (we manage inside card) */
.bbp-threaded-replies, .bbp-replies-list { margin-left: 0; }

/* Child reply legacy styles disabled */
.post-card.child-reply { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }

/* Tighten vertical rhythm inside nested stacks */
.bbp-replies-list li > .post-card + ul > li > .post-card { margin-top: 8px; }
.replying-to { color: #9aa3ad; font-size: 12px; margin: 4px 0 8px; }

.replies-title { color: #8b8b8b; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; margin: 18px 0 8px; padding: 0 4px; }

.reply-form-dark { background: rgba(18,18,18,0.75); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); padding: 16px; margin-top: 20px; }
.reply-form-dark h3 { margin: 0 0 10px; color: #e5e9f0; }
.reply-form-dark textarea, .reply-form-dark input[type="text"], .reply-form-dark input[type="email"], .reply-form-dark input[type="url"], .reply-form-dark select { width: 100%; background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; }
.reply-form-dark input[type="submit"], .reply-form-dark .button, .reply-form-dark button { background: #3b82f6; color: #0b1220; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.reply-form-dark input[type="submit"]:hover, .reply-form-dark .button:hover, .reply-form-dark button:hover { background: #2563eb; }

/* Topic actions */
.topic-actions { margin: 8px 0 12px; display: flex; justify-content: flex-end; }
.btn-reply { background: #3b82f6; color: #0b1220; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; cursor: pointer; }
.btn-reply:hover { background: #2563eb; }

/* Secondary button */
.btn-secondary { background: #374151; color: #e5e7eb; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn-secondary:hover { background: #4b5563; color: #fff; }

/* Hide bbPress admin link clutter on single-topic cards */
body.bbpress .post-card .bbp-admin-links,
body.bbpress .post-card .bbp-reply-admin-links { display: none !important; }

/* Single-topic width + breadcrumb polish */
.topic-single { max-width: 100%; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.topic-single .topic-grid { align-items: flex-start; }
.topic-single .topic-main { min-width: 0; display: block; }
.topic-single .topic-sidebar { position: sticky; top: 84px; }

/* Standalone reply page visuals */
.reply-standalone { max-width: 860px; margin: 0 auto; }
body.page-template-page-reply,
body.page-template-page-reply .site,
body.page-template-page-reply .site-content { background: #0b0b0b !important; }
/* Reply card should look like a simple card, not a modal */
body.page-template-page-reply .post-card.reply-card { background: rgba(18,18,18,0.8); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
body.page-template-page-reply .post-card.reply-card .form-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
/* Flatten inner form so it doesn't look like a modal */
body.page-template-page-reply .reply-form-dark { background: transparent; border: 0; box-shadow: none; padding: 0; }
/* Submit + Cancel inline */
body.page-template-page-reply .bbp-submit-wrapper { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 10px; }
body.page-template-page-reply .bbp-submit-wrapper #bbp_reply_submit { order: 1; }
body.page-template-page-reply .bbp-submit-wrapper .btn-cancel-inline { order: 2; }
/* Media button styling */
body.bbpress .wp-media-buttons .button, body.page-template-page-reply .wp-media-buttons .button { background: #374151; color: #e5e7eb; border: 0; border-radius: 8px; padding: 8px 12px; font-weight: 600; position: relative; z-index: 3; }
body.bbpress .wp-media-buttons .button:hover, body.page-template-page-reply .wp-media-buttons .button:hover { background: #4b5563; color: #fff; }
body.page-template-page-reply .wp-media-buttons { margin-bottom: 8px; }

/* Ensure post content spans inside cards */
.post-card .bbp-reply-content, .post-card .bbp-topic-content { float: none !important; width: 100% !important; }
.post-card .bbp-reply-author, .post-card .bbp-topic-author { display: none !important; }
.post-card .bbp-reply-content p, .post-card .bbp-topic-content p { white-space: normal; word-break: normal; overflow-wrap: anywhere; }

/* Better quote styling inside replies */
.post-card blockquote { margin: 8px 0; padding: 10px 12px; border-left: 3px solid rgba(148,163,184,0.35); background: rgba(255,255,255,0.03); border-radius: 6px; color: #aebacf; }

/* Sidebar card */
.topic-single .sidebar-card { background: rgba(18,18,18,0.75); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; box-shadow: 0 14px 36px rgba(0,0,0,0.45); padding: 14px; margin: 0 0 16px; backdrop-filter: blur(6px); }
.topic-single .sidebar-card-title { font-weight: 600; color: #e5e9f0; margin: 4px 4px 10px; font-size: 14px; letter-spacing: .2px; text-transform: uppercase; opacity: .9; }

/* Related topics */
.topic-single ul.related-topics { list-style: none; margin: 0; padding: 0; }
.topic-single ul.related-topics li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 8px; }
.topic-single ul.related-topics li a { color: #cbd5e1; text-decoration: none; flex: 1 1 auto; }
.topic-single ul.related-topics li .time { color: #93a5bf; flex: 0 0 auto; font-size: 12px; }
.topic-single ul.related-topics li:hover { background: rgba(255,255,255,0.04); }
.topic-single ul.related-topics li.empty { color: #9aa7bd; padding: 8px 10px; }

/* Latest replies */
.topic-single ul.latest-replies { list-style: none; margin: 0; padding: 0; }
.topic-single ul.latest-replies li { padding: 8px 10px; border-radius: 8px; }
.topic-single ul.latest-replies li .reply-link { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; color: #cbd5e1; text-decoration: none; }
.topic-single ul.latest-replies li .time { color: #93a5bf; font-size: 12px; }
.topic-single ul.latest-replies li:hover { background: rgba(255,255,255,0.04); }

/* Ad slot */
.topic-single .sidebar-card.ad .ad-slot { display: grid; place-items: center; min-height: 160px; background: rgba(0,0,0,0.4); border: 1px dashed rgba(255,255,255,0.1); border-radius: 8px; }
.topic-single .sidebar-card .ad-placeholder { color: #94a3b8; font-size: 12px; }

/* Auth (Login/Register) pages styled like cards */
.auth-page { padding-top: 24px; padding-bottom: 24px; }
.auth-card .auth-form label { color: #cbd5e1; font-weight: 600; font-size: 14px; }
.auth-card .auth-form input[type="text"],
.auth-card .auth-form input[type="email"],
.auth-card .auth-form input[type="password"] {
    width: 100%; background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; margin-top: 6px; margin-bottom: 12px;
}
.auth-card .auth-form .submit, .auth-card .auth-form .button, .auth-card .auth-form input[type="submit"], .auth-card .auth-form .button-primary {
    background: #3b82f6; color: #0b1220; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer;
}
.auth-card .auth-form .submit:hover, .auth-card .auth-form .button:hover, .auth-card .auth-form input[type="submit"]:hover { background: #2563eb; }
.auth-links a { color: #9aa7bd; text-decoration: none; }
.auth-links a:hover { color: #c6d0e3; }
.auth-links .sep { color: #556; margin: 0 8px; }

/* Responsive: stack columns */
@media (max-width: 992px) {
    .topic-single { max-width: 100%; }
    .topic-single .topic-grid { display: block; }
    .topic-single .topic-sidebar { position: static; margin-top: 16px; }
}
.topic-single .bbp-breadcrumb-wrapper { color: #94a3b8; margin-bottom: 8px; }
.topic-single .bbp-breadcrumb a { color: #9aa7bd; }
.topic-single .bbp-breadcrumb a:hover { color: #c6d0e3; }
.topic-single .post-actions a { font-weight: 600; }

/* Darken bbPress notices and editor chrome inside reply form */
.reply-form-dark .bbp-template-notice { background: rgba(255,255,255,0.06); color: #cbd5e1; border: 1px solid rgba(255,255,255,0.08); }
.reply-form-dark .wp-editor-area, .reply-form-dark textarea#bbp_reply_content { background: #0f0f0f; color: #e5e9f0; }
.reply-form-dark #wp-bbp_reply_content-editor-container { border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; overflow: hidden; }
/* Keep bbPress reply editor minimal: no toolbars */
body.page-template-page-reply .reply-form-dark .quicktags-toolbar,
body.page-template-page-reply .reply-form-dark .wp-editor-tabs,
body.page-template-page-reply .reply-form-dark .mce-toolbar,
body.page-template-page-reply .reply-form-dark .mce-statusbar { display: none !important; }
body.page-template-page-reply .reply-form-dark .wp-media-buttons { margin-bottom: 8px; }
/* Reply form footer */
.reply-actions-secondary { margin-top: 12px; display: flex; justify-content: flex-end; gap: 10px; }

/* De-emphasize optional extras */
.reply-form-dark label[for="bbp_topic_tags"],
.reply-form-dark #bbp_topic_tags,
.reply-form-dark .bbp-form #bbp-anonymous-notice { display: none; }
.reply-form-dark .bbp-template-notice { display:none; }
.reply-form-dark input#bbp_topic_subscription, .reply-form-dark label[for="bbp_topic_subscription"] { display:none; }

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Welcome Section - matches the design */
.welcome-section {
    background: white;
    margin: 0 auto 2rem auto;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}

.welcome-section h1 {
    color: #4a5568;
    font-size: 1.5rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #718096;
    font-size: 0.9rem;
    margin: 0;
}

/* Forum Activity Section - matches the design exactly */
.forum-activity-section {
    background: white;
    margin: 0 auto 2rem auto;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.forum-activity-header {
    background: #5a6c7d;
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: normal;
    font-size: 0.9rem;
}

.activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.activity-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.activity-info {
    flex: 1;
}

.activity-info h4 {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: normal;
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.activity-meta {
    color: #a0aec0;
    font-size: 0.75rem;
    margin: 0;
}

.activity-stats {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-left: 2rem;
}

.stat-column {
    text-align: center;
    min-width: 50px;
}

.stat-number {
    display: block;
    color: #4a5568;
    font-weight: normal;
    font-size: 0.85rem;
    line-height: 1;
}

.stat-label {
    color: #a0aec0;
    font-size: 0.7rem;
    text-transform: lowercase;
    line-height: 1;
}

/* Join Community Section - matches the design */
.join-community-section {
    background: white;
    margin: 0 auto 2rem auto;
    padding: 2.5rem;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid #e2e8f0;
}

.join-community-section h2 {
    color: #4a5568;
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 0.5rem;
}

.join-community-section p {
    color: #718096;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.community-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-register {
    background: #e53e3e;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background: #c53030;
}

.btn-login {
    background: #718096;
    color: white;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 3px;
    text-decoration: none;
    font-weight: normal;
    font-size: 0.85rem;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background: #4a5568;
}

.forum-list {
    list-style: none;
}

.forum-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s;
}

.forum-item:hover {
    background-color: #f8f9fa;
}

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

.forum-info {
    flex: 1;
}

.forum-title {
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.forum-title:hover {
    color: #e74c3c;
}

.forum-description {
    color: #666;
    font-size: 0.9rem;
}

.forum-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

/* Topic List Styles */
.topic-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topic-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    font-weight: bold;
}

.topic-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    transition: background-color 0.3s;
}

.topic-item:hover {
    background-color: #f8f9fa;
}

.topic-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.topic-title:hover {
    color: #e74c3c;
}

.topic-meta {
    font-size: 0.9rem;
    color: #666;
}

.topic-author {
    color: #2c3e50;
    text-decoration: none;
}

.topic-stats {
    text-align: center;
    color: #666;
}

/* Single Topic Styles */
.topic-content {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.post-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.post-author {
    font-weight: bold;
    color: #2c3e50;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
}

.post-content {
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 1rem;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(231,76,60,0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%);
}

/* Legacy button styles - removed, now using new header styles above */

/* Footer Styles */
.site-footer {
    background: #000;
    color: #a0aec0;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.8rem;
}

.site-footer .container {
    max-width: 900px;
}

.site-footer p {
    margin-bottom: 0.25rem;
}

.site-footer a {
    color: #4299e1;
    text-decoration: none;
}

.site-footer a:hover {
    color: #63b3ed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* REMOVED flex-direction: column from .header-content - it breaks the header layout */
    
    .welcome-section {
        margin: 1rem auto;
        padding: 2rem 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.5rem;
    }
    
    .forum-activity-section,
    .join-community-section {
        margin: 1rem auto;
    }
    
    .activity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .activity-stats {
        align-self: stretch;
        justify-content: space-around;
        border-top: 1px solid #e2e8f0;
        padding-top: 1rem;
    }
    
    .community-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-register,
    .btn-login {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .welcome-section,
    .forum-activity-section,
    .join-community-section {
        margin: 1rem 10px;
        border-radius: 6px;
    }
    
    .forum-activity-header {
        padding: 0.75rem 1rem;
    }
    
    .activity-item {
        padding: 1rem;
    }
    
    .activity-stats {
        gap: 1rem;
    }
}

/* Admin Bar Compatibility */
.admin-bar .site-header {
    margin-top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        margin-top: 46px;
    }
}

/* WordPress Specific Styles */
.wp-block-group {
    margin: 2rem 0;
}

.aligncenter {
    text-align: center;
    margin: 2rem auto;
    display: block;
}

.alignleft {
    float: left;
    margin: 0 2rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 2rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 4px;
}

.pagination a:hover {
    background: #2c3e50;
    color: white;
}

.pagination .current {
    background: #2c3e50;
    color: white;
}

/* bbPress Specific Styles */
.bbpress-wrapper {
    width: 100%;
}

/* bbPress Forms */
.bbp-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Dark theme overrides for bbPress forms on forum + reply pages */
body.bbpress .bbp-form,
body.page-template-page-reply .bbp-form { background: transparent; box-shadow: none; padding: 0; border-radius: 0; color: #cbd5e1; }
body.bbpress .bbp-form legend,
body.page-template-page-reply .bbp-form legend { color: #cbd5e1; }
body.bbpress .bbp-form label,
body.page-template-page-reply .bbp-form label { color: #cbd5e1; font-weight: 600; }
body.bbpress .bbp-form input[type="text"],
body.bbpress .bbp-form input[type="email"],
body.bbpress .bbp-form input[type="url"],
body.bbpress .bbp-form textarea,
body.bbpress .bbp-form select,
body.page-template-page-reply .bbp-form input[type="text"],
body.page-template-page-reply .bbp-form input[type="email"],
body.page-template-page-reply .bbp-form input[type="url"],
body.page-template-page-reply .bbp-form textarea,
body.page-template-page-reply .bbp-form select { background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; }
body.bbpress .bbp-form input:focus,
body.bbpress .bbp-form textarea:focus,
body.bbpress .bbp-form select:focus,
body.page-template-page-reply .bbp-form input:focus,
body.page-template-page-reply .bbp-form textarea:focus,
body.page-template-page-reply .bbp-form select:focus { outline: none; border-color: #60a5fa; box-shadow: 0 0 0 3px rgba(96,165,250,0.2); }
body.bbpress .bbp-form .button,
body.bbpress .bbp-form input[type="submit"],
body.page-template-page-reply .bbp-form .button,
body.page-template-page-reply .bbp-form input[type="submit"] { background: #3b82f6; color: #0b1220; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
body.bbpress .bbp-form .button:hover,
body.bbpress .bbp-form input[type="submit"]:hover,
body.page-template-page-reply .bbp-form .button:hover,
body.page-template-page-reply .bbp-form input[type="submit"]:hover { background: #2563eb; }

.bbp-form fieldset {
    border: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.bbp-form legend {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.bbp-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.bbp-form input[type="text"],
.bbp-form input[type="email"],
.bbp-form input[type="url"],
.bbp-form textarea,
.bbp-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.bbp-form input:focus,
.bbp-form textarea:focus,
.bbp-form select:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

.bbp-form textarea {
    min-height: 120px;
    resize: vertical;
}

.bbp-form .bbp-submit-wrapper {
    margin-top: 2rem;
}

.bbp-form.xda-poll-fields input[type="text"] {
    max-width: 500px;
}

/* bbPress Status Labels */
.bbp-topic-meta .bbp-topic-permalink,
.bbp-reply-meta .bbp-reply-permalink {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.bbp-topic-meta .bbp-topic-permalink:hover,
.bbp-reply-meta .bbp-reply-permalink:hover {
    color: #e74c3c;
}

/* bbPress Admin Links */
.bbp-admin-links {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.bbp-admin-links a {
    color: #666;
    text-decoration: none;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.bbp-admin-links a:hover {
    color: #e74c3c;
}

/* Forum Statistics Grid */
.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* Mobile Navigation (legacy block removed to prevent hiding the toggle) */

/* Notifications */
.forum-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: none;
}

.forum-notification.info {
    background: #3498db;
}

.forum-notification.success {
    background: #27ae60;
}

.forum-notification.warning {
    background: #f39c12;
}

.forum-notification.error {
    background: #e74c3c;
}

/* Character Counter */
.char-counter {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
    margin-top: 0.25rem;
}

.char-counter-warning {
    color: #e74c3c;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: none;
    transition: all 0.3s;
}

#back-to-top:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* bbPress Breadcrumbs */
.bbp-breadcrumb {
    color: #666;
    font-size: 0.9rem;
}

.bbp-breadcrumb a {
    color: #2c3e50;
    text-decoration: none;
}

.bbp-breadcrumb a:hover {
    color: #e74c3c;
}

/* Topic Status Indicators */
.topic-sticky-badge,
.topic-closed-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.topic-sticky-badge {
    background: #f39c12;
    color: white;
}

.topic-closed-badge {
    background: #95a5a6;
    color: white;
}

/* Hover Effects */
.forum-item.hovered,
.topic-item.hovered {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Polls UI */
.xda-poll-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 1rem 0 1.5rem 0;
    padding: 1rem 1.25rem;
}
.xda-poll-title {
    margin: 0 0 0.75rem 0;
    color: #4a5568;
    font-size: 1rem;
}
.xda-poll-option {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0.4rem 0;
}
.xda-poll-option input[type="radio"] { margin-top: 0; }
.xda-poll-option .option-label { color: #4a5568; font-size: 0.95rem; }
.xda-poll-option .option-stats { color: #718096; font-size: 0.8rem; min-width: 3ch; text-align: right; }
.xda-poll-option .option-bar { grid-column: 2 / -1; height: 6px; background: #edf2f7; border-radius: 3px; overflow: hidden; }
.xda-poll-option .option-bar > span { display: block; height: 100%; background: #4299e1; width: 0%; transition: width 0.3s ease; }
.xda-poll-actions { display: flex; gap: 1rem; align-items: center; margin-top: 0.75rem; }
.xda-poll-total { color: #718096; font-size: 0.85rem; }

/* Dark overrides for polls on homepage and bbPress pages */
body.home .xda-poll-card,
body.bbpress .xda-poll-card {
        background: rgba(12,12,12,0.7);
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 12px 30px rgba(0,0,0,0.45);
        backdrop-filter: blur(6px);
}
body.home .xda-poll-title,
body.bbpress .xda-poll-title { color: #e5e9f0; }
body.home .xda-poll-option .option-label,
body.bbpress .xda-poll-option .option-label { color: #cbd5e1; }
body.home .xda-poll-option .option-stats,
body.bbpress .xda-poll-option .option-stats { color: #94a3b8; }
body.home .xda-poll-option .option-bar,
body.bbpress .xda-poll-option .option-bar { background: rgba(255,255,255,0.06); }
body.home .xda-poll-option .option-bar > span,
body.bbpress .xda-poll-option .option-bar > span { background: #60a5fa; }
body.home .xda-poll-total,
body.bbpress .xda-poll-total { color: #94a3b8; }

/* Single Forum: modern topics list */
.forum-hero { margin: 8px 0 12px; padding: 18px 20px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.forum-hero .forum-title { font-size: 1.8em; font-weight: 700; letter-spacing: 0.5px; color: #cbd5e1; text-transform: uppercase; margin: 0 0 6px; }
.forum-hero .forum-desc { color: #9aa5b1; margin: 0; }
.topic-toolbar { display: flex; gap: 14px; align-items: center; margin: 14px 0 18px; }
.topic-search { flex: 1; }
.topic-search input[type="text"] { width: 100%; padding: 12px 14px; background: rgba(12,12,12,0.7); color: #e5e9f0; border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; outline: none; }
.topic-search input::placeholder { color: #7b8794; }
.btn-new-topic { display: inline-block; background: #3b82f6; color: #0b1220; padding: 12px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn-new-topic:hover { background: #2563eb; color: #0b1220; }

.topics-modern { background: rgba(12,12,12,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.5); backdrop-filter: blur(8px); }
.topics-modern .topics-header { display: grid; grid-template-columns: 1fr 120px 220px; gap: 16px; padding: 12px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); color: #8b8b8b; font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; }
.topic-row { display: grid; grid-template-columns: 1fr 120px 220px; gap: 16px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); align-items: center; text-decoration: none; background: transparent; }
.topic-row:hover { background: rgba(255,255,255,0.03); }
.topic-main { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; }
.topic-avatar { width: 40px; height: 40px; border-radius: 999px; background: #0f1215; border: 1px solid rgba(255,255,255,0.08); }
.topic-title-lg { color: #8ab4ff; font-weight: 700; font-size: 1em; line-height: 1.2; margin: 0 0 4px; }
.topic-title-lg:hover { color: #a5c8ff; }
.topic-sub { color: #9aa5b1; font-size: 13px; }
.topic-replies { color: #fff; text-align: center; font-weight: 600; }
.topic-last { text-align: left; color: #9aa5b1; font-size: 12px; }
.topic-last .label { color: #8b8b8b; text-transform: uppercase; font-size: 11px; margin-bottom: 2px; }

@media (max-width: 900px) {
    .topics-modern .topics-header, .topic-row { grid-template-columns: 1fr 80px 1fr; }
    .topic-main { grid-template-columns: 32px 1fr; }
    .topic-avatar { width: 32px; height: 32px; }
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    /* Improve forum/topic list layout on mobile */
    .topics-modern { border-radius: 8px; }
    .topics-modern .topics-header { grid-template-columns: 1fr 60px; gap: 10px; font-size: 11px; }
    .topics-modern .topics-header > :nth-child(3) { display: none; }
    .topic-row { grid-template-columns: 1fr 60px; gap: 10px; padding: 12px 14px; }
    .topic-main { grid-template-columns: 28px 1fr; gap: 10px; }
    .topic-title-lg { font-size: 0.95em; }
    .topic-sub { font-size: 12px; }
    .topic-last { display: none; }
    .topic-replies { font-size: 13px; }

    /* Breadcrumbs tighter */
    .bbp-breadcrumb { font-size: 0.85rem; }

    /* Reduce excessive paddings */
    .forum-hero { padding: 14px 14px 8px; }
    .topic-toolbar { flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
    .btn-new-topic { padding: 10px 12px; font-size: 14px; }

    /* Subforum list (category view) responsive adjustments */
    .subforum-list-section .topic-header { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 10px; }
    .subforum-list-section .topic-item { display: grid; grid-template-columns: 1fr 70px 1fr; gap: 10px; align-items: center; padding: 12px 14px; }
    .subforum-list-section .topic-item .forum-description { display: none; }
    .subforum-list-section .topic-item .topic-stats { text-align: center; }
    .subforum-list-section .topic-item .topic-meta { font-size: 12px; color: #9aa5b1; }

    /* Mobile nav and toggle are defined in main @media (max-width: 768px) block above */
    
    .hero-section {
        padding: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .forum-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .topic-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .topic-actions .btn {
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .forum-notification {
        right: 10px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    /* Stack items for very small screens */
    .topics-modern .topics-header { display: none; }
    .topic-row { grid-template-columns: 1fr; }
    .topic-main { grid-template-columns: 36px 1fr; }
    .topic-replies { justify-self: start; margin-left: 46px; color: #cbd5e1; }
    .topic-sub { margin-top: 4px; }

    /* Subforum list: stack columns on very small screens */
    .subforum-list-section .topic-header { display: none; }
    .subforum-list-section .topic-item { grid-template-columns: 1fr; }
    .subforum-list-section .topic-item .topic-stats { order: 3; justify-self: start; }
    .subforum-list-section .topic-item .topic-meta { order: 4; margin-top: 4px; }
    
    .forum-section-header,
    .topic-header {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    .forum-item,
    .topic-item,
    .post-item {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .forum-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }
}

/* --- New Topic Modal (bbPress) --- */
.bbp-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; }
.bbp-modal[hidden] { display: none !important; }
.bbp-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(2px); }
.bbp-modal__dialog { position: relative; width: min(800px, calc(100% - 32px)); max-height: 90vh; overflow: auto; background: rgba(10,10,10,0.95);
        backdrop-filter: none;
        color: #f8fafc; border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,0.6); transform: translateY(6px); opacity: 0; transition: opacity .15s ease, transform .15s ease; }
.bbp-modal.is-open .bbp-modal__dialog { opacity: 1; transform: translateY(0); }
.bbp-modal__header { display:flex; align-items:center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.85); position: sticky; top: 0; z-index: 1; }
.bbp-modal__header h3 { margin: 0; color: #e5e9f0; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; font-size: 14px; }
.bbp-modal__close { background: transparent; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; }
.bbp-modal__close:hover { color: #cbd5e1; }
.bbp-modal__body { padding: 16px; }

/* bbPress form inside modal */
.bbp-modal .bbp-form, .bbp-modal fieldset.bbp-form { background: transparent; border: 0; padding: 0; }
.bbp-modal .bbp-form label { color: #cbd5e1; }
.bbp-modal input[type="text"],
.bbp-modal input[type="email"],
.bbp-modal input[type="url"],
.bbp-modal textarea,
.bbp-modal select { width: 100%; background: #0f0f0f; color: #e5e9f0; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; padding: 10px 12px; }
.bbp-modal textarea { min-height: 160px; }
.bbp-modal .button, .bbp-modal button, .bbp-modal input[type="submit"] { background: #3b82f6; color: #0b1220; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
.bbp-modal .button:hover, .bbp-modal button:hover, .bbp-modal input[type="submit"]:hover { background: #2563eb; }

/* --- Dark Homepage Enhancements --- */
body.home, body.home .site-main { background: #000; }
body.home { color: #e5e9f0; }
body.home .site-main { padding: 0; }
/* Make homepage container fluid so background spans full width */
body.home .site-main > .container { max-width: none; padding: 0; margin: 0; }
body.home .container { max-width: none; }
body.home .site-header { background: #000; border-bottom: 1px solid #111; }
body.home .site-footer { background: #000; color: #94a3b8; }
/* bbPress footer glass bar */
body.bbpress .site-footer {
    background: transparent !important;
    padding: 24px 0 36px;
}
body.bbpress .site-footer .site-info {
    max-width: 520px;
    margin: 0 auto;
    background: rgba(10,10,10,0.65);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 12px 16px;
    color: #9aa5b1;
}
body.bbpress .site-footer a { color: #93c5fd; }
body.bbpress .site-footer a:hover { color: #bfdbfe; }
body.home .welcome-section,
body.home .forum-activity-section,
body.home .join-community-section { background: #0e131a; border-color: #1f2933; color: #cbd5e1; }
body.home .forum-activity-header { background: #111827; color: #e5e9f0; }
body.home .activity-item { border-color: #0f1720; }
body.home .activity-info h4 { color: #e5e9f0; }
body.home .activity-meta { color: #9aa5b1; }
body.home .stat-number { color: #e5e9f0; }
body.home .stat-label { color: #9aa5b1; }

/* Hero Banner */
.hero-dark { position: relative; min-height: 70vh; display:flex; align-items:center; justify-content:flex-start; padding:0; background:#000; background-size:cover; background-position:center right; border-bottom:none; width: calc(100% - calc(var(--edge) * 2)); max-width: 1200px; margin: var(--edge) auto 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 28px rgba(0,0,0,0.35); }
.hero-dark::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.18) 100%); border-radius: inherit; pointer-events: none; }
.hero-inner { width: 100%; text-align: left; }
.hero-content { position: relative; z-index: 1; max-width: 520px; margin-left: var(--hero-left); text-align: left; }
.hero-headline { font-size: var(--headline-size); line-height: 1.05; margin: 0 0 10px; color: #ffffff; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; text-shadow: 0 8px 24px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.6); }
.hero-title { font-size: var(--hero-sub-size); line-height: 1.4; margin: 0 0 14px; color: #e5e9f0; letter-spacing: 0.2px; font-weight: 600; text-transform: none; text-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-ctas { display: flex; gap: 14px; }
.btn-hero { background: #f97316; color: #111; padding: 12px 18px; border-radius: 8px; text-decoration: none; font-weight: 700; box-shadow: 0 6px 18px rgba(249,115,22,0.25); white-space: nowrap; }
.btn-hero:hover { background: #ea580c; }
.btn-hero-primary { background: #f97316; color: #111; }
.btn-hero-secondary { background: transparent; color: #e5e9f0; border: 1px solid #475569; padding: 12px 18px; border-radius: 8px; text-decoration: none; }
.btn-hero-secondary:hover { background: #0b1220; border-color: #64748b; }

/* Hero responsiveness tweaks */
@media (max-width: 768px) {
    .hero-dark { min-height: 52vh; }
    .hero-content { max-width: 92%; }
    .hero-ctas { gap: 10px; }
    .btn-hero, .btn-hero-secondary { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 480px) {
    .hero-dark { min-height: 44vh; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .btn-hero, .btn-hero-secondary { width: 100%; text-align: center; padding: 10px 12px; font-size: 13.5px; }
}

/* Featured Forums Grid */
.featured-forums { max-width: var(--container); margin: var(--section-gap) auto; padding: 0 var(--edge); }
.featured-forums .section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.featured-forums .section-header { max-width: var(--archive-width); margin: 56px auto 8px; padding: 0; }
.section-link { color: #93c5fd; text-decoration: none; font-size: 13px; }
.section-link:hover { color: #bfdbfe; text-decoration: underline; }
.section-title { margin: 0 0 12px; font-size: var(--section-title-size); color: #e5e9f0; padding-left: 2px; letter-spacing: 0.4px; }
.section-title.large { font-size: 22px; font-weight: 800; text-transform: uppercase; color: #cbd5e1; margin: 0; letter-spacing: 0.6px; }
.forums-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; grid-auto-rows: 1fr; }
.forum-card { display: grid; grid-template-rows: auto 1fr; background: #111418; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius); padding: var(--row-padding-y) var(--card-padding-x); text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,0.25) inset; height: 100%; }
.forum-card:hover { border-color: #334155; background: #0f141b; }
.forum-card-head { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; margin-bottom: 10px; }
.forum-card-icon { width: 36px; height: 36px; display: grid; place-items: center; color: #f1f5f9; background: #0f1215; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px; font-size: 18px; }
.forum-card-headings { display: grid; gap: 6px; }
.forum-card-title { font-weight: 900; color: #f1f5f9; text-transform: uppercase; letter-spacing: 0.3px; }
.forum-card-desc { color: #9aa5b1; font-size: 12px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.forum-card-rows { display: grid; gap: 10px; margin-top: 10px; align-self: end; }
.forum-card-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.metric { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; padding: 10px 12px; min-height: 60px; display: grid; align-content: center; }
.metric-label { color: #9aa5b1; font-size: 11px; text-transform: none; }
.metric-value { color: #e5e9f0; font-size: 13px; font-weight: 600; }

@media (max-width: 900px) {
    .forums-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .section-title.large { font-size: 18px; }
    .forum-card { padding: 12px 14px; }
    .forum-card-head { grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 8px; }
    .forum-card-icon { width: 30px; height: 30px; font-size: 16px; }
    .forum-card-title { font-size: 14px; }
    .forum-card-desc { font-size: 12px; min-height: 32px; }
    .forum-card-rows { gap: 8px; margin-top: 8px; }
    .forum-card-row { gap: 8px; }
    .metric { padding: 8px 10px; min-height: 48px; }
    .metric-label { font-size: 10px; }
    .metric-value { font-size: 12.5px; }
}
@media (max-width: 480px) {
    .featured-forums { margin-top: 12px; }
    .forum-card { padding: 10px 12px; }
}

/* Top Ad Banner */
.site-top-adband {
    background: #000;
    border-bottom: 1px solid #0b0f16;
}

.top-ad-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 6px var(--edge) 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.top-ad-media {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.top-ad-media img,
.top-ad-media video,
.top-ad-media iframe {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    display: block;
}

.top-ad-media iframe {
    width: 100%;
}

.top-ad-media > * {
    max-width: 100%;
}

/* Ad badge for header ad */
.top-ad-badge {
    position: absolute;
    right: 10px;
    bottom: 8px;
    background: rgba(15, 23, 42, 0.5);
    color: rgba(203, 213, 245, 0.7);
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    pointer-events: none;
}

/* ============================================
   Ad Carousel Styles
   ============================================ */
.xda-ad-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.xda-carousel-slides {
    position: relative;
    width: 100%;
}

.xda-carousel-slide {
    display: none;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.xda-carousel-slide.active {
    display: block;
    opacity: 1;
}

.xda-carousel-prev,
.xda-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 32px;
    line-height: 1;
    padding: 8px 14px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    border-radius: 4px;
}

.xda-carousel-prev:hover,
.xda-carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.xda-carousel-prev:focus,
.xda-carousel-next:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

.xda-carousel-prev {
    left: 10px;
}

.xda-carousel-next {
    right: 10px;
}

.xda-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.xda-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.xda-carousel-dot:hover {
    background: rgba(148, 163, 184, 0.6);
    transform: scale(1.2);
}

.xda-carousel-dot.active {
    background: #4a9eff;
    transform: scale(1.3);
}

.xda-carousel-dot:focus {
    outline: 2px solid #4a9eff;
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .xda-carousel-prev,
    .xda-carousel-next {
        font-size: 24px;
        padding: 6px 10px;
    }
    
    .xda-carousel-prev {
        left: 5px;
    }
    
    .xda-carousel-next {
        right: 5px;
    }
}

@media (max-width: 640px) {
    .top-ad-inner { padding: 6px var(--edge) 8px; }
    .top-ad-media { height: 80px; }
}

/* Homepage Ad Slots */
.ad-slot {
    max-width: var(--container);
    margin: var(--section-gap) auto;
    padding: var(--row-padding-y) var(--edge);
    background: #0e131a;
    border: 1px solid #1f2933;
    border-radius: var(--radius);
}
.ad-home-top { margin-top: 32px; }
.ad-home-middle { margin-top: 24px; margin-bottom: 24px; }
.ad-home-bottom { margin-top: 24px; margin-bottom: 32px; }

.ad-slot img,
.ad-slot video,
.ad-slot iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.ad-slot .wp-video, .ad-slot .wp-video-shortcode,
.ad-slot .wp-video video {
    width: 100% !important;
    height: auto !important;
}
.ad-slot .wp-embed-aspect-16-9 .wp-block-embed__wrapper,
.ad-slot .wp-embed-aspect-4-3 .wp-block-embed__wrapper { height: auto; }

.ad-slot-header {
    padding: 10px 0 14px;
    margin: 0 0 8px;
    border-bottom: 1px solid #1f2933;
}
.ad-slot-label {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(148,163,184,0.08);
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 999px;
    padding: 4px 10px;
}

/* Trending Topics */
.trending-topics { max-width: var(--container); margin: var(--section-gap) auto; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); padding: 0 var(--edge); }
.trending-topics .section-title { padding: var(--row-padding-y); border-bottom: 1px solid #1f2933; margin: 0; }
.trending-list { list-style: none; margin: 0; padding: 0; }
.trending-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid #0f1720; }
.trending-item:first-child { border-top: 0; }
.trending-title { color: #e5e9f0; text-decoration: none; }
.trending-title:hover { color: #22c55e; }
.trending-meta { color: #94a3b8; font-size: 12px; }

/* Recent Discussions */
.recent-discussions { max-width: var(--container); margin: var(--section-gap) auto; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); padding: 0 var(--edge); }
.recent-discussions .section-title { padding: var(--row-padding-y); border-bottom: 1px solid #1f2933; margin: 0; }
.recent-list { list-style: none; margin: 0; padding: 0; }
.recent-item { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-top: 1px solid #0f1720; }
.recent-item:first-child { border-top: 0; }
.recent-title { color: #e5e9f0; text-decoration: none; font-weight: 500; }
@media (max-width: 768px) {
    .trending-item, .recent-item { padding: 12px 14px; }
    .trending-meta, .recent-meta { font-size: 11.5px; }
}
@media (max-width: 480px) {
    .trending-topics, .recent-discussions, .latest-polls { border-radius: 10px; }
}

/* Forums Archive List */
.bbpress .topic-list, .featured-forums .topic-list { 
    max-width: none; 
    margin: 0 0 var(--section-gap); 
    background: rgba(12,12,12,0.7);
    border: 1px solid rgba(255,255,255,0.06); 
    border-radius: 10px; 
    padding: 0;
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.topic-header { 
    background: rgba(0,0,0,0.88); 
    color: #888; 
    padding: 12px 20px; 
    display: grid; 
    grid-template-columns: 1fr 80px 80px 160px; 
    gap: 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.06); 
    font-size: 11px; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    font-weight: bold;
}
.topic-item { 
    display: grid; 
    grid-template-columns: 1fr 80px 80px 160px; 
    gap: 20px; 
    padding: 16px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.06); 
    align-items: start; 
    min-height: auto; 
    background: transparent;
    transition: background 0.2s ease;
}
.topic-item:hover { background: rgba(255,255,255,0.03); }
.topic-item:last-child { border-bottom: none; }
.topic-item:last-child { border-bottom: none; }
.forum-info .topic-title { 
    font-weight: normal; 
    color: #fff; 
    text-decoration: none; 
    font-size: 14px; 
    line-height: 1.4;
}
.forum-info .topic-title:hover { color: #fff; }
.forum-description { color: #9aa5b1; font-size: 12px; margin-top: 4px; line-height: 1.45; }
.topic-stats { 
    color: #fff; 
    text-align: center; 
    font-weight: normal; 
    font-size: 13px;
}
.topic-meta { color: #f5d742; text-align: left; overflow: hidden; }
.topic-meta .trunc { color: #f5d742; text-decoration: none; font-size: 13px; }
.topic-meta .trunc:hover { text-decoration: none; color: #ffd84d; }
.topic-meta-sub { 
    color: #8b8b8b; 
    font-size: 11px; 
    display: block; 
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    margin-top: 2px;
}

.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-radius: 12px;
    background: rgba(12, 17, 25, 0.85);
    border: 1px dashed rgba(148, 163, 184, 0.38);
    min-height: 70px;
    max-height: 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.topic-list .forum-ad-slot {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0;
    background: rgba(12, 12, 12, 0.65);
    margin: 0;
}

.topic-item.forum-ad-slot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topic-row.forum-ad-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(12, 12, 12, 0.65);
    position: relative;
    overflow: hidden;
}

.topic-list .forum-ad-slot:last-child,
.topic-item.forum-ad-slot:last-child {
    border-bottom: none;
}

.forum-ad-slot-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    display: block;
}

.forum-ad-content {
    position: relative;
    z-index: 0;
    pointer-events: none;
    width: 100%;
    max-width: 100%;
}

.forum-ad-label {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.6);
    pointer-events: none;
    z-index: 2;
}

.forum-ad-content > * {
    margin: 0 auto;
}

.forum-ad-content img,
.forum-ad-content video,
.forum-ad-content iframe {
    max-height: 100px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.forum-ad-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70px;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    color: #cbd5f5;
    font-size: 14px;
    padding: 12px 18px;
    background: rgba(9, 14, 20, 0.7);
}

.forum-ad-label {
    position: absolute;
    right: 14px;
    bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.6);
    pointer-events: none;
}

@media (max-width: 900px) {
    .topic-header { grid-template-columns: 1fr 80px 80px 1fr; }
    .topic-item { grid-template-columns: 1fr 80px 80px 1fr; }
}
.recent-title:hover { color: #22c55e; }
.recent-meta { color: #94a3b8; font-size: 12px; }

/* Community Stats */
.community-stats { max-width: var(--container); margin: var(--section-gap) auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; padding: 0 var(--edge); }
.stat-pill { background: #0e131a; border: 1px solid #1f2933; border-radius: 10px; padding: 16px; text-align: center; }
.stat-number { display: block; font-size: 24px; font-weight: 700; color: #e5e9f0; }
.stat-label { display: block; color: #94a3b8; font-size: 12px; margin-top: 2px; }

@media (max-width: 600px) {
    .hero-title { font-size: 24px; }
    .hero-sub { font-size: 14px; }
    .forums-grid { grid-template-columns: 1fr; }
}

/* Latest Polls */
.latest-polls { max-width: var(--container); margin: var(--section-gap) auto; background: #0e131a; border: 1px solid #1f2933; border-radius: var(--radius); padding: 0 var(--edge); }
.latest-polls .section-title { padding: var(--row-padding-y); border-bottom: 1px solid #1f2933; margin: 0; }
.polls-list { list-style: none; margin: 0; padding: 0; }
.poll-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid #0f1720; }
.poll-item:first-child { border-top: 0; }
.poll-title { color: #e5e9f0; text-decoration: none; }
.poll-title:hover { color: #22c55e; }
.poll-meta { color: #94a3b8; font-size: 12px; }

/* Child count badge & thread toggle */
.child-count-badge { background: rgba(59,130,246,0.15); color: #60a5fa; font-size: 11px; line-height: 1; padding: 4px 6px 3px; border-radius: 999px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; position: relative; top: -1px; }
.thread-toggle { background: transparent; border: 0; color: #9aa7b5; font-size: 14px; font-weight: 600; padding: 2px 6px; cursor: pointer; border-radius: 6px; line-height: 1; }
.thread-toggle:hover { background: rgba(255,255,255,0.06); color: #d1d9e1; }
.thread-toggle:focus { outline: 2px solid #3b82f6; outline-offset: 2px; }

/* Lighter vertical guide line */
.bbp-replies-list > li > ul { border-left: 1px solid rgba(255,255,255,0.05); }

/* Depth-based scaling */
.bbp-replies-list li .reply-wrapper.depth-0 .post-avatar img { width: 48px; height: 48px; }
.bbp-replies-list li .reply-wrapper.depth-1 .post-avatar img { width: 42px; height: 42px; }
.bbp-replies-list li .reply-wrapper.depth-2 .post-avatar img { width: 38px; height: 38px; }
.bbp-replies-list li .reply-wrapper.depth-3 .post-avatar img { width: 34px; height: 34px; }
.bbp-replies-list li .reply-wrapper.depth-4 .post-avatar img { width: 30px; height: 30px; }
.bbp-replies-list li .reply-wrapper.depth-5 .post-avatar img { width: 28px; height: 28px; }
.bbp-replies-list li .reply-wrapper[class*="depth-"] .post-avatar { overflow: hidden; border-radius: 50%; }

.bbp-replies-list li .reply-wrapper.depth-1 .post-author-line { font-size: 13.5px; }
.bbp-replies-list li .reply-wrapper.depth-2 .post-author-line { font-size: 13px; }
.bbp-replies-list li .reply-wrapper.depth-3 .post-author-line { font-size: 12.5px; }
.bbp-replies-list li .reply-wrapper.depth-4 .post-author-line { font-size: 12px; }
.bbp-replies-list li .reply-wrapper.depth-5 .post-author-line { font-size: 11.5px; }

/* Slightly tighter padding for deeper levels */
.bbp-replies-list > li > ul > li > .reply-wrapper.depth-1 { padding-top: 0; }

/* When collapsed */
li.collapsed > ul { display: none !important; }
li.collapsed > .reply-wrapper .thread-toggle { background: rgba(255,255,255,0.04); }

/* Vote Bar Styles */
.vote-bar { display:flex; gap:10px; margin-top:8px; }
.vote-bar .vote-btn { background:rgba(255,255,255,0.06); border:0; color:#cbd5e1; padding:6px 10px; border-radius:6px; font-size:13px; font-weight:600; display:inline-flex; gap:6px; align-items:center; cursor:pointer; }
.vote-bar .vote-btn .icon { font-size:14px; }
.vote-bar .vote-btn.active { background:#3b82f6; color:#0b1220; }
.vote-bar .vote-btn:hover { background:rgba(255,255,255,0.1); }
.vote-bar.voting .vote-btn { opacity:.6; pointer-events:none; }
.post-votes { margin-top:6px; }
/* Report Modal Styling */
.report-modal { position:fixed; inset:0; z-index:9999; }
.report-modal .report-backdrop { position:absolute; inset:0; background:rgba(0,0,0,0.6); backdrop-filter:blur(4px); }
.report-modal .report-modal-inner { position:relative; max-width:480px; margin:8vh auto; background:#0f1217; border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:24px 26px 22px; box-shadow:0 10px 40px rgba(0,0,0,0.6); color:#e2e8f0; }
.report-modal .report-title { margin:0 0 14px; font-size:18px; font-weight:600; }
.report-modal .report-close { position:absolute; top:10px; right:10px; background:transparent; border:0; color:#94a3b8; font-size:20px; cursor:pointer; }
.report-modal .report-close:hover { color:#fff; }
.report-modal .report-field { display:block; font-size:13px; font-weight:500; margin:0 0 14px; }
.report-modal select, .report-modal textarea { width:100%; background:#141a22; border:1px solid rgba(255,255,255,0.15); color:#e2e8f0; border-radius:8px; padding:8px 10px; font-size:13px; }
.report-modal textarea { resize:vertical; }
.report-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:4px; }
.report-submit { background:#ef4444; color:#fff; border:0; padding:10px 16px; font-weight:600; border-radius:8px; cursor:pointer; }
.report-submit:hover { background:#dc2626; }
.report-cancel { background:rgba(255,255,255,0.08); color:#e2e8f0; border:0; padding:10px 16px; font-weight:500; border-radius:8px; cursor:pointer; }
.report-cancel:hover { background:rgba(255,255,255,0.14); }
.report-status { margin-top:10px; font-size:12px; color:#93c5fd; min-height:16px; }
body.report-open { overflow:hidden; }
.report-link { color:#f87171; }
.report-link:hover { color:#fecaca; }
