/* ==========================================================================
   MikroWizard bbPress / GD bbPress / BBP Style Pack Modern Design System
   (Unified, Clean, Conflict-Free Dual Theme Stylesheet)
   ========================================================================== */

/* ── Full Desktop Width ── */
body.bbpress .container,
body.forum-archive .container,
body.single-topic .container,
body.single-forum .container,
body:has(#bbpress-forums) .container,
.bbpress-theme-container {
  max-width: 1440px !important;
  width: 95% !important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
}

#bbpress-forums {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
  color: var(--text-secondary, #CBD5E1) !important;
  font-size: 0.9rem !important;
  line-height: 1.6 !important;
  background: transparent !important;
}

/* ── Breadcrumb ── */
.bbp-breadcrumb {
  margin-bottom: 20px !important;
  font-size: 0.82rem !important;
  color: var(--text-muted, #64748B) !important;
}

.bbp-breadcrumb p {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

.bbp-breadcrumb a {
  color: #38BDF8 !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease !important;
}

.bbp-breadcrumb a:hover {
  color: #01A2FF !important;
}

.bbp-breadcrumb .bbp-breadcrumb-sep {
  color: var(--text-muted, #64748B) !important;
  opacity: 0.5 !important;
}

.bbp-breadcrumb .bbp-breadcrumb-current {
  color: var(--text-primary, #FFFFFF) !important;
  font-weight: 600 !important;
}

/* ── Search Form ── */
.bbp-search-form {
  float: right !important;
  margin-bottom: 18px !important;
}

.bbp-search-form form div {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

#bbp_search {
  background: #081120 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 7px 12px !important;
  font-size: 0.84rem !important;
  line-height: 1.4 !important;
  outline: none !important;
  min-width: 200px !important;
  transition: all 0.2s ease !important;
}

#bbp_search:focus {
  border-color: #01A2FF !important;
  box-shadow: 0 0 0 3px rgba(1, 162, 255, 0.2) !important;
}

#bbp_search_submit {
  background: linear-gradient(135deg, #01A2FF 0%, #0067CC 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 7px 16px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 2px 8px rgba(1, 162, 255, 0.3) !important;
}

#bbp_search_submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 14px rgba(1, 162, 255, 0.45) !important;
}

/* ── Forum & Topic Tables Architecture (Soft Translucent Borders) ── */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  background: #0B1321 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 26px !important;
  list-style: none !important;
  padding: 0 !important;
  clear: both !important;
}

/* Header Row */
#bbpress-forums li.bbp-header {
  background: #080E1A !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding: 12px 18px !important;
  color: #64748B !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

#bbpress-forums li.bbp-header ul.forum-titles,
#bbpress-forums li.bbp-header ul.topic-titles {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

li.bbp-forum-info,
li.bbp-topic-title {
  flex: 1 !important;
}

li.bbp-forum-topic-count,
li.bbp-forum-reply-count,
li.bbp-topic-voice-count,
li.bbp-topic-reply-count {
  width: 85px !important;
  text-align: center !important;
}

li.bbp-forum-freshness,
li.bbp-topic-freshness {
  width: 200px !important;
  text-align: left !important;
  padding-left: 15px !important;
}

/* Forum & Topic Rows with subtle soft-opacity top border */
li.bbp-body {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums ul.forum,
#bbpress-forums ul.topic {
  display: flex !important;
  align-items: center !important;
  padding: 14px 18px !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: none !important;
  list-style: none !important;
  margin: 0 !important;
  transition: background-color 0.15s ease !important;
  background: #0B1321 !important;
}

/* first-row border-top none removed */

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
  background: rgba(1, 162, 255, 0.03) !important;
}

/* Titles */
a.bbp-forum-title,
a.bbp-topic-permalink {
  color: #38BDF8 !important;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: color 0.15s ease !important;
}

a.bbp-forum-title:hover,
a.bbp-topic-permalink:hover {
  color: #01A2FF !important;
}

.bbp-forum-content,
.bbp-topic-meta {
  color: #94A3B8 !important;
  font-size: 0.8rem !important;
  margin-top: 3px !important;
}

.bbp-topic-meta a {
  color: #38BDF8 !important;
  text-decoration: none !important;
}

/* Count Pills */
li.bbp-body .bbp-forum-topic-count,
li.bbp-body .bbp-forum-reply-count,
li.bbp-body .bbp-topic-voice-count,
li.bbp-body .bbp-topic-reply-count {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #CBD5E1 !important;
}

/* Freshness Column */
li.bbp-body .bbp-forum-freshness,
li.bbp-body .bbp-topic-freshness {
  font-size: 0.78rem !important;
  color: #94A3B8 !important;
}

li.bbp-body .bbp-forum-freshness a,
li.bbp-body .bbp-topic-freshness a {
  color: #38BDF8 !important;
  text-decoration: none !important;
}

.bbp-author-avatar img {
  border-radius: 50% !important;
  vertical-align: middle !important;
  margin-right: 6px !important;
  border: 1px solid rgba(1, 162, 255, 0.3) !important;
}

/* ── Single Topic Replies ── */
#bbpress-forums ul.bbp-replies {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

ul.bbp-replies-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Reply Post Card */
div.bbp-reply-header {
  background: #080E1A !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 10px 10px 0 0 !important;
  padding: 10px 18px !important;
  margin-top: 16px !important;
}

div.bbp-reply-header .bbp-meta {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.78rem !important;
  color: #94A3B8 !important;
}

span.bbp-reply-post-date {
  color: #94A3B8 !important;
}

a.bbp-reply-permalink {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 0.74rem !important;
  color: #38BDF8 !important;
  background: rgba(56, 189, 248, 0.1) !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  text-decoration: none !important;
}

.bbp-admin-links a {
  color: #64748B !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
  margin-left: 8px !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.bbp-admin-links a:hover {
  color: #38BDF8 !important;
}

/* Post Body Container */
div.hentry,
div.bbp-reply-position-1,
div.type-reply {
  background: #0B1321 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  padding: 20px 18px !important;
  margin-bottom: 14px !important;
  display: flex !important;
  gap: 20px !important;
  align-items: flex-start !important;
}

/* Author Column */
div.bbp-reply-author {
  width: 150px !important;
  flex-shrink: 0 !important;
  text-align: center !important;
}

div.bbp-reply-author img.avatar {
  border-radius: 50% !important;
  border: 2px solid rgba(1, 162, 255, 0.35) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
  margin: 0 auto 8px !important;
  display: block !important;
}

div.bbp-reply-author a.bbp-author-name {
  color: #FFFFFF !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: block !important;
  margin-bottom: 4px !important;
}

div.bbp-reply-author a.bbp-author-name:hover {
  color: #01A2FF !important;
}

div.bbp-author-role {
  display: inline-block !important;
  background: rgba(1, 162, 255, 0.12) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(1, 162, 255, 0.25) !important;
  border-radius: 12px !important;
  padding: 2px 8px !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-top: 4px !important;
}

/* Post Content */
div.bbp-reply-content {
  flex: 1 !important;
  color: #CBD5E1 !important;
  font-size: 0.9rem !important;
  line-height: 1.68 !important;
  min-width: 0 !important;
}

div.bbp-reply-content p {
  margin: 0 0 14px 0 !important;
}

div.bbp-reply-content a {
  color: #38BDF8 !important;
  text-decoration: underline !important;
}

div.bbp-reply-content pre,
div.bbp-reply-content code {
  font-family: 'JetBrains Mono', monospace !important;
  background: #060F1E !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #38BDF8 !important;
  border-radius: 6px !important;
  font-size: 0.82rem !important;
}

div.bbp-reply-content pre {
  padding: 12px 16px !important;
  overflow-x: auto !important;
  margin: 14px 0 !important;
}

div.bbp-reply-content code {
  padding: 2px 5px !important;
}

div.bbp-reply-content blockquote {
  border-left: 3px solid #01A2FF !important;
  background: rgba(1, 162, 255, 0.04) !important;
  color: #94A3B8 !important;
  padding: 10px 16px !important;
  border-radius: 0 6px 6px 0 !important;
  margin: 14px 0 !important;
}

/* ── GD BBPRESS THANKS BOX (Strict Hidden when 0 Thanks) ── */
#bbpress-forums .gdbbx-thanks-wrapper {
  display: none !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

#bbpress-forums .gdbbx-thanks-wrapper:has(.gdbbx-said-thanks),
#bbpress-forums .gdbbx-thanks-wrapper:has(.gdbbx-thanks-list a) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 12px !important;
  border: 1px solid rgba(1, 162, 255, 0.15) !important;
  background: rgba(1, 162, 255, 0.04) !important;
  border-radius: 8px !important;
  margin-top: 14px !important;
  padding: 8px 14px !important;
}

#bbpress-forums .gdbbx-said-thanks {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 10px !important;
  width: 100% !important;
}

