/* ════════════════════════════════════════════════
   WRSHPDRMMR — WD Community bbPress Stylesheet
   File: assets/community.css
   Paste into: Divi > Theme Options > Custom CSS
   OR enqueue via plugin/child theme
   ════════════════════════════════════════════════

   Covers all bbPress template areas:
   - Forum index / category list
   - Individual forum view
   - Topic list
   - Single topic / replies
   - New topic & reply forms
   - Search
   - Member profiles
   - Pagination
   ════════════════════════════════════════════════ */

/* ── SIDEBAR LOGO IMAGE ──────────────────────── */
.wd-logo-img {
  display: block;
  width: 160px;
  height: auto;
  max-width: 100%;
  image-rendering: -webkit-optimize-contrast;
}
.wd-logo-tag {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7A6E58;
  margin-top: 7px;
}

/* ── GLOBAL RESETS FOR BBPRESS ON THIS THEME ── */
#bbpress-forums,
#bbpress-forums * {
  font-family: 'Barlow', sans-serif;
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

/* Remove bbPress default borders/padding that fight the layout */
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-replies {
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ── PAGE WRAPPER ──────────────────────────── */
.wd-community-page #bbpress-forums {
  background: transparent;
  color: #C4B99A;
  padding: 0;
  max-width: 100%;
}

/* ── FORUM INDEX — CATEGORY GROUPS ────────── */
#bbpress-forums .bbp-forum-info,
#bbpress-forums li.bbp-forum-info {
  background: #161310;
  border: 1px solid rgba(200,146,42,0.18);
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.22s ease;
}
#bbpress-forums .bbp-forum-info:hover,
#bbpress-forums li.bbp-forum-info:hover {
  border-color: rgba(200,146,42,0.38);
}

/* Forum header row */
#bbpress-forums li.bbp-header {
  background: #1E1A14;
  border-bottom: 1px solid rgba(200,146,42,0.10);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Forum title */
#bbpress-forums .bbp-forum-title,
#bbpress-forums .bbp-forum-title a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #F7F2E8;
  text-decoration: none;
  transition: color 0.22s ease;
}
#bbpress-forums .bbp-forum-title a:hover {
  color: #C8922A;
}

/* Forum description */
#bbpress-forums .bbp-forum-content,
#bbpress-forums .forum-description {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #7A6E58;
  margin-top: 4px;
  line-height: 1.45;
}

/* Forum stat columns */
#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count,
#bbpress-forums .bbp-topic-count,
#bbpress-forums .bbp-reply-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: #C8922A;
  text-align: center;
  line-height: 1;
}

/* Column labels */
#bbpress-forums .bbp-header .bbp-forum-topic-count,
#bbpress-forums .bbp-header .bbp-forum-reply-count {
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: #7A6E58;
  font-size: 9px;
}

/* Last activity column */
#bbpress-forums .bbp-forum-freshness,
#bbpress-forums .bbp-topic-freshness {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: #7A6E58;
  letter-spacing: 0.04em;
}
#bbpress-forums .bbp-forum-freshness a,
#bbpress-forums .bbp-topic-freshness a {
  color: #C8922A;
  text-decoration: none;
  transition: color 0.22s;
}
#bbpress-forums .bbp-forum-freshness a:hover,
#bbpress-forums .bbp-topic-freshness a:hover {
  color: #E8AE4A;
}

/* ── TOPIC LIST ────────────────────────────── */
#bbpress-forums li.bbp-topic-title {
  background: #161310;
  border: 1px solid rgba(200,146,42,0.14);
  border-radius: 2px;
  margin-bottom: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.22s, background 0.22s;
}
#bbpress-forums li.bbp-topic-title:hover {
  border-color: rgba(200,146,42,0.35);
  background: #1E1A14;
}

/* Sticky/pinned topics */
#bbpress-forums li.super-sticky,
#bbpress-forums li.sticky {
  border-left: 2px solid #C8922A;
}

/* Topic title link */
#bbpress-forums .bbp-topic-title a,
#bbpress-forums span.bbp-topic-title a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #F7F2E8;
  text-decoration: none;
  line-height: 1.15;
  transition: color 0.22s;
}
#bbpress-forums .bbp-topic-title a:hover {
  color: #C8922A;
}

