/*
Theme Name:  NebulaForums
Theme URI:   https://nebulaforums.com
Description: A dark Steam-style community forum theme built for bbPress. Fully compatible with bbPress plugins and the WordPress ecosystem.
Version:     1.0.0
Author:      NebulaForums
License:     GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nebula
Tags:        bbpress, forum, dark, custom-colors, custom-logo, custom-menu
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --bg-base:      #1b2838;
    --bg-deep:      #0f1923;
    --bg-panel:     #16202d;
    --bg-card:      #213347;
    --bg-bar:       #171a21;
    --border:       #2a3f5a;
    --border-dim:   #1e2a38;
    --text:         #c6d4df;
    --text-bright:  #e8f4ff;
    --text-muted:   #7ca2bd;
    --text-dim:     #4f6e8c;
    --accent:       #4f94c9;
    --accent-dim:   rgba(79,148,201,0.15);
    --green:        #5c7e10;
    --green-text:   #d8f088;
    --red:          #c0392b;
    --red-text:     #f5b7b1;
    --font-display: 'Rajdhani', sans-serif;
    --font-body:    'Noto Sans', sans-serif;
    --topbar-h:     48px;
    --radius:       4px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
    background: var(--bg-deep);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent); }
p a:hover,
.entry-content a:hover,
.bbp-topic-content a:hover,
.bbp-reply-content a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-bright);
    font-weight: 600;
    line-height: 1.3;
}
p { line-height: 1.7; }

/* Accessibility */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
    clip: auto !important; clip-path: none; display: block;
    height: auto; left: 5px; padding: 15px 23px 14px;
    top: 5px; width: auto; z-index: 100000;
    background: var(--bg-panel); color: var(--text-bright);
    font-size: 13px; text-decoration: none;
}
.skip-link { position: absolute; top: -999px; left: 0; }
.skip-link:focus { top: 0; z-index: 9999; padding: 8px 16px; background: var(--accent); color: #fff; }

/* ============================================================
   TOPBAR
   ============================================================ */
.site-header {
    background: var(--bg-bar);
    border-bottom: 1px solid #000;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-branding { display: flex; align-items: center; gap: 8px; }
.site-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-bright);
    letter-spacing: 0.03em;
    line-height: 1;
}
.site-title a { color: var(--text-bright); }
.site-title a:hover { color: var(--text-bright); text-decoration: none; }
.site-title span { color: var(--accent); }
.custom-logo { height: 28px; width: auto; border-radius: 3px; }
.header-spacer { flex: 1; }

/* Primary nav (subforums or top-level pages) */
.main-navigation { display: flex; }
.main-navigation ul { display: flex; gap: 4px; list-style: none; }
.main-navigation a {
    padding: 6px 12px;
    font-size: 12px;
    color: var(--text-muted);
    border-radius: var(--radius);
    transition: color 0.15s;
}
.main-navigation a:hover { color: var(--text-bright); text-decoration: none; }
.main-navigation .current-menu-item > a { color: var(--text-bright); }

/* User area in topbar */
.header-user { display: flex; align-items: center; gap: 10px; }
.topbar-user { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; }
.topbar-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--bg-card); border: 1px solid var(--border); }
.topbar-username { font-size: 13px; color: var(--text); }
.topbar-arrow { font-size: 9px; color: var(--text-muted); transition: transform 0.15s; }
.topbar-user.open .topbar-arrow { transform: rotate(180deg); }
.user-dropdown {
    display: none;
    position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius); min-width: 180px; z-index: 200;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.topbar-user.open .user-dropdown { display: block; }
.user-dropdown a,
.user-dropdown button {
    display: block; width: 100%; text-align: left;
    padding: 10px 14px; font-size: 13px; color: var(--text);
    background: none; border: none; border-bottom: 1px solid var(--border-dim);
    cursor: pointer; font-family: var(--font-body); transition: background 0.1s;
}
.user-dropdown a:last-child,
.user-dropdown button:last-child { border-bottom: none; }
.user-dropdown a:hover,
.user-dropdown button:hover { background: var(--bg-card); color: var(--text-bright); text-decoration: none; }

