/*
Theme Name: TheGem Child
Theme URI: https://example.com
Description: Child theme for TheGem
Author: Your Name
Template: thegem-elementor
Version: 1.0
*/
/* =========================
   TruckersNet bbPress Style Pack
   ========================= */

:root {
  --bb-bg: #f5f7fb;
  --bb-surface: #ffffff;
  --bb-surface-alt: #eef2f7;
  --bb-text: #1f2937;
  --bb-muted: #6b7280;
  --bb-primary: #0f172a;
  --bb-primary-2: #1e293b;
  --bb-accent: #f59e0b;
  --bb-accent-dark: #d97706;
  --bb-border: #dbe3ee;
  --bb-success: #16a34a;
  --bb-danger: #dc2626;
  --bb-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --bb-radius: 18px;
  --bb-radius-sm: 12px;
  --bb-transition: 0.25s ease;
}

/* Page background */
.bbp-forum-archive,
.bbp-topic-archive,
.single-forum,
.single-topic,
.buddypress,
#bbpress-forums {
  color: var(--bb-text);
}

/* Main wrapper */
#bbpress-forums {
  font-size: 16px;
  line-height: 1.6;
}

/* Remove old harsh table feel */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  border: 0;
  margin: 0 0 28px;
  background: transparent;
}

/* Header rows */
#bbpress-forums li.bbp-header {
  background: var(--bb-primary);
  color: #fff;
  border: 0;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
}

#bbpress-forums li.bbp-header ul {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Body rows */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums li.bbp-body div.reply {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  box-shadow: var(--bb-shadow);
}

/* Forum/topic rows */
#bbpress-forums ul.forum,
#bbpress-forums ul.topic {
  border-radius: 0;
  margin-bottom: 14px;
  transition: var(--bb-transition);
}

#bbpress-forums ul.forum:hover,
#bbpress-forums ul.topic:hover {
  transform: translateY(-2px);
}

/* Rounded first/last rows better */
#bbpress-forums li.bbp-body ul.forum:first-child,
#bbpress-forums li.bbp-body ul.topic:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#bbpress-forums li.bbp-body ul.forum:last-child,
#bbpress-forums li.bbp-body ul.topic:last-child {
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

/* Forum/topic inner columns */
#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-title {
  padding: 20px 18px;
}

#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness,
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count {
  padding: 20px 14px;
  color: var(--bb-muted);
  font-size: 14px;
}

/* Titles */
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: var(--bb-primary);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover {
  color: var(--bb-accent-dark);
}

/* Meta text */
#bbpress-forums .bbp-forum-content,
#bbpress-forums .bbp-topic-meta,
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
  color: var(--bb-muted);
}

/* Freshness links */
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
  font-weight: 600;
  text-decoration: none;
}

#bbpress-forums .bbp-forum-freshness a:hover,
#bbpress-forums .bbp-topic-freshness a:hover {
  color: var(--bb-accent-dark);
}

/* Forum/subforum lists */
#bbpress-forums .bbp-forums-list {
  margin-top: 10px;
  border-left: 3px solid #fde7b2;
  padding-left: 12px;
}

#bbpress-forums .bbp-forums-list li {
  margin-bottom: 6px;
}

#bbpress-forums .bbp-forums-list a {
  color: var(--bb-primary);
  font-weight: 600;
}

/* Breadcrumbs */
.bbp-breadcrumb,
#bbpress-forums .bbp-breadcrumb {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--bb-muted);
}

.bbp-breadcrumb a,
#bbpress-forums .bbp-breadcrumb a {
  color: var(--bb-primary);
  text-decoration: none;
  font-weight: 600;
}

/* Search */
#bbpress-forums #bbp-search-form {
  margin-bottom: 22px;
}

#bbpress-forums #bbp_search,
#bbpress-forums input[type="text"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="email"],
#bbpress-forums select,
#bbpress-forums textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--bb-border);
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--bb-text);
  box-shadow: none;
}

#bbpress-forums #bbp_search:focus,
#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="password"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums select:focus,
#bbpress-forums textarea:focus {
  outline: none;
  border-color: var(--bb-accent);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