/* Topic meta (author, date) */
#bbpress-forums .bbp-topic-meta,
#bbpress-forums p.bbp-topic-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: #7A6E58;
  margin-top: 5px;
  line-height: 1.4;
}
#bbpress-forums .bbp-topic-meta a {
  color: #C4B99A;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.22s;
}
#bbpress-forums .bbp-topic-meta a:hover { color: #C8922A; }

/* Reply count badge */
#bbpress-forums .bbp-reply-count,
#bbpress-forums span.bbp-reply-count {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: #7A6E58;
  background: #1E1A14;
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 2px;
  padding: 4px 10px;
  text-align: center;
  line-height: 1;
  min-width: 44px;
  flex-shrink: 0;
}

/* ── SINGLE TOPIC / REPLIES ────────────────── */
#bbpress-forums #bbp-single-topic-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 34px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #F7F2E8;
  line-height: 1;
  margin-bottom: 8px;
}

/* Topic and reply content boxes */
#bbpress-forums .bbp-reply-content,
#bbpress-forums .bbp-topic-content {
  background: #161310;
  border: 1px solid rgba(200,146,42,0.14);
  border-radius: 2px;
  padding: 20px 22px;
  margin-bottom: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: #C4B99A;
}
#bbpress-forums .bbp-reply-content p,
#bbpress-forums .bbp-topic-content p {
  color: #C4B99A;
  line-height: 1.65;
  margin-bottom: 12px;
}
#bbpress-forums .bbp-reply-content a,
#bbpress-forums .bbp-topic-content a {
  color: #C8922A;
  text-decoration: none;
  transition: color 0.22s;
}
#bbpress-forums .bbp-reply-content a:hover,
#bbpress-forums .bbp-topic-content a:hover {
  color: #E8AE4A;
}

/* Author info sidebar (left of post) */
#bbpress-forums .bbp-reply-author,
#bbpress-forums .bbp-topic-author {
  background: #1E1A14;
  border: 1px solid rgba(200,146,42,0.12);
  border-radius: 2px;
  padding: 14px 12px;
  text-align: center;
  min-width: 100px;
  flex-shrink: 0;
}

/* Avatar in posts */
#bbpress-forums .bbp-author-avatar img {
  border-radius: 50%;
  border: 2px solid #C8922A;
  width: 52px !important;
  height: 52px !important;
  object-fit: cover;
}

/* Author name */
#bbpress-forums .bbp-author-name,
#bbpress-forums .bbp-author-name a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F7F2E8;
  text-decoration: none;
  display: block;
  margin-top: 8px;
  transition: color 0.22s;
}
#bbpress-forums .bbp-author-name a:hover { color: #C8922A; }

/* Author role/membership badge */
#bbpress-forums .bbp-author-role,
#bbpress-forums .bbp-author-membership {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C8922A;
  margin-top: 4px;
  display: block;
}

/* Post meta footer */
#bbpress-forums .bbp-reply-post-date,
#bbpress-forums .bbp-topic-post-date {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: #7A6E58;
  letter-spacing: 0.04em;
}

/* Edit/quote links */
#bbpress-forums .bbp-reply-admin-links a,
#bbpress-forums .bbp-topic-admin-links a {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #7A6E58;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.22s;
}
#bbpress-forums .bbp-reply-admin-links a:hover,
#bbpress-forums .bbp-topic-admin-links a:hover { color: #C8922A; }

/* ── NEW TOPIC / REPLY FORMS ───────────────── */
#bbpress-forums #new-post,
#bbpress-forums #bbp-your-profile {
  background: #161310;
  border: 1px solid rgba(200,146,42,0.18);
  border-radius: 2px;
  padding: 28px;
  margin-top: 28px;
  position: relative;
}
#bbpress-forums #new-post::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #7A561A, #C8922A, #7A561A);
}

/* Form headings */
#bbpress-forums #new-post h3,
#bbpress-forums .bbp-reply-form h3,
#bbpress-forums .bbp-topic-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F7F2E8;
  margin-bottom: 20px;
}

/* Form labels */
#bbpress-forums label,
#bbpress-forums .bbp-form label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7A6E58;
  display: block;
  margin-bottom: 7px;
  font-weight: 400;
}