#bbpress-forums .gdbbx-said-thanks h6 {
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  color: #94A3B8 !important;
  margin: 0 !important;
  line-height: 1.4 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: inline-flex !important;
  align-items: center !important;
}

#bbpress-forums .gdbbx-said-thanks h6::before {
  content: "👍" !important;
  margin-right: 6px !important;
  font-size: 0.85rem !important;
}

#bbpress-forums .gdbbx-thanks-wrapper .gdbbx-thanks-list {
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  line-height: normal !important;
  margin: 0 !important;
}

#bbpress-forums .gdbbx-thanks-wrapper .gdbbx-thanks-list a {
  color: #38BDF8 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  text-decoration: none !important;
}

#bbpress-forums .gdbbx-thanks-wrapper .gdbbx-thanks-list a:hover {
  color: #01A2FF !important;
}

#bbpress-forums .gdbbx-thanks-wrapper .gdbbx-thanks-list .avatar {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 1px solid rgba(1, 162, 255, 0.35) !important;
  margin: 0 !important;
}

/* Footer Meta Box */
#bbpress-forums .gdbbx-footer-meta {
  background: #080E1A !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  margin-top: 14px !important;
  font-size: 0.76rem !important;
  color: #94A3B8 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

#bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links a,
#bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links span {
  color: #64748B !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  margin-left: 10px !important;
}

#bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links a:hover {
  color: #38BDF8 !important;
}

/* ── Reply / Topic Creation Form ── */
#new-post,
.bbp-reply-form,
.bbp-topic-form {
  background: #0B1321 !important;
  border: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-radius: 14px !important;
  padding: 28px !important;
  margin-top: 30px !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2) !important;
  clear: both !important;
}

.bbp-reply-form legend,
.bbp-topic-form legend,
.bbp-form legend {
  color: #FFFFFF !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-bottom: 18px !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
}

.bbp-form fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.bbp-form label {
  color: #CBD5E1 !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  display: block !important;
  margin-bottom: 5px !important;
}

.bbp-form p:has(input[type="checkbox"]) {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
}

.bbp-form p:has(input[type="checkbox"]) label {
  display: inline-block !important;
  margin: 0 !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

.bbp-form p:has(input[type="checkbox"]) br {
  display: none !important;
}

.bbp-form input[type="checkbox"] {
  accent-color: #01A2FF !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.bbp-form input[type="text"],
.bbp-form select,
.bbp-the-content-wrapper textarea {
  background: #060F1E !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.bbp-form input[type="text"]:focus,
.bbp-the-content-wrapper textarea:focus {
  border-color: #01A2FF !important;
  box-shadow: 0 0 0 3px rgba(1, 162, 255, 0.2) !important;
}

.bbp-the-content-wrapper {
  margin-bottom: 18px !important;
}

/* ── GD bbPress Toolbox Toolbar in Dark Mode (Fix White Toolbar) ── */
.gdbbx-bbcodes-toolbar,
.quicktags-toolbar {
  background-color: #080E1A !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 5px 8px !important;
}

.gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button {
  border: 1px solid transparent !important;
  background: transparent !important;
}

.gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button button.gdbbx-button,
.gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button button.gdbbx-button i {
  color: #94A3B8 !important;
}

.gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button:hover {
  background-color: rgba(1, 162, 255, 0.15) !important;
  border: 1px solid rgba(1, 162, 255, 0.3) !important;
  border-radius: 4px !important;
}

.gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button:hover button.gdbbx-button,
.gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button:hover button.gdbbx-button i {
  color: #38BDF8 !important;
}

.quicktags-toolbar input.button {
  background: #0D1B2E !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #CBD5E1 !important;
  border-radius: 5px !important;
  padding: 3px 8px !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  margin: 2px !important;
}

.quicktags-toolbar input.button:hover {
  background: #01A2FF !important;
  color: #FFFFFF !important;
}

#bbp_topic_submit,
#bbp_reply_submit {
  background: linear-gradient(135deg, #01A2FF 0%, #0067CC 100%) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 11px 28px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(1, 162, 255, 0.35) !important;
  float: right !important;
  margin-top: 14px !important;
}

#bbp_topic_submit:hover,
#bbp_reply_submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 22px rgba(1, 162, 255, 0.5) !important;
}

/* Checkboxes */
.bbp-form input[type="checkbox"] {
  accent-color: #01A2FF !important;
  width: 15px !important;
  height: 15px !important;
  margin-right: 8px !important;
  vertical-align: middle !important;
}

/* ── Pagination & Notices ── */
.bbp-pagination {
  margin: 14px 0 !important;
  font-size: 0.82rem !important;
  color: #94A3B8 !important;
}

.bbp-pagination-links a,
.bbp-pagination-links span.current {
  display: inline-block !important;
  padding: 4px 10px !important;
  border-radius: 5px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  margin: 0 2px !important;
}

.bbp-pagination-links a {
  background: #081120 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #CBD5E1 !important;
}

.bbp-pagination-links span.current {
  background: #01A2FF !important;
  color: #FFFFFF !important;
}

.bbp-template-notice.info {
  background: rgba(1, 162, 255, 0.07) !important;
  border: 1px solid rgba(1, 162, 255, 0.18) !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
  color: #38BDF8 !important;
  font-size: 0.84rem !important;
  margin-bottom: 18px !important;
}

.bbp-topic-tags a {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  padding: 2px 9px !important;
  font-size: 0.74rem !important;
  text-decoration: none !important;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES FOR BBPRESS
   ========================================================================== */
[data-theme="light"] #bbpress-forums,
html.theme-light #bbpress-forums {
  color: #334155 !important;
}

[data-theme="light"] .bbp-breadcrumb .bbp-breadcrumb-current,
html.theme-light .bbp-breadcrumb .bbp-breadcrumb-current {
  color: #0F172A !important;
}

[data-theme="light"] #bbp_search,
html.theme-light #bbp_search {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] #bbpress-forums ul.bbp-forums,
[data-theme="light"] #bbpress-forums ul.bbp-topics,
html.theme-light #bbpress-forums ul.bbp-forums,
html.theme-light #bbpress-forums ul.bbp-topics {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] #bbpress-forums li.bbp-header,
html.theme-light #bbpress-forums li.bbp-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}

[data-theme="light"] #bbpress-forums li.bbp-body ul.forum,
[data-theme="light"] #bbpress-forums li.bbp-body ul.topic,
[data-theme="light"] #bbpress-forums ul.forum,
[data-theme="light"] #bbpress-forums ul.topic,
html.theme-light #bbpress-forums li.bbp-body ul.forum,
html.theme-light #bbpress-forums li.bbp-body ul.topic {
  background: #FFFFFF !important;
  border-top: 1px solid #F1F5F9 !important;
}

/* removed */

[data-theme="light"] #bbpress-forums li.bbp-body ul.forum:hover,
[data-theme="light"] #bbpress-forums li.bbp-body ul.topic:hover,
html.theme-light #bbpress-forums li.bbp-body ul.forum:hover,
html.theme-light #bbpress-forums li.bbp-body ul.topic:hover {
  background: #F8FAFC !important;
}