/* Buttons */
#bbpress-forums .button,
#bbpress-forums .submit,
#bbpress-forums input[type="submit"],
#bbpress-forums button,
.bbp-submit-wrapper button,
.bbp-submit-wrapper input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bb-primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--bb-transition);
}

#bbpress-forums .button:hover,
#bbpress-forums .submit:hover,
#bbpress-forums input[type="submit"]:hover,
#bbpress-forums button:hover,
.bbp-submit-wrapper button:hover,
.bbp-submit-wrapper input:hover {
  transform: translateY(-2px);
  background: var(--bb-primary-2);
}

/* Topic/reply forms */
#bbpress-forums fieldset.bbp-form {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  border-radius: 18px;
  box-shadow: var(--bb-shadow);
  padding: 24px;
  margin-bottom: 28px;
}

#bbpress-forums fieldset.bbp-form legend {
  padding: 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--bb-primary);
}

#bbpress-forums fieldset.bbp-form label {
  font-weight: 700;
  color: var(--bb-primary);
  margin-bottom: 8px;
}

/* Reply layout */
#bbpress-forums div.reply {
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
}

#bbpress-forums .bbp-replies .bbp-header,
#bbpress-forums .bbp-replies .bbp-footer {
  background: var(--bb-primary);
  color: #fff;
  border: 0;
}

#bbpress-forums .bbp-reply-header {
  background: var(--bb-surface-alt);
  border-bottom: 1px solid var(--bb-border);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--bb-muted);
}

#bbpress-forums .bbp-reply-author {
  width: 180px;
  padding: 24px 18px;
  background: #fbfcfe;
  border-right: 1px solid var(--bb-border);
}

#bbpress-forums .bbp-reply-author .bbp-author-name {
  color: var(--bb-primary);
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-reply-author .bbp-author-role,
#bbpress-forums .bbp-reply-author .bbp-author-ip {
  color: var(--bb-muted);
  font-size: 13px;
}

#bbpress-forums .bbp-reply-author img.avatar {
  border-radius: 50%;
  margin-bottom: 10px;
}

#bbpress-forums .bbp-reply-content {
  margin-left: 180px;
  padding: 24px 22px;
  color: var(--bb-text);
}

#bbpress-forums .bbp-reply-content p:last-child {
  margin-bottom: 0;
}

/* Admin links */
#bbpress-forums .bbp-topic-meta .bbp-admin-links,
#bbpress-forums .bbp-reply-header .bbp-admin-links {
  color: var(--bb-muted);
}

#bbpress-forums .bbp-topic-meta .bbp-admin-links a,
#bbpress-forums .bbp-reply-header .bbp-admin-links a {
  color: var(--bb-accent-dark);
  font-weight: 600;
}

/* Notices */
div.bbp-template-notice,
div.indicator-hint {
  border-radius: 14px;
  border: 1px solid #fde7b2;
  background: #fff8eb;
  color: #92400e;
  padding: 16px 18px;
}

div.bbp-template-notice.info {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

div.bbp-template-notice.error,
div.bbp-template-notice.warning {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

/* Pagination */
#bbpress-forums .bbp-pagination {
  margin: 18px 0 26px;
  color: var(--bb-muted);
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 10px 12px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--bb-border);
  background: #fff;
  color: var(--bb-primary);
  text-decoration: none;
  font-weight: 700;
}

#bbpress-forums .bbp-pagination-links span.current {
  background: var(--bb-primary);
  color: #fff;
  border-color: var(--bb-primary);
}

/* Tags */
#bbpress-forums .bbp-topic-tags a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff8eb;
  color: #b45309;
  border: 1px solid #fde7b2;
  text-decoration: none;
  font-weight: 600;
  margin: 4px 6px 0 0;
}

/* Login form */
.bbp-login-form {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
  box-shadow: var(--bb-shadow);
  border-radius: 18px;
  padding: 24px;
}

.bbp-login-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.bbp-login-form label {
  font-weight: 700;
  color: var(--bb-primary);
}

