/* LNC Accounts: dark styling for bbPress. Loads on forum pages only.
   bbPress ships a light-gray table; on a dark theme that left white text on near-white. */

#bbpress-forums {
  --lf-void: #060a0f; --lf-panel: #0c1319; --lf-alt: #0e171f; --lf-raised: #101a23;
  --lf-line: #1d2a36; --lf-line-hi: #2a3b4c;
  --lf-text: #e8eef4; --lf-mut: #8ea1b3;
  --lf-cyan: #35e0ff; --lf-gold: #ffb02e; --lf-red: #ff3d4e; --lf-green: #35d98b;
  color: var(--lf-text);
  font-size: 15px;
  line-height: 1.55;
}

/* the floating "Spoiler Alerts" button belongs to the Big Brother pages, not the forum */
#lnc-spoiler-subscribe { display: none !important; }

/* links */
#bbpress-forums a { color: var(--lf-cyan); text-decoration: none; }
#bbpress-forums a:hover { text-decoration: underline; }
#bbpress-forums a.bbp-forum-title,
#bbpress-forums a.bbp-topic-permalink { color: var(--lf-text); font-weight: 600; font-size: 16px; }
#bbpress-forums a.bbp-forum-title:hover,
#bbpress-forums a.bbp-topic-permalink:hover { color: var(--lf-cyan); }

/* breadcrumb and search */
#bbpress-forums .bbp-breadcrumb,
#bbpress-forums .bbp-breadcrumb p,
#bbpress-forums .bbp-breadcrumb-sep { color: var(--lf-mut); }
#bbpress-forums .bbp-search-form input[type="text"] { min-width: 200px; }

/* the boxes (forum list, topic list, replies) */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-search-results {
  background: var(--lf-panel) !important;
  border: 1px solid var(--lf-line) !important;
  border-radius: 8px;
  overflow: hidden;
  font-size: 14px;
  color: var(--lf-text);
}
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: var(--lf-raised) !important;
  color: var(--lf-mut) !important;
  border-color: var(--lf-line) !important;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
#bbpress-forums li.bbp-header *,
#bbpress-forums li.bbp-footer * { color: inherit !important; }
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic { border-top: 1px solid var(--lf-line) !important; padding: 12px 8px; }
#bbpress-forums .even,
#bbpress-forums ul.even { background: var(--lf-panel) !important; }
#bbpress-forums .odd,
#bbpress-forums ul.odd { background: var(--lf-alt) !important; }
#bbpress-forums ul.sticky,
#bbpress-forums ul.super-sticky { background: var(--lf-raised) !important; }
#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-title,
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-content { color: var(--lf-text); }
#bbpress-forums li.bbp-forum-topic-count,
#bbpress-forums li.bbp-forum-reply-count,
#bbpress-forums li.bbp-forum-freshness,
#bbpress-forums li.bbp-topic-voice-count,
#bbpress-forums li.bbp-topic-reply-count,
#bbpress-forums li.bbp-topic-freshness,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-topic-started-by,
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a { color: var(--lf-mut); }

/* single topic: headers and reply cards */
#bbpress-forums div.bbp-forum-header,
#bbpress-forums div.bbp-topic-header,
#bbpress-forums div.bbp-reply-header {
  background: var(--lf-raised) !important;
  border-color: var(--lf-line) !important;
  color: var(--lf-mut);
}
#bbpress-forums div.bbp-reply-header a.bbp-reply-permalink,
#bbpress-forums .bbp-meta { color: var(--lf-mut); }
#bbpress-forums div.bbp-reply-author a.bbp-author-name,
#bbpress-forums div.bbp-topic-author a.bbp-author-name { color: var(--lf-text); font-weight: 600; }
#bbpress-forums .bbp-author-role { color: var(--lf-mut); font-size: 12px; }
#bbpress-forums div.bbp-reply-content,
#bbpress-forums div.bbp-topic-content { color: var(--lf-text); }
#bbpress-forums div.bbp-reply-content blockquote,
#bbpress-forums div.bbp-topic-content blockquote {
  border-left: 3px solid var(--lf-line-hi); margin-left: 0; padding-left: 14px; color: var(--lf-mut);
}
#bbpress-forums div.bbp-reply-content code,
#bbpress-forums div.bbp-topic-content code,
#bbpress-forums div.bbp-reply-content pre,
#bbpress-forums div.bbp-topic-content pre {
  background: var(--lf-void); color: var(--lf-text); border: 1px solid var(--lf-line);
}

/* notices */
#bbpress-forums div.bbp-template-notice,
#bbpress-forums div.indicator-hint {
  background: var(--lf-raised) !important;
  border: 1px solid var(--lf-gold) !important;
  color: var(--lf-text) !important;
  border-radius: 6px;
}
#bbpress-forums div.bbp-template-notice.error,
#bbpress-forums div.bbp-template-notice.warning { border-color: var(--lf-red) !important; }
#bbpress-forums div.bbp-template-notice p,
#bbpress-forums div.bbp-template-notice li { color: inherit !important; }

/* forms */
#bbpress-forums fieldset.bbp-form {
  background: var(--lf-panel);
  border: 1px solid var(--lf-line) !important;
  border-radius: 8px;
  color: var(--lf-text);
}
#bbpress-forums fieldset.bbp-form legend,
#bbpress-forums fieldset.bbp-form label,
#bbpress-forums fieldset.bbp-form p { color: var(--lf-text); }
#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="url"],
#bbpress-forums select,
#bbpress-forums textarea {
  background: var(--lf-void) !important;
  color: var(--lf-text) !important;
  border: 1px solid var(--lf-line-hi) !important;
  border-radius: 6px;
  padding: 8px 10px;
}
#bbpress-forums input:focus,
#bbpress-forums select:focus,
#bbpress-forums textarea:focus { outline: 2px solid var(--lf-cyan); outline-offset: 1px; }
#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums .button {
  background: var(--lf-cyan) !important;
  color: var(--lf-void) !important;
  border: 0 !important;
  border-radius: 6px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
}
#bbpress-forums button:hover,
#bbpress-forums input[type="submit"]:hover,
#bbpress-forums .button:hover { filter: brightness(1.1); }

/* pagination */
#bbpress-forums .bbp-pagination-count { color: var(--lf-mut); }
#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
  background: var(--lf-raised); border: 1px solid var(--lf-line); color: var(--lf-text); border-radius: 4px; padding: 3px 9px;
}
#bbpress-forums .bbp-pagination-links span.current { background: var(--lf-cyan); color: var(--lf-void); border-color: var(--lf-cyan); }