/* All text inputs, selects, textareas */
#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,
#bbpress-forums .bbp-the-content {
  background: #1E1A14 !important;
  border: 1px solid rgba(200,146,42,0.18) !important;
  border-radius: 2px !important;
  color: #C4B99A !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  padding: 10px 14px !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.22s, background 0.22s !important;
  -webkit-appearance: none !important;
}
#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums select:focus,
#bbpress-forums textarea:focus,
#bbpress-forums .bbp-the-content:focus {
  border-color: #C8922A !important;
  background: #2A2318 !important;
  color: #F7F2E8 !important;
}
#bbpress-forums input::placeholder,
#bbpress-forums textarea::placeholder {
  color: #7A6E58 !important;
}
#bbpress-forums textarea,
#bbpress-forums .bbp-the-content {
  min-height: 140px !important;
  resize: vertical !important;
  line-height: 1.6 !important;
}

/* TinyMCE toolbar area */
#bbpress-forums .mce-toolbar,
#bbpress-forums .mce-container,
#bbpress-forums .wp-editor-tabs {
  background: #2A2318 !important;
  border-color: rgba(200,146,42,0.18) !important;
}

/* Submit buttons */
#bbpress-forums input[type="submit"],
#bbpress-forums button[type="submit"],
#bbpress-forums .bbp-submit-wrapper input,
#bbpress-forums .bbp-submit-wrapper button {
  background: #C8922A !important;
  color: #0E0C09 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 11px 28px !important;
  border: none !important;
  border-radius: 2px !important;
  cursor: pointer !important;
  transition: background 0.22s !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
}
#bbpress-forums input[type="submit"]:hover,
#bbpress-forums button[type="submit"]:hover,
#bbpress-forums .bbp-submit-wrapper input:hover {
  background: #E8AE4A !important;
}

/* ── BREADCRUMB / NAVIGATION ───────────────── */
#bbpress-forums .bbp-breadcrumb,
#bbpress-forums p.bbp-breadcrumb {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  color: #7A6E58;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
#bbpress-forums .bbp-breadcrumb a {
  color: #C8922A;
  text-decoration: none;
  transition: color 0.22s;
}
#bbpress-forums .bbp-breadcrumb a:hover { color: #E8AE4A; }
#bbpress-forums .bbp-breadcrumb .bbp-breadcrumb-sep {
  color: #7A6E58;
  margin: 0 6px;
}

/* ── SEARCH ────────────────────────────────── */
#bbp-search-form {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
}
#bbp-search-form input[type="text"],
#bbp-search-form #bbp_search {
  flex: 1;
  background: #161310 !important;
  border: 1px solid rgba(200,146,42,0.18) !important;
  border-right: none !important;
  border-radius: 2px 0 0 2px !important;
  color: #C4B99A !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 14px !important;
  padding: 11px 16px !important;
}
#bbp-search-form input[type="submit"],
#bbp-search-form #bbp_search_submit {
  background: #C8922A !important;
  color: #0E0C09 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  padding: 11px 20px !important;
  border: none !important;
  border-radius: 0 2px 2px 0 !important;
  cursor: pointer !important;
  transition: background 0.22s !important;
}
#bbp-search-form input[type="submit"]:hover { background: #E8AE4A !important; }

/* ── PAGINATION ─────────────────────────────── */
#bbpress-forums .bbp-pagination,
#bbpress-forums .bbp-pagination-count,
.bbp-pagination {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  color: #7A6E58;
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
#bbpress-forums .bbp-pagination a,
#bbpress-forums .bbp-pagination .page-numbers {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  background: #161310;
  border: 1px solid rgba(200,146,42,0.18);
  border-radius: 2px;
  color: #7A6E58;
  padding: 5px 11px;
  text-decoration: none;
  transition: color 0.22s, border-color 0.22s;
}
#bbpress-forums .bbp-pagination a:hover,
#bbpress-forums .bbp-pagination .page-numbers:hover {
  color: #C8922A;
  border-color: #C8922A;
}
#bbpress-forums .bbp-pagination .current {
  background: rgba(200,146,42,0.12);
  border-color: #C8922A;
  color: #C8922A;
}