[data-theme="light"] a.bbp-forum-title,
[data-theme="light"] a.bbp-topic-permalink,
html.theme-light a.bbp-forum-title,
html.theme-light a.bbp-topic-permalink {
  color: #0284C7 !important;
}

[data-theme="light"] .bbp-forum-content,
[data-theme="light"] .bbp-topic-meta,
html.theme-light .bbp-forum-content,
html.theme-light .bbp-topic-meta {
  color: #64748B !important;
}

[data-theme="light"] li.bbp-body .bbp-forum-topic-count,
[data-theme="light"] li.bbp-body .bbp-forum-reply-count,
[data-theme="light"] li.bbp-body .bbp-topic-voice-count,
[data-theme="light"] li.bbp-body .bbp-topic-reply-count,
html.theme-light li.bbp-body .bbp-forum-topic-count,
html.theme-light li.bbp-body .bbp-forum-reply-count {
  color: #0F172A !important;
}

[data-theme="light"] li.bbp-body .bbp-forum-freshness,
[data-theme="light"] li.bbp-body .bbp-topic-freshness,
html.theme-light li.bbp-body .bbp-forum-freshness,
html.theme-light li.bbp-body .bbp-topic-freshness {
  color: #64748B !important;
}

[data-theme="light"] li.bbp-body .bbp-forum-freshness a,
[data-theme="light"] li.bbp-body .bbp-topic-freshness a,
html.theme-light li.bbp-body .bbp-forum-freshness a,
html.theme-light li.bbp-body .bbp-topic-freshness a {
  color: #0284C7 !important;
}