/* Topic voice/reply counts on mobile */
@media (max-width: 860px) {
  #bbpress-forums li.bbp-header {
    display: none;
  }

  #bbpress-forums ul.forum,
  #bbpress-forums ul.topic {
    display: block;
    border-radius: 16px !important;
    padding: 18px;
  }

  #bbpress-forums .bbp-forum-info,
  #bbpress-forums .bbp-topic-title,
  #bbpress-forums .bbp-forum-topic-count,
  #bbpress-forums .bbp-forum-reply-count,
  #bbpress-forums .bbp-topic-voice-count,
  #bbpress-forums .bbp-topic-reply-count,
  #bbpress-forums .bbp-forum-freshness,
  #bbpress-forums .bbp-topic-freshness {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 10px;
    text-align: left;
  }

  #bbpress-forums .bbp-reply-author,
  #bbpress-forums .bbp-reply-content {
    float: none;
    width: 100%;
    margin: 0;
  }

  #bbpress-forums .bbp-reply-author {
    border-right: 0;
    border-bottom: 1px solid var(--bb-border);
    width: 100%;
  }

  #bbpress-forums .bbp-reply-content {
    margin-left: 0;
  }
}
/* =========================================================
   TruckersNet + TheGem bbPress polish
========================================================= */

/* Page chrome: shrink TheGem title area on forum pages */
body.post-type-archive-forum .page-title-block,
body.single-forum .page-title-block,
body.single-topic .page-title-block,
body.bbp-user-page .page-title-block {
  padding: 48px 0 28px !important;
}

body.post-type-archive-forum .page-title-block .page-title,
body.single-forum .page-title-block .page-title,
body.single-topic .page-title-block .page-title,
body.bbp-user-page .page-title-block .page-title {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

body.post-type-archive-forum .block-content,
body.single-forum .block-content,
body.single-topic .block-content,
body.bbp-user-page .block-content {
  padding-top: 36px !important;
  padding-bottom: 48px !important;
}

/* Make forum pages feel more app-like */
body.post-type-archive-forum,
body.single-forum,
body.single-topic,
body.bbp-user-page {
  background: #f5f7fb;
}

body.post-type-archive-forum #main-content,
body.single-forum #main-content,
body.single-topic #main-content,
body.bbp-user-page #main-content {
  background: #f5f7fb;
}

/* Constrain forum content a bit better */
body.post-type-archive-forum #bbpress-forums,
body.single-forum #bbpress-forums,
body.single-topic #bbpress-forums,
body.bbp-user-page #bbpress-forums {
  max-width: 1180px;
  margin: 0 auto;
}

/* Better breadcrumbs */
#bbpress-forums .bbp-breadcrumb {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #6b7280;
}

#bbpress-forums .bbp-breadcrumb a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-breadcrumb a:hover {
  color: #d97706;
}

/* Top utility row */
#bbpress-forums .bbp-topic-tags,
#bbpress-forums .bbp-search-form {
  margin-bottom: 14px;
}

#bbpress-forums .bbp-topic-tags p {
  margin: 0;
}

/* Notices */
#bbpress-forums div.bbp-template-notice {
  border: 1px solid #dbe3ee;
  background: #f8fbff;
  color: #334155;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* Forum / topic list containers */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  border: 0;
  background: transparent;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: #0f172a;
  color: #fff;
  border: 0;
  border-radius: 18px 18px 0 0;
  padding: 16px 18px;
}

#bbpress-forums li.bbp-header ul,
#bbpress-forums li.bbp-footer ul {
  font-size: 0.94rem;
  font-weight: 700;
}

/* Forum/topic rows */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-top: 0;
  margin: 0 0 14px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: 0.25s ease;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
  transform: translateY(-2px);
}

#bbpress-forums li.bbp-body ul.forum:last-child,
#bbpress-forums li.bbp-body ul.topic:last-child {
  border-radius: 0 0 18px 18px;
}

#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-title {
  width: 56%;
  padding: 22px 20px;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-reply-count {
  width: 9%;
  padding: 22px 10px;
  color: #6b7280;
  font-weight: 700;
}

#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
  width: 26%;
  padding: 22px 20px;
  text-align: right;
  color: #6b7280;
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: #0f172a;
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover {
  color: #d97706;
}

#bbpress-forums .bbp-forum-content {
  margin-top: 8px;
  color: #6b7280;
}

/* Topic/reply thread cards */
#bbpress-forums li.bbp-body div.hentry {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  margin-bottom: 18px;
}