/* ── TOPIC STATUS TAGS ──────────────────────── */
#bbpress-forums .bbp-topic-status,
#bbpress-forums span.bbp-topic-status {
  font-family: 'Barlow', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
}
/* Sticky/pinned */
#bbpress-forums span.bbp-topic-status.super-sticky,
#bbpress-forums span.bbp-topic-status.sticky {
  color: #C8B96A;
  background: rgba(200,185,106,0.12);
}
/* Closed */
#bbpress-forums span.bbp-topic-status.closed {
  color: #7A6E58;
  background: rgba(122,110,88,0.12);
}
/* Resolved */
#bbpress-forums span.bbp-topic-status.resolved {
  color: #C8922A;
  background: rgba(200,146,42,0.12);
}

/* ── NOTICES & ALERTS ───────────────────────── */
#bbpress-forums .bbp-template-notice,
#bbpress-forums .bbp-notice,
#bbpress-forums p.bbp-logged-in {
  background: rgba(200,146,42,0.08);
  border: 1px solid rgba(200,146,42,0.25);
  border-left: 3px solid #C8922A;
  border-radius: 2px;
  padding: 12px 16px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #C4B99A;
  margin-bottom: 16px;
  line-height: 1.5;
}
#bbpress-forums .bbp-template-notice a,
#bbpress-forums p.bbp-logged-in a {
  color: #C8922A;
  text-decoration: none;
}
#bbpress-forums .bbp-template-notice.info {
  border-left-color: #5DBF90;
  background: rgba(93,191,144,0.07);
}
#bbpress-forums .bbp-template-notice.warning {
  border-left-color: #E8634A;
  background: rgba(232,99,74,0.07);
}

/* ── USER PROFILE ───────────────────────────── */
#bbpress-forums #bbp-user-body {
  background: #161310;
  border: 1px solid rgba(200,146,42,0.18);
  border-radius: 2px;
  padding: 28px;
}
#bbpress-forums .bbp-user-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F7F2E8;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200,146,42,0.10);
}
#bbpress-forums .bbp-user-section p {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #C4B99A;
  font-weight: 300;
  line-height: 1.6;
}

/* ── SUBSCRIPTIONS TOGGLE ───────────────────── */
#bbpress-forums a.bbp-topic-subscription,
#bbpress-forums a.bbp-forum-subscription {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #7A6E58;
  text-decoration: none;
  border: 1px solid rgba(200,146,42,0.18);
  padding: 4px 12px;
  border-radius: 2px;
  transition: color 0.22s, border-color 0.22s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#bbpress-forums a.bbp-topic-subscription:hover,
#bbpress-forums a.bbp-forum-subscription:hover {
  color: #C8922A;
  border-color: #C8922A;
}

/* ── LOGIN REQUIRED MESSAGE ─────────────────── */
#bbpress-forums #bbp-login-form {
  background: #161310;
  border: 1px solid rgba(200,146,42,0.18);
  border-radius: 2px;
  padding: 28px;
  text-align: center;
}
#bbpress-forums #bbp-login-form h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #F7F2E8;
  margin-bottom: 8px;
}
#bbpress-forums #bbp-login-form p {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #7A6E58;
  font-weight: 300;
  margin-bottom: 20px;
}

/* ── REPLY EDITOR TOOLBAR ────────────────────── */
.bbp-the-content-wrapper .wp-editor-container {
  border: 1px solid rgba(200,146,42,0.18) !important;
  border-radius: 2px !important;
  overflow: hidden;
}
.bbp-the-content-wrapper .mce-tinymce,
.bbp-the-content-wrapper .mce-container {
  background: #1E1A14 !important;
  border: none !important;
}
.bbp-the-content-wrapper .mce-toolbar-grp {
  background: #2A2318 !important;
  border-bottom: 1px solid rgba(200,146,42,0.15) !important;
}
.bbp-the-content-wrapper .mce-btn {
  background: transparent !important;
  border: none !important;
  color: #C4B99A !important;
}
.bbp-the-content-wrapper .mce-btn:hover {
  background: rgba(200,146,42,0.10) !important;
  color: #C8922A !important;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 768px) {
  #bbpress-forums li.bbp-header,
  #bbpress-forums li.bbp-topic-title {
    flex-wrap: wrap;
    gap: 8px;
  }
  #bbpress-forums .bbp-forum-title,
  #bbpress-forums .bbp-forum-title a {
    font-size: 16px;
  }
  #bbpress-forums #bbp-single-topic-title {
    font-size: 26px;
  }
  #bbpress-forums #new-post {
    padding: 20px 16px;
  }
}