/* Light Mode Reply Post Cards */
[data-theme="light"] div.bbp-reply-header,
html.theme-light div.bbp-reply-header {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

[data-theme="light"] a.bbp-reply-permalink,
html.theme-light a.bbp-reply-permalink {
  background: #F1F5F9 !important;
  color: #0284C7 !important;
}

[data-theme="light"] div.hentry,
[data-theme="light"] div.bbp-reply-position-1,
[data-theme="light"] div.type-reply,
html.theme-light div.hentry,
html.theme-light div.bbp-reply-position-1,
html.theme-light div.type-reply {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-top: none !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] div.bbp-reply-author a.bbp-author-name,
html.theme-light div.bbp-reply-author a.bbp-author-name {
  color: #0F172A !important;
}

[data-theme="light"] div.bbp-author-role,
html.theme-light div.bbp-author-role {
  background: #EFF6FF !important;
  color: #1D4ED8 !important;
  border: 1px solid #DBEAFE !important;
}

[data-theme="light"] div.bbp-reply-content,
html.theme-light div.bbp-reply-content {
  color: #334155 !important;
}

[data-theme="light"] div.bbp-reply-content pre,
[data-theme="light"] div.bbp-reply-content code,
html.theme-light div.bbp-reply-content pre,
html.theme-light div.bbp-reply-content code {
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] div.bbp-reply-content blockquote,
html.theme-light div.bbp-reply-content blockquote {
  background: #F8FAFC !important;
  border-left-color: #01A2FF !important;
  color: #475569 !important;
}

/* Light Mode Thanks Box */
[data-theme="light"] #bbpress-forums .gdbbx-thanks-wrapper:has(.gdbbx-said-thanks),
[data-theme="light"] #bbpress-forums .gdbbx-thanks-wrapper:has(.gdbbx-thanks-list a),
html.theme-light #bbpress-forums .gdbbx-thanks-wrapper:has(.gdbbx-said-thanks),
html.theme-light #bbpress-forums .gdbbx-thanks-wrapper:has(.gdbbx-thanks-list a) {
  background: #F0F9FF !important;
  border: 1px solid #BAE6FD !important;
}

[data-theme="light"] #bbpress-forums .gdbbx-said-thanks h6,
html.theme-light #bbpress-forums .gdbbx-said-thanks h6 {
  color: #0369A1 !important;
}

[data-theme="light"] #bbpress-forums .gdbbx-thanks-wrapper .gdbbx-thanks-list a,
html.theme-light #bbpress-forums .gdbbx-thanks-wrapper .gdbbx-thanks-list a {
  color: #0284C7 !important;
}

/* Light Mode Footer Meta */
[data-theme="light"] #bbpress-forums .gdbbx-footer-meta,
html.theme-light #bbpress-forums .gdbbx-footer-meta {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
}

[data-theme="light"] #bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links a,
html.theme-light #bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links a {
  color: #64748B !important;
}

[data-theme="light"] #bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links a:hover,
html.theme-light #bbpress-forums .gdbbx-footer-meta .gdbbx-admin-links a:hover {
  color: #0284C7 !important;
}