#bbpress-forums .bbp-topic-header,
#bbpress-forums .bbp-reply-header {
  background: #f8fafc;
  border-bottom: 1px solid #dbe3ee;
  padding: 14px 18px;
  color: #64748b;
  font-size: 0.92rem;
}

/* Make admin links cleaner */
#bbpress-forums .bbp-admin-links {
  color: #94a3b8;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#bbpress-forums .bbp-admin-links a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-admin-links a:hover {
  color: #d97706;
}

/* Author column */
#bbpress-forums .bbp-reply-author,
#bbpress-forums .bbp-topic-author {
  width: 180px;
  padding: 22px 16px;
  text-align: center;
  background: #fbfcfe;
  border-right: 1px solid #dbe3ee;
}

#bbpress-forums .bbp-reply-author img.avatar,
#bbpress-forums .bbp-topic-author img.avatar {
  border-radius: 999px;
  margin: 0 auto 12px;
  width: 72px;
  height: 72px;
}

#bbpress-forums .bbp-reply-author .bbp-author-name,
#bbpress-forums .bbp-topic-author .bbp-author-name {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-weight: 800;
  text-decoration: none;
}

#bbpress-forums .bbp-reply-author .bbp-author-role,
#bbpress-forums .bbp-topic-author .bbp-author-role {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff8eb;
  color: #b45309;
  border: 1px solid #fde7b2;
  font-size: 0.78rem;
  font-weight: 700;
}

#bbpress-forums .bbp-reply-author .bbp-author-ip,
#bbpress-forums .bbp-topic-author .bbp-author-ip {
  display: none;
}

/* Content area */
#bbpress-forums .bbp-reply-content,
#bbpress-forums .bbp-topic-content {
  margin-left: 180px;
  padding: 24px 24px 22px;
  color: #1f2937;
  font-size: 1rem;
  line-height: 1.75;
}

#bbpress-forums .bbp-reply-content p:last-child,
#bbpress-forums .bbp-topic-content p:last-child {
  margin-bottom: 0;
}

/* Action links under content */
#bbpress-forums .bbp-reply-content .bbp-admin-links,
#bbpress-forums .bbp-topic-content .bbp-admin-links {
  display: block;
  margin-top: 14px;
}

/* Buttons and forms */
#bbpress-forums fieldset.bbp-form {
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

#bbpress-forums fieldset.bbp-form legend {
  color: #0f172a;
  font-weight: 800;
  padding: 0 8px;
}

#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="email"],
#bbpress-forums fieldset.bbp-form input[type="url"],
#bbpress-forums fieldset.bbp-form input[type="number"],
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums fieldset.bbp-form textarea {
  width: 100%;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: #1f2937;
  box-sizing: border-box;
}

#bbpress-forums fieldset.bbp-form textarea {
  min-height: 180px;
}

#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums input[type="button"] {
  background: #f59e0b;
  color: #111827;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.25s ease;
}

#bbpress-forums button:hover,
#bbpress-forums input[type="submit"]:hover,
#bbpress-forums input[type="button"]:hover {
  background: #ffb224;
  transform: translateY(-2px);
}

/* Search inputs */
#bbpress-forums #bbp_search,
#bbpress-forums #bbp_topic_search {
  border: 1px solid #dbe3ee;
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 260px;
  background: #fff;
}

/* Pagination */
#bbpress-forums .bbp-pagination {
  margin: 18px 0 26px;
  color: #6b7280;
  font-size: 0.95rem;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

#bbpress-forums .bbp-pagination-links span.current {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* Favorite / subscribe links */
#bbpress-forums .bbp-topic-meta a,
#bbpress-forums .subscription-toggle a,
#bbpress-forums .favorite-toggle a {
  color: #0ea5e9;
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-topic-meta a:hover,
#bbpress-forums .subscription-toggle a:hover,
#bbpress-forums .favorite-toggle a:hover {
  color: #0284c7;
}