/* Steam-style login button */
.btn-steam {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: 3px; padding: 6px 12px;
    color: var(--text); font-size: 12px; cursor: pointer;
    white-space: nowrap; transition: border-color 0.15s;
}
.btn-steam:hover { border-color: var(--accent); color: var(--text-bright); text-decoration: none; }
.btn-steam svg { flex-shrink: 0; }

/* ============================================================
   SUBFORUM NAV (tabs below topbar)
   ============================================================ */
.subforum-nav {
    background: var(--bg-bar);
    border-bottom: 1px solid #000;
    display: flex;
    padding: 0 20px;
    overflow-x: auto;
}
.subforum-nav::-webkit-scrollbar { height: 2px; }
.subforum-nav a {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.15s;
    display: block;
}
.subforum-nav a:hover { color: var(--text); text-decoration: none; }
.subforum-nav a.current-forum,
.subforum-nav .current-forum-ancestor > a { color: var(--text-bright); border-bottom-color: var(--accent); }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.site-content {
    display: flex;
    align-items: flex-start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
    gap: 20px;
}
.content-area {
    flex: 1;
    min-width: 0;
}
.widget-area {
    width: 220px;
    flex-shrink: 0;
}
.widget-area .widget {
    margin-bottom: 16px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn,
button.btn {
    display: inline-block; padding: 7px 16px;
    border-radius: 3px; font-size: 12px;
    cursor: pointer; border: none;
    font-family: var(--font-body); transition: opacity 0.15s;
    text-align: center; line-height: 1.4;
}
.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { opacity: 0.85; color: #fff; text-decoration: none; }
.btn-ghost,
button.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.btn-danger { background: var(--red); color: var(--red-text); }
.btn-green { background: var(--green); color: var(--green-text); }

/* ============================================================
   FORMS (WP + bbPress)
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select,
.bbp-the-content-wrapper textarea {
    width: 100%;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text);
    font-size: 13px;
    padding: 8px 10px;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.15s;
    appearance: none;
}
input:focus,
textarea:focus,
select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 5px; }
.bbp-form input[type="submit"],
input[type="submit"] {
    background: var(--accent); color: #fff;
    border: none; padding: 8px 20px;
    border-radius: 3px; font-size: 13px;
    cursor: pointer; font-family: var(--font-body);
    transition: opacity 0.15s;
}
.bbp-form input[type="submit"]:hover,
input[type="submit"]:hover { opacity: 0.85; }

/* ============================================================
   ALERTS / NOTICES
   ============================================================ */
.bbp-template-notice,
.alert,
.bbp-error,
.bbp-success,
.bbp-info {
    padding: 10px 14px;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 12px;
    list-style: none;
}
.bbp-template-notice.info,
.alert-info,
.bbp-info { background: #111a2a; border: 1px solid #1e3a5a; color: var(--accent); }
.bbp-template-notice.warning,
.alert-warning { background: #2a1e0a; border: 1px solid #5a3a10; color: #f0c87a; }
.bbp-template-notice.error,
.alert-error,
.bbp-error { background: #2a1111; border: 1px solid #6a2020; color: var(--red-text); }
.bbp-template-notice.success,
.alert-success,
.bbp-success { background: #112211; border: 1px solid #2a5a20; color: #7ec87e; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
#bbp-breadcrumb,
.bbp-breadcrumb,
.breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding: 8px 0;
}
#bbp-breadcrumb a,
.bbp-breadcrumb a,
.breadcrumb a { color: var(--text-muted); }
#bbp-breadcrumb a:hover,
.bbp-breadcrumb a:hover,
.breadcrumb a:hover { color: var(--text); }
.bbp-breadcrumb-sep { margin: 0 6px; color: var(--text-dim); }

/* ============================================================
   PAGINATION
   ============================================================ */
.bbp-pagination,
.bbp-topic-pagination,
.navigation.pagination { margin-top: 14px; }
.bbp-pagination-links,
.page-numbers {
    display: flex; gap: 4px; justify-content: center;
    flex-wrap: wrap; list-style: none; padding: 0;
}
.bbp-pagination-links a,
.bbp-pagination-links span,
.page-numbers a,
.page-numbers span {
    padding: 5px 10px; border: 1px solid var(--border);
    border-radius: 3px; font-size: 12px; color: var(--text-muted);
    display: inline-block;
}
.bbp-pagination-links a:hover,
.page-numbers a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.bbp-pagination-links .current,
.page-numbers .current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ============================================================
   FORUM INDEX (bbpress/loop-forums.php)
   ============================================================ */
/* Forum index wrapper */
.bbp-forums-wrap { }

.bbp-forum-info { flex: 1; min-width: 0; }
.bbp-forum-title {
    font-family: var(--font-display);
    font-size: 15px; font-weight: 600;
    color: var(--accent); display: block;
    margin-bottom: 3px;
}
.bbp-forum-title:hover { color: #7ab8e8; text-decoration: none; }
.bbp-forum-description { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* Forum list header row */
.bbp-forums-wrap .bbp-header {
    display: flex; padding: 7px 12px;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 10px; color: var(--text-muted);
    font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.bbp-forum-freshness { width: 140px; flex-shrink: 0; text-align: right; font-size: 11px; color: var(--text-muted); }
.bbp-forum-topic-count,
.bbp-forum-reply-count { width: 60px; flex-shrink: 0; text-align: center; font-size: 11px; color: var(--text-muted); }

/* Forum row — bbPress adds class "bbp-forum" to each forum div */
.bbp-forums-wrap .bbp-forum {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 12px; border: 1px solid var(--border-dim);
    border-top: none; background: var(--bg-panel);
    transition: background 0.1s; cursor: pointer;
}
.bbp-forums-wrap .bbp-forum:hover { background: var(--bg-card); }
.bbp-forums-wrap .bbp-forum:last-child { border-radius: 0 0 var(--radius) var(--radius); }

/* Sub-forums list inside a forum row */
.bbp-forum-subforum-list { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.bbp-forum-subforum-list a { color: var(--text-muted); }
.bbp-forum-subforum-list a:hover { color: var(--text); }

/* ============================================================
   TOPIC LIST (bbpress/loop-topics.php)
   ============================================================ */
.bbp-topics-header,
.bbp-topic-header {
    display: flex; padding: 7px 12px;
    background: var(--bg-panel); border: 1px solid var(--border);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 10px; color: var(--text-muted);
    font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
}
.bbp-topic-count-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.bbp-topic-count-header span { font-size: 11px; color: var(--text-muted); }

/* Topic row */
.bbp-body .bbp-topic {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 12px; border: 1px solid var(--border-dim);
    border-top: none; background: var(--bg-panel);
    transition: background 0.1s; cursor: pointer;
}
.bbp-body .bbp-topic:hover { background: var(--bg-card); }
.bbp-body .bbp-topic:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.bbp-body .bbp-topic:first-child { border-top: 1px solid var(--border-dim); }

/* Sticky / closed badges */
.bbp-topic-status { flex-shrink: 0; }
.bbp-topic-status.super-sticky .bbp-topic-permalink::before,
.bbp-topic-status.sticky .bbp-topic-permalink::before {
    content: 'PINNED';
    background: var(--green); color: var(--green-text);
    font-size: 10px; padding: 2px 6px; border-radius: 2px;
    font-weight: 500; margin-right: 8px; vertical-align: middle;
}
.bbp-topic-status.closed .bbp-topic-permalink::after {
    content: 'LOCKED';
    background: var(--bg-card); color: var(--text-muted);
    font-size: 10px; padding: 2px 6px; border-radius: 2px;
    margin-left: 8px; vertical-align: middle;
}

.bbp-topic-title { flex: 1; min-width: 0; }
.bbp-topic-permalink {
    color: var(--accent); font-size: 14px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    display: block;
}
.bbp-topic-permalink:hover { color: #7ab8e8; text-decoration: none; }
.bbp-topic-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.bbp-topic-reply-count,
.bbp-topic-freshness { font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.bbp-topic-reply-count { min-width: 40px; text-align: right; }

/* New topic button row */
.bbp-topic-form-submit { margin-bottom: 12px; text-align: right; }

/* ============================================================
   SINGLE TOPIC / REPLIES (bbpress/loop-replies.php)
   ============================================================ */
.bbp-topic-title-link,
#bbp-topic-title {
    font-family: var(--font-display);
    font-size: 22px; font-weight: 600;
    color: var(--text-bright); letter-spacing: 0.02em;
    margin-bottom: 14px; display: block;
}

/* Post box (topic lead + each reply) */
.bbp-lead-topic,
.bbp-reply {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

/* Post author sidebar */
.bbp-reply-author,
.bbp-topic-author {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bbp-reply-author-avatar img,
.bbp-topic-author-avatar img {
    width: 32px; height: 32px;
    border-radius: 50%; object-fit: cover;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.bbp-reply-author-name a,
.bbp-topic-author-name a {
    color: #66c0f4; font-size: 13px; font-weight: 500;
}
.bbp-reply-author-role,
.bbp-topic-author-role {
    font-size: 11px; color: var(--text-dim); margin-left: 4px;
}

/* Role badge — plugins can target .nebula-role-badge */
.nebula-role-badge {
    display: inline-block; font-size: 10px; padding: 2px 7px;
    border-radius: 2px; font-weight: 500; margin-left: 4px;
    vertical-align: middle;
}

/* Post number / timestamp */
.bbp-reply-post-count,
.bbp-topic-post-count { color: var(--text-dim); font-size: 11px; margin-left: auto; }
.bbp-reply-post-date,
.bbp-topic-post-date { color: var(--text-muted); font-size: 11px; }

/* Post content */
.bbp-reply-content,
.bbp-topic-content {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text);
}
.bbp-reply-content p,
.bbp-topic-content p { margin-bottom: 10px; }
.bbp-reply-content p:last-child,
.bbp-topic-content p:last-child { margin-bottom: 0; }

/* Inline mod actions */
.bbp-reply-admin-links,
.bbp-topic-admin-links {
    font-size: 11px; padding: 6px 12px;
    border-top: 1px solid var(--border-dim);
    display: flex; gap: 12px;
}
.bbp-reply-admin-links a,
.bbp-topic-admin-links a { color: var(--text-dim); }
.bbp-reply-admin-links a:hover,
.bbp-topic-admin-links a:hover { color: var(--accent); }

/* ============================================================
   REPLY FORM
   ============================================================ */
#new-reply,
.bbp-reply-form {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
}
.bbp-reply-form h3,
#new-reply > h3 {
    font-family: var(--font-display);
    font-size: 15px; color: var(--text-bright);
    padding: 10px 14px; margin: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-bar);
}
.bbp-the-content-wrapper { padding: 0; }
.bbp-the-content-wrapper textarea {
    border: none; border-radius: 0;
    background: var(--bg-deep);
    padding: 12px 14px; min-height: 120px;
    border-bottom: 1px solid var(--border);
}
.bbp-submit-wrapper {
    padding: 8px 12px;
    background: var(--bg-bar);
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
.bbp-submit-wrapper .btn-subscribe-toggle { font-size: 12px; color: var(--text-muted); }

/* New topic form */
#new-topic,
.bbp-topic-form {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 12px;
}
#new-topic h3,
.bbp-topic-form h3 {
    font-family: var(--font-display);
    font-size: 18px; color: var(--text-bright);
    margin-bottom: 16px; font-weight: 600;
}

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.widget { margin-bottom: 16px; }
.widget-title {
    font-size: 10px; font-weight: 500;
    color: var(--text-muted); letter-spacing: 0.07em;
    text-transform: uppercase; margin-bottom: 8px;
    padding-bottom: 6px; border-bottom: 1px solid var(--border-dim);
}
.widget ul { list-style: none; padding: 0; }
.widget ul li {
    display: flex; justify-content: space-between;
    padding: 5px 0; border-bottom: 1px solid var(--border-dim);
    font-size: 12px; color: var(--text-muted);
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--accent); }
.widget ul li a:hover { color: #7ab8e8; }
.widget ul li strong { color: var(--text); }

/* bbPress native widgets */
.bbp-forums-widget li,
.bbp-topics-widget li,
.bbp-stats-widget td {
    font-size: 12px; color: var(--text-muted);
    border-bottom: 1px solid var(--border-dim); padding: 5px 0;
}
.bbp-stats-widget table { width: 100%; }
.bbp-stats-widget td:last-child { text-align: right; color: var(--text); font-weight: 500; }

/* Sidebar "New Discussion" button */
.sidebar-new-topic {
    display: block; background: var(--accent); color: #fff;
    border: none; padding: 8px 0; width: 100%;
    border-radius: 3px; font-size: 12px; cursor: pointer;
    text-align: center; margin-bottom: 12px;
    font-family: var(--font-body); transition: opacity 0.15s;
}
.sidebar-new-topic:hover { opacity: 0.85; text-decoration: none; color: #fff; }

/* ============================================================
   USER PROFILE PAGES
   ============================================================ */
.bbp-user-section { margin-bottom: 24px; }
.bbp-user-section h2 {
    font-family: var(--font-display);
    font-size: 16px; color: var(--text-bright);
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 8px; margin-bottom: 12px;
}
.bbp-user-details { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.bbp-user-details img { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border); }
.bbp-user-role-label { font-size: 11px; color: var(--text-muted); }

/* ============================================================
   SEARCH FORM & RESULTS
   ============================================================ */
.bbp-search-form { display: flex; gap: 8px; margin-bottom: 16px; }
.bbp-search-form input[type="text"] { flex: 1; }
.bbp-search-form input[type="submit"] { flex-shrink: 0; width: auto; }

/* ============================================================
   EMPTY STATES
   ============================================================ */
.bbp-template-notice,
.bbp-forum-empty,
.bbp-topics-empty,
.bbp-replies-empty {
    padding: 40px; text-align: center;
    color: var(--text-muted); font-size: 13px;
    border: 1px solid var(--border-dim); border-radius: var(--radius);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    text-align: center; padding: 20px;
    font-size: 11px; color: var(--text-dim);
    border-top: 1px solid var(--border-dim);
    margin-top: 40px;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ============================================================
   STANDARD WP CONTENT (pages, posts)
   ============================================================ */
.entry-header { margin-bottom: 20px; }
.entry-title { font-size: 26px; }
.entry-content { font-size: 14px; line-height: 1.8; color: var(--text); }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin: 20px 0 10px; }
.entry-content p { margin-bottom: 14px; }
.entry-content ul,
.entry-content ol { padding-left: 20px; margin-bottom: 14px; list-style: revert; }
.entry-content code {
    background: var(--bg-deep); border: 1px solid var(--border);
    padding: 1px 5px; border-radius: 2px; font-size: 12px;
}
.entry-content pre {
    background: var(--bg-deep); border: 1px solid var(--border);
    border-radius: 3px; padding: 12px 14px; overflow-x: auto;
    font-size: 12px; margin-bottom: 14px;
}
.entry-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 8px 14px; background: var(--bg-panel);
    color: var(--text-muted); margin: 14px 0;
    border-radius: 0 3px 3px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .site-content { flex-direction: column; padding: 10px; }
    .widget-area { width: 100%; }
    .bbp-reply-author,
    .bbp-topic-author { flex-wrap: wrap; }
    .main-navigation { display: none; }
    .subforum-nav { padding: 0 10px; }
}
