/* =============================================================================
   bbPress — on-brand forum styling. Loaded on bbPress views (inc/enqueue.php).
   Overrides bbPress's default light theme; palette + fonts from style.css :root.
   ============================================================================= */

#bbpress-forums { max-width: 1000px; margin-inline: auto; font-family: var(--fontBody); }
#bbpress-forums .bbp-breadcrumb { font-family: var(--fontTechno); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--colorTextFaint); margin-bottom: 1.25rem; }
#bbpress-forums .bbp-breadcrumb a { color: var(--colorTextMuted); }
#bbpress-forums .bbp-breadcrumb a:hover { color: var(--colorBloodBright); }

/* Headers / footers on list tables */
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header,
#bbpress-forums ul.bbp-forums li.bbp-header,
#bbpress-forums ul.bbp-topics li.bbp-header,
#bbpress-forums ul.bbp-replies li.bbp-header {
  background: var(--colorSurfaceRaise); border: 1px solid var(--colorBorder);
  color: var(--colorTextMuted); font-family: var(--fontTechno); text-transform: uppercase; letter-spacing: .06em; font-size: .76rem;
}
#bbpress-forums li.bbp-footer { background: var(--colorSurfaceRaise); border: 1px solid var(--colorBorder); color: var(--colorTextMuted); }

/* Rows / list items */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-lead-topic { background: var(--colorSurface); border: 1px solid var(--colorBorder); border-radius: var(--radius); overflow: hidden; }
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--colorBorder); }
/* bbPress zebra-stripes with `even`/`odd` on the row's own <ul> (and on <div> in
   some views). bbpress.min.css paints those near-white, which hid the white forum
   titles entirely — match every element it can land on. */
#bbpress-forums li.bbp-body ul.even,
#bbpress-forums li.bbp-body div.even,
#bbpress-forums li.bbp-body li.even { background: var(--colorSurface); }
#bbpress-forums li.bbp-body ul.odd,
#bbpress-forums li.bbp-body div.odd,
#bbpress-forums li.bbp-body li.odd { background: #0a0b0c; }
#bbpress-forums li.bbp-body { background: var(--colorSurface); }
/* bbPress's own "loop-item-N" striping is what actually renders here. */
#bbpress-forums li.bbp-body ul[class*="loop-item-"]:nth-child(even) { background: var(--colorSurface); }
#bbpress-forums li.bbp-body ul[class*="loop-item-"]:nth-child(odd) { background: #0a0b0c; }

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink { font-family: var(--fontDisplay); font-size: 1.15rem; color: #fff; }
#bbpress-forums a.bbp-forum-title:hover,
#bbpress-forums a.bbp-topic-permalink:hover { color: var(--colorBloodBright); }
#bbpress-forums .bbp-forum-content,
#bbpress-forums p.bbp-topic-meta,
#bbpress-forums .bbp-forum-description { color: var(--colorTextMuted); }
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a { color: var(--colorTextMuted); }
#bbpress-forums span.bbp-forum-topic-count,
#bbpress-forums span.bbp-forum-reply-count,
#bbpress-forums span.bbp-topic-voice-count,
#bbpress-forums span.bbp-topic-reply-count { color: #fff; font-family: var(--fontTechno); }

/* Single topic + replies */
#bbpress-forums div.bbp-reply-author,
#bbpress-forums div.bbp-topic-author { background: var(--colorSurfaceRaise); }
#bbpress-forums div.bbp-reply-author .bbp-author-name,
#bbpress-forums div.bbp-topic-author .bbp-author-name { color: #fff; font-family: var(--fontTechno); }
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content { color: var(--colorText); }
#bbpress-forums div.bbp-reply-content a,
#bbpress-forums div.bbp-topic-content a { color: var(--colorBloodBright); text-decoration: underline; }

/* Notices */
#bbpress-forums div.bbp-template-notice { background: var(--colorSurface); border: 1px solid var(--colorBorder); border-left: 3px solid var(--colorBloodBright); color: var(--colorText); border-radius: var(--radius); }
#bbpress-forums div.bbp-template-notice.error { border-left-color: var(--colorBloodBright); background: var(--colorSurfaceBlood); }

/* Forms */
#bbpress-forums fieldset.bbp-form { background: var(--colorSurface); border: 1px solid var(--colorBorder); border-radius: var(--radius); padding: 1.5rem 1.75rem; }
#bbpress-forums fieldset.bbp-form legend { color: #fff; font-family: var(--fontDisplay); font-size: 1.4rem; padding: 0 .5rem; }
#bbpress-forums fieldset.bbp-form label { font-family: var(--fontTechno); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--colorTextMuted); }
#bbpress-forums input[type="text"], #bbpress-forums input[type="email"], #bbpress-forums input[type="password"], #bbpress-forums textarea, #bbpress-forums select {
  background: var(--colorSurface) !important; border: 1px solid var(--colorBorderSoft) !important; color: #fff !important; border-radius: var(--radius);
}
#bbpress-forums div.bbp-the-content-wrapper textarea.bbp-the-content { background: var(--colorSurface); color: #fff; border: 1px solid var(--colorBorderSoft); }
#bbpress-forums div.bbp-submit-wrapper button,
#bbpress-forums button.submit,
#bbpress-forums .bbp-topic-form input[type="submit"],
#bbpress-forums .bbp-reply-form input[type="submit"],
.bbp-login-form input[type="submit"] {
  font-family: var(--fontTechno); text-transform: uppercase; letter-spacing: .1em; font-weight: 600;
  color: #fff; border: 1px solid var(--colorBlood); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--colorBlood), var(--colorBloodDark)); padding: .8em 1.6em; cursor: pointer;
}
#bbpress-forums button.submit:hover { box-shadow: var(--shadowBlood); }

/* Pagination + buttons */
#bbpress-forums .bbp-pagination .page-numbers { background: var(--colorSurface); border: 1px solid var(--colorBorder); color: #fff; border-radius: var(--radius); padding: .4rem .7rem; }
#bbpress-forums .bbp-pagination .page-numbers.current { background: var(--colorBloodDark); border-color: var(--colorBlood); }
.bbp-topic-tags a { color: var(--colorBloodBright); }