/* Mobile */
@media (max-width: 900px) {
  body.post-type-archive-forum .page-title-block,
  body.single-forum .page-title-block,
  body.single-topic .page-title-block,
  body.bbp-user-page .page-title-block {
    padding: 34px 0 20px !important;
  }

  #bbpress-forums .bbp-forum-info,
  #bbpress-forums .bbp-topic-title,
  #bbpress-forums .bbp-forum-topic-count,
  #bbpress-forums .bbp-topic-voice-count,
  #bbpress-forums .bbp-forum-reply-count,
  #bbpress-forums .bbp-topic-reply-count,
  #bbpress-forums .bbp-forum-freshness,
  #bbpress-forums .bbp-topic-freshness {
    width: 100%;
    float: none;
    text-align: left;
    padding: 10px 16px;
  }

  #bbpress-forums li.bbp-body ul.forum,
  #bbpress-forums li.bbp-body ul.topic {
    padding: 10px 0;
  }

  #bbpress-forums .bbp-reply-author,
  #bbpress-forums .bbp-topic-author {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #dbe3ee;
    padding-bottom: 16px;
  }

  #bbpress-forums .bbp-reply-content,
  #bbpress-forums .bbp-topic-content {
    margin-left: 0;
    padding: 18px;
  }

  #bbpress-forums #bbp_search,
  #bbpress-forums #bbp_topic_search,
  #bbpress-forums #bbp_search_submit,
  #bbpress-forums #bbp_topic_search_submit {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
  }
}
/* Hide TheGem title area on all bbPress pages */
body.bbp-forum #page-title,
body.bbp-topic #page-title,
body.bbp-user-page #page-title,
body.post-type-archive-forum #page-title,
body.single-forum #page-title,
body.single-topic #page-title {
  display: none !important;
}

/* Remove the empty space it leaves */
body.bbp-forum .block-content,
body.bbp-topic .block-content,
body.post-type-archive-forum .block-content,
body.single-forum .block-content,
body.single-topic .block-content {
  padding-top: 20px !important;
}
/* =========================================================
   TruckersNet Modern Forum Pack
========================================================= */

:root {
  --tnf-bg: #f5f7fb;
  --tnf-surface: #ffffff;
  --tnf-surface-2: #f8fafc;
  --tnf-border: #dbe3ee;
  --tnf-text: #1f2937;
  --tnf-muted: #6b7280;
  --tnf-dark: #0f172a;
  --tnf-accent: #f59e0b;
  --tnf-accent-dark: #d97706;
  --tnf-blue: #0ea5e9;
  --tnf-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  --tnf-radius: 18px;
  --tnf-radius-sm: 12px;
}

/* Page background */
body.post-type-archive-forum,
body.single-forum,
body.single-topic,
body.bbp-user-page,
body.bbp-forum,
body.bbp-topic {
  background: var(--tnf-bg);
}

body.post-type-archive-forum #main-content,
body.single-forum #main-content,
body.single-topic #main-content,
body.bbp-user-page #main-content,
body.bbp-forum #main-content,
body.bbp-topic #main-content {
  background: var(--tnf-bg);
}

/* Container width */
#bbpress-forums {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
  color: var(--tnf-text);
}

/* Breadcrumb */
#bbpress-forums .bbp-breadcrumb {
  margin: 0 0 18px;
  font-size: 0.95rem;
  color: var(--tnf-muted);
}

#bbpress-forums .bbp-breadcrumb a {
  color: var(--tnf-dark);
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-breadcrumb a:hover {
  color: var(--tnf-accent-dark);
}

/* Search and utility row */
#bbpress-forums .bbp-search-form,
#bbpress-forums .bbp-topic-tags {
  margin-bottom: 14px;
}

#bbpress-forums #bbp_search,
#bbpress-forums #bbp_topic_search {
  border: 1px solid var(--tnf-border);
  background: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 260px;
}

#bbpress-forums #bbp_search_submit,
#bbpress-forums #bbp_topic_search_submit {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--tnf-dark);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Notices */
#bbpress-forums div.bbp-template-notice,
#bbpress-forums div.indicator-hint {
  border: 1px solid var(--tnf-border);
  background: #f8fbff;
  color: #334155;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

/* Remove default old bbPress look */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  border: 0;
  background: transparent;
  margin: 0;
}