/* Light Mode Form & Toolbars */
[data-theme="light"] #new-post,
[data-theme="light"] .bbp-reply-form,
[data-theme="light"] .bbp-topic-form,
html.theme-light #new-post,
html.theme-light .bbp-reply-form,
html.theme-light .bbp-topic-form {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .bbp-reply-form legend,
[data-theme="light"] .bbp-topic-form legend,
html.theme-light .bbp-reply-form legend,
html.theme-light .bbp-topic-form legend {
  color: #0F172A !important;
}

[data-theme="light"] .bbp-form label,
html.theme-light .bbp-form label {
  color: #475569 !important;
}

[data-theme="light"] .bbp-form input[type="text"],
[data-theme="light"] .bbp-form select,
[data-theme="light"] .bbp-the-content-wrapper textarea,
html.theme-light .bbp-form input[type="text"],
html.theme-light .bbp-form select,
html.theme-light .bbp-the-content-wrapper textarea {
  background: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  color: #0F172A !important;
}

[data-theme="light"] .gdbbx-bbcodes-toolbar,
[data-theme="light"] .quicktags-toolbar,
html.theme-light .gdbbx-bbcodes-toolbar,
html.theme-light .quicktags-toolbar {
  background-color: #F8FAFC !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button button.gdbbx-button,
[data-theme="light"] .gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button button.gdbbx-button i,
html.theme-light .gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button button.gdbbx-button,
html.theme-light .gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button button.gdbbx-button i {
  color: #64748B !important;
}

[data-theme="light"] .gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button:hover,
html.theme-light .gdbbx-bbcodes-toolbar .gdbbx-buttonbar-button:hover {
  background-color: #FFFFFF !important;
  border-color: #CBD5E1 !important;
}

[data-theme="light"] .quicktags-toolbar input.button,
html.theme-light .quicktags-toolbar input.button {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #334155 !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  li.bbp-forum-topic-count,
  li.bbp-forum-reply-count,
  li.bbp-topic-voice-count,
  li.bbp-topic-reply-count {
    display: none !important;
  }
  li.bbp-forum-freshness,
  li.bbp-topic-freshness {
    width: 130px !important;
  }
  div.hentry,
  div.type-reply {
    flex-direction: column !important;
  }
  div.bbp-reply-author {
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
  }
  div.bbp-reply-author img.avatar {
    margin: 0 !important;
    width: 42px !important;
    height: 42px !important;
  }
  .bbp-search-form {
    float: none !important;
    width: 100% !important;
  }
  #bbp_search {
    width: 100% !important;
  }
}

/* ==========================================================================
   FORUM ROWS TOP BORDER LOGIC & BBP FOOTER STYLING
   ========================================================================== */

/* Apply subtle border-top to ALL forum and topic rows */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums ul.forum,
#bbpress-forums ul.topic {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
}

/* Remove border-top ONLY from the very first row right below the header */
/* removed */

/* Footer Row Styling (Dark Mode) */
#bbpress-forums li.bbp-footer {
  background: #080E1A !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  border-bottom: none !important;
  padding: 10px 18px !important;
  color: #64748B !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

#bbpress-forums li.bbp-footer ul.forum-titles,
#bbpress-forums li.bbp-footer ul.topic-titles {
  display: flex !important;
  align-items: center !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Light Theme Overrides for Rows & Footer */
[data-theme="light"] #bbpress-forums li.bbp-body ul.forum,
[data-theme="light"] #bbpress-forums li.bbp-body ul.topic,
[data-theme="light"] #bbpress-forums ul.forum,
[data-theme="light"] #bbpress-forums ul.topic,
html.theme-light #bbpress-forums li.bbp-body ul.forum,
html.theme-light #bbpress-forums li.bbp-body ul.topic {
  border-top: 1px solid #F1F5F9 !important;
}

/* removed */

[data-theme="light"] #bbpress-forums li.bbp-footer,
html.theme-light #bbpress-forums li.bbp-footer {
  background: #F8FAFC !important;
  border-top: 1px solid #E2E8F0 !important;
  color: #475569 !important;
}