#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
  background: var(--tnf-dark);
  color: #fff;
  border: 0;
  border-radius: var(--tnf-radius) var(--tnf-radius) 0 0;
  padding: 16px 18px;
}

#bbpress-forums li.bbp-header ul,
#bbpress-forums li.bbp-footer ul {
  font-size: 0.94rem;
  font-weight: 700;
}

/* Forum and topic rows */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic {
  background: #fff;
  border: 1px solid var(--tnf-border);
  border-top: 0;
  margin: 0 0 14px;
  box-shadow: var(--tnf-shadow);
  transition: 0.22s ease;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
  transform: translateY(-2px);
}

#bbpress-forums li.bbp-body ul.forum:last-child,
#bbpress-forums li.bbp-body ul.topic:last-child {
  border-radius: 0 0 var(--tnf-radius) var(--tnf-radius);
}

#bbpress-forums .bbp-forum-info,
#bbpress-forums .bbp-topic-title {
  width: 56%;
  padding: 22px 20px;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-reply-count {
  width: 9%;
  padding: 22px 10px;
  color: var(--tnf-muted);
  font-weight: 700;
}

#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
  width: 26%;
  padding: 22px 20px;
  text-align: right;
  color: var(--tnf-muted);
}

#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-topic-permalink {
  color: var(--tnf-dark);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
}

#bbpress-forums .bbp-forum-title:hover,
#bbpress-forums .bbp-topic-permalink:hover {
  color: var(--tnf-accent-dark);
}

#bbpress-forums .bbp-forum-content {
  margin-top: 8px;
  color: var(--tnf-muted);
}

/* Freshness */
#bbpress-forums .bbp-topic-freshness a,
#bbpress-forums .bbp-forum-freshness a {
  color: var(--tnf-dark);
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-topic-freshness a:hover,
#bbpress-forums .bbp-forum-freshness a:hover {
  color: var(--tnf-accent-dark);
}

/* Thread cards */
#bbpress-forums li.bbp-body div.hentry {
  background: #fff;
  border: 1px solid var(--tnf-border);
  border-radius: var(--tnf-radius);
  box-shadow: var(--tnf-shadow);
  overflow: hidden;
  margin-bottom: 18px;
}

#bbpress-forums .bbp-topic-header,
#bbpress-forums .bbp-reply-header {
  background: var(--tnf-surface-2);
  border-bottom: 1px solid var(--tnf-border);
  padding: 14px 18px;
  color: #64748b;
  font-size: 0.92rem;
}

/* Hide IP addresses */
#bbpress-forums .bbp-author-ip {
  display: none !important;
}

/* Author panel */
#bbpress-forums .bbp-topic-author,
#bbpress-forums .bbp-reply-author {
  width: 180px;
  padding: 22px 16px;
  text-align: center;
  background: #fbfcfe;
  border-right: 1px solid var(--tnf-border);
}

#bbpress-forums .bbp-topic-author img.avatar,
#bbpress-forums .bbp-reply-author img.avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto 12px;
}

#bbpress-forums .bbp-author-name {
  display: block;
  margin-top: 6px;
  color: var(--tnf-dark);
  font-weight: 800;
  text-decoration: none;
}

#bbpress-forums .bbp-author-role {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff8eb;
  color: #b45309;
  border: 1px solid #fde7b2;
  font-size: 0.78rem;
  font-weight: 700;
}

#bbpress-forums .bbp-author-name:hover {
  color: var(--tnf-accent-dark);
}

/* Main content */
#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content {
  margin-left: 180px;
  padding: 24px;
  color: var(--tnf-text);
  line-height: 1.75;
}

#bbpress-forums .bbp-topic-content p:last-child,
#bbpress-forums .bbp-reply-content p:last-child {
  margin-bottom: 0;
}

/* Admin links cleaner */
#bbpress-forums .bbp-admin-links {
  color: #94a3b8;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

#bbpress-forums .bbp-admin-links a {
  color: #64748b;
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .bbp-admin-links a:hover {
  color: var(--tnf-accent-dark);
}

/* Favorite / subscribe */
#bbpress-forums .favorite-toggle a,
#bbpress-forums .subscription-toggle a,
#bbpress-forums .bbp-topic-meta a {
  color: var(--tnf-blue);
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums .favorite-toggle a:hover,
#bbpress-forums .subscription-toggle a:hover,
#bbpress-forums .bbp-topic-meta a:hover {
  color: #0284c7;
}

/* Forms */
#bbpress-forums fieldset.bbp-form {
  background: #fff;
  border: 1px solid var(--tnf-border);
  border-radius: var(--tnf-radius);
  padding: 24px;
  box-shadow: var(--tnf-shadow);
}

#bbpress-forums fieldset.bbp-form legend {
  color: var(--tnf-dark);
  font-weight: 800;
  padding: 0 8px;
}

#bbpress-forums fieldset.bbp-form input[type="text"],
#bbpress-forums fieldset.bbp-form input[type="email"],
#bbpress-forums fieldset.bbp-form input[type="url"],
#bbpress-forums fieldset.bbp-form input[type="number"],
#bbpress-forums fieldset.bbp-form select,
#bbpress-forums fieldset.bbp-form textarea {
  width: 100%;
  border: 1px solid var(--tnf-border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--tnf-text);
  box-sizing: border-box;
}

#bbpress-forums fieldset.bbp-form textarea {
  min-height: 180px;
}

#bbpress-forums button,
#bbpress-forums input[type="submit"],
#bbpress-forums input[type="button"] {
  background: var(--tnf-accent);
  color: #111827;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.22s ease;
}

#bbpress-forums button:hover,
#bbpress-forums input[type="submit"]:hover,
#bbpress-forums input[type="button"]:hover {
  background: #ffb224;
  transform: translateY(-2px);
}

/* Pagination */
#bbpress-forums .bbp-pagination {
  margin: 18px 0 26px;
  color: var(--tnf-muted);
  font-size: 0.95rem;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0 4px;
  border-radius: 999px;
  border: 1px solid var(--tnf-border);
  background: #fff;
  color: var(--tnf-dark);
  text-decoration: none;
  font-weight: 700;
}

#bbpress-forums .bbp-pagination-links span.current {
  background: var(--tnf-dark);
  color: #fff;
  border-color: var(--tnf-dark);
}

/* Topic tags */
#bbpress-forums .bbp-topic-tags a {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff8eb;
  color: #b45309;
  border: 1px solid #fde7b2;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

/* User navigation */
#bbpress-forums #bbp-user-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

#bbpress-forums #bbp-user-navigation li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tnf-border);
  color: var(--tnf-dark);
  font-weight: 700;
  text-decoration: none;
}

#bbpress-forums #bbp-user-navigation li.current a,
#bbpress-forums #bbp-user-navigation li a:hover {
  background: var(--tnf-dark);
  color: #fff;
  border-color: var(--tnf-dark);
}

/* Mobile */
@media (max-width: 900px) {
  #bbpress-forums .bbp-forum-info,
  #bbpress-forums .bbp-topic-title,
  #bbpress-forums .bbp-forum-topic-count,
  #bbpress-forums .bbp-topic-voice-count,
  #bbpress-forums .bbp-forum-reply-count,
  #bbpress-forums .bbp-topic-reply-count,
  #bbpress-forums .bbp-forum-freshness,
  #bbpress-forums .bbp-topic-freshness {
    width: 100%;
    float: none;
    text-align: left;
    padding: 10px 16px;
  }

  #bbpress-forums li.bbp-body ul.forum,
  #bbpress-forums li.bbp-body ul.topic {
    padding: 10px 0;
  }

  #bbpress-forums .bbp-topic-author,
  #bbpress-forums .bbp-reply-author {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--tnf-border);
  }

  #bbpress-forums .bbp-topic-content,
  #bbpress-forums .bbp-reply-content {
    margin-left: 0;
    padding: 18px;
  }

  #bbpress-forums #bbp_search,
  #bbpress-forums #bbp_topic_search,
  #bbpress-forums #bbp_search_submit,
  #bbpress-forums #bbp_topic_search_submit {
    width: 100%;
    min-width: 0;
    margin-bottom: 10px;
}
/* Remove leftover top spacing on forum pages */
body.post-type-archive-forum .block-content,
body.single-forum .block-content,
body.single-topic .block-content {
  padding-top: 10px !important;
}

/* Remove extra margin above bbPress */
#bbpress-forums {
  margin-top: 0 !important;
}
	/* Forum rows → card style */
#bbpress-forums li.bbp-body ul.forum {
  background: #fff;
  border: 1px solid #e5eaf2;
  border-radius: 14px;
  margin-bottom: 14px;
  padding: 18px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

/* Hover effect */
#bbpress-forums li.bbp-body ul.forum:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}
	#bbpress-forums .bbp-forum-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

#bbpress-forums .bbp-forum-title:hover {
  color: #f59e0b;
}
	#bbpress-forums .bbp-forum-info {
  width: 60%;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count {
  width: 10%;
  font-weight: 700;
  color: #64748b;
}

#bbpress-forums .bbp-forum-freshness {
  width: 20%;
  text-align: right;
  color: #64748b;
}
	#bbpress-forums li.bbp-header {
  display: none;
}
	#bbpress-forums #bbp_search {
  border-radius: 999px;
  padding: 12px 16px;
  border: 1px solid #dbe3ee;
  background: #fff;
}

#bbpress-forums #bbp_search_submit {
  border-radius: 999px;
  padding: 12px 20px;
  background: #0f172a;
  color: #fff;
  font-weight: 700;
}

body .tnc-utility-subheader-wrap {
    width: 100% !important;
    background: #2458FF !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .tnc-utility-subheader-inner {
    max-width: 1240px !important;
    margin: 0 auto !important;
    padding: 10px 14px !important;
    min-height: 58px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

body .tnc-utility-subheader-left {
    display: none !important;
}

body .tnc-utility-subheader-right {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-left: auto !important;
}

body .tnc-utility-notify-wrap {
    position: relative !important;
}

body .tnc-utility-action,
body .tnc-utility-avatar-btn {
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.24) !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    color: #fff !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

body .tnc-utility-avatar-btn {
    padding: 6px !important;
}

body .tnc-utility-action-icon {
    color: #ffffff !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

body .tnc-utility-action-count,
body #tnc-top-bell-badge {
    background: #ffffff !important;
    color: #2458FF !important;
    font-weight: 800 !important;
    min-width: 28px !important;
    height: 28px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

body .tnc-utility-avatar-circle {
    width: 38px !important;
    height: 38px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #2458FF !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

body .tnc-utility-dropdown {
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: min(92vw, 340px) !important;
    background: #ffffff !important;
    border: 1px solid #dbe3f4 !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 40px rgba(15,23,42,.18) !important;
    overflow: hidden !important;
    z-index: 99999 !important;
}

body .tnc-utility-dropdown[hidden] {
    display: none !important;
}

body .tnc-utility-dropdown-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #e8eef8 !important;
    background: #f8fbff !important;
}

body .tnc-utility-dropdown-head strong {
    color: #0f172a !important;
    font-size: 15px !important;
}

body .tnc-utility-mark-all {
    border: 0 !important;
    background: transparent !important;
    color: #2458FF !important;
    font-weight: 700 !important;
    padding: 0 !important;
    cursor: pointer !important;
}

body .tnc-utility-dropdown-list {
    max-height: 320px !important;
    overflow: auto !important;
}

body .tnc-utility-item {
    display: block !important;
    padding: 14px 16px !important;
    border-bottom: 1px solid #eef3ff !important;
    text-decoration: none !important;
    background: #ffffff !important;
}

body .tnc-utility-item.unread {
    background: #f8fbff !important;
}

body .tnc-utility-item-text {
    display: block !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
}

body .tnc-utility-item-time {
    display: block !important;
    color: #64748b !important;
    font-size: 13px !important;
}

body .tnc-utility-empty {
    padding: 18px 16px !important;
    color: #64748b !important;
}

body .tnc-utility-dropdown-foot {
    padding: 12px 16px !important;
    background: #f8fbff !important;
    border-top: 1px solid #e8eef8 !important;
}

body .tnc-utility-dropdown-foot a {
    color: #2458FF !important;
    text-decoration: none !important;
    font-weight: 700 !important;
}

@media (max-width: 767px) {
    body .tnc-utility-dropdown {
        right: -6px !important;
        width: min(94vw, 340px) !important;
    }
}
