/* ==========================================================================
   WPFixBoard — bbPress integration styles
   Covers: issue list filters/table additions, single issue view, generic
   bbPress container (forum index, forms, pagination, breadcrumbs).
   ========================================================================== */

/* --------------------------------------------------------------------------
   Issue list — additions
   -------------------------------------------------------------------------- */
.issues-content-top {
  gap: 12px;
}
.issues-sort {
  position: relative;
}
.issues-sort-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B90A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}
.filter-select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 30px 9px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  background-color: #fff;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B90A3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 13px 13px;
}
.filter-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.12);
}

/* Status / priority colour dots in the filter sidebar */
.issues-sidebar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.status-open,
.dot.dot-open { background: var(--open-dot); }
.dot.status-pipeline,
.dot.dot-pipeline { background: var(--pipeline-dot); }
.dot.status-investigating,
.dot.dot-investigating { background: var(--investigating-dot); }
.dot.status-waiting,
.dot.dot-waiting { background: var(--waiting-dot); }
.dot.status-fixed,
.dot.dot-fixed { background: var(--fixed-dot); }
.dot.status-closed,
.dot.dot-closed { background: #94A3B8; }

.priority-dot {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.priority-dot svg { width: 13px; height: 13px; }
.priority-dot.priority-free { color: #2ecc71; }
.priority-dot.priority-priority { color: #7c5cff; }
.priority-dot.priority-emergency { color: #ff5c5c; }

/* TEMP: hide Priority & Emergency filter options on All Issues sidebar.
   Remove this block to re-enable them later. */
.priority-filter-row.priority-filter-priority,
.priority-filter-row.priority-filter-emergency {
  display: none !important;
}

.issues-sidebar .check-row label.left {
  cursor: pointer;
  user-select: none;
}

/* Mobile filter toggle (injected by bbpress.js) */
.issues-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 14px;
  cursor: pointer;
}
.issues-sidebar-toggle svg { width: 16px; height: 16px; transition: transform .2s ease; }
.issues-sidebar-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Status badge now driven by a CSS variable */
.status-badge {
  background: color-mix(in srgb, var(--status-color, #a0a0b8) 16%, #fff);
  color: var(--status-color, #6b6b9e);
}

/* Empty state */
.issues-empty {
  text-align: center;
  padding: 60px 24px;
}
.issues-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gray-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.issues-empty-icon svg { width: 28px; height: 28px; }
.issues-empty h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.issues-empty p { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; max-width: 420px; margin-left: auto; margin-right: auto; }

/* Pagination list markup (paginate_links type=list) */
.page-nums ul,
.solved-page-nums ul { display: flex; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.page-nums ul li,
.solved-page-nums ul li { list-style: none; }
.page-nums .page-numbers,
.solved-page-nums .page-numbers {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 0 8px;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.page-nums .page-numbers svg,
.solved-page-nums .page-numbers svg { width: 13px; height: 13px; display: block; }
.page-nums .page-numbers.current,
.page-nums .page-numbers:hover:not(.dots),
.solved-page-nums .page-numbers.current,
.solved-page-nums .page-numbers:hover:not(.dots) {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.page-nums .page-numbers.dots,
.solved-page-nums .page-numbers.dots { border: none; background: transparent; }

/* --------------------------------------------------------------------------
   Submit an Issue page
   -------------------------------------------------------------------------- */
.submit-hero {
  background: var(--primary-100);
  padding: 56px 0 48px;
  text-align: center;
}
.submit-hero-inner { max-width: 680px; margin: 0 auto; }
.submit-hero h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: var(--ink);
}
.submit-hero-lead {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 26px;
}
.submit-hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.submit-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
.submit-hero-points svg { width: 16px; height: 16px; color: var(--primary); }

.submit-page { padding: 36px 0 70px; background: var(--bg-soft); }
.submit-form-card {
  max-width: 760px;
  margin: 0 auto;
}
.submit-help {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-500);
}
.submit-help a { color: var(--primary); }

/* AI-assisted info strip */
.submit-ai-note {
  max-width: 760px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
}
.submit-ai-note__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.submit-ai-note__icon svg { width: 20px; height: 20px; }
.submit-ai-note__text {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
}

fieldset.bbp-form input[type=text], #bbpress-forums fieldset.bbp-form select {
    height: 40px !important;
}

.submit-ai-note__text strong { color: var(--ink); }
@media (max-width: 640px) {
  .submit-ai-note { flex-direction: column; text-align: center; align-items: center; }
  .submit-ai-note__text { text-align: center; }
}

/* Generic bbPress container reset (so it sits inside our clean layout)
   -------------------------------------------------------------------------- */
.wpfix-page-main { padding: 36px 0 70px; }

#bbpress-forums {
  font-size: 14.5px;
  color: var(--ink);
}
#bbpress-forums a { color: var(--primary); }
#bbpress-forums a:hover { text-decoration: underline; }
#bbpress-forums img.avatar { border-radius: 50%; }

/* bbPress breadcrumb */
#bbpress-forums .bbp-breadcrumb,
.bbp-breadcrumb {
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--gray-500);
}
.bbp-breadcrumb a { color: var(--gray-600); }
.bbp-breadcrumb .bbp-breadcrumb-sep { margin: 0 8px; color: var(--gray-400); }

/* Template notices (info / error boxes) */
#bbpress-forums .bbp-template-notice,
.bbp-template-notice {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 0 0 20px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.bbp-template-notice.info { background: #eef5ff; border-color: #d8e6ff; }
.bbp-template-notice.error,
.bbp-template-notice.warning { background: #fff1f0; border-color: #ffd6d4; color: #b42318; }
.bbp-template-notice ul { margin: 0; padding: 0; list-style: none; }
.bbp-template-notice li { list-style: none; }
.bbp-template-notice li .wpfix-register-link {
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.bbp-template-notice li .wpfix-register-link:hover { text-decoration: underline; }

/* Generic bbPress tables (forum index) */
#bbpress-forums .bbp-forums,
#bbpress-forums table.bbp-forums {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
#bbpress-forums table.bbp-forums th,
#bbpress-forums table.bbp-forums td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}
#bbpress-forums table.bbp-forums thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  background: var(--bg-soft);
}
#bbpress-forums table.bbp-forums tbody tr:last-child td { border-bottom: none; }
#bbpress-forums table.bbp-forums tbody tr:hover td { background: var(--primary-50); }

/* --------------------------------------------------------------------------
   Single issue view
   -------------------------------------------------------------------------- */
.wpfix-issue { max-width: 880px; margin: 0 auto; }

.wpfix-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 22px;
}
.wpfix-breadcrumb a { color: var(--gray-600); }
.wpfix-breadcrumb a:hover { color: var(--primary); }
.wpfix-breadcrumb .sep { color: var(--gray-400); }
.wpfix-breadcrumb .current { color: var(--ink-soft); font-weight: 600; }

.wpfix-issue-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  margin-bottom: 22px;
}
.wpfix-issue-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.wpfix-issue-badges .status-badge { margin-bottom: 0; }
.wpfix-issue-priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.wpfix-issue-priority svg { width: 13px; height: 13px; }
.wpfix-issue-priority.priority-free { background: #e8faf0; color: #2ecc71; }
.wpfix-issue-priority.priority-priority { background: #f1ecff; color: #7c5cff; }
.wpfix-issue-priority.priority-emergency { background: #fff1f0; color: #ff5c5c; }
.wpfix-issue-category {
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f3f3fa;
  color: var(--gray-600);
  text-decoration: none;
}
.wpfix-issue-category:hover { background: var(--primary-100); color: var(--primary); text-decoration: none; }

.wpfix-issue-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 14px;
  color: var(--ink);
}
.wpfix-issue-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
}
.wpfix-issue-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-soft); }
.wpfix-issue-author .avatar,
.wpfix-post-author .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.wpfix-meta-dot { color: var(--gray-400); }

.wpfix-issue-actions {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
}
/* Hide the divider entirely when no actions are available (e.g. logged-out). */
.wpfix-issue-actions:empty,
.wpfix-issue-actions:not(:has(a)) {
  display: none;
}
.wpfix-issue-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
}
.wpfix-issue-actions a:hover { color: var(--primary); }
.wpfix-issue-actions a:before { content: "+"; font-weight: 700; }

/* Topic tags */
.wpfix-issue .bbp-topic-tags {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 18px;
}
.wpfix-issue .bbp-topic-tags a {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f3f3fa;
  color: var(--gray-600);
  margin-right: 6px;
  text-decoration: none;
}

/* Lead issue + reply cards share layout */
.wpfix-issue-lead,
.wpfix-reply {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.wpfix-post-author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.wpfix-post-author .avatar {
  width: 44px;
  height: 44px;
  font-size: 15px;
}
.wpfix-post-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.wpfix-post-ip { font-size: 11px; color: var(--gray-400); }
.wpfix-post-admin { font-size: 12px; }
.wpfix-post-admin .bbp-admin-links { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.wpfix-post-admin a { color: var(--gray-500); text-decoration: none; }
.wpfix-post-admin a:hover { color: var(--primary); }

.wpfix-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 12.5px;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.wpfix-post-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: var(--primary-100);
  padding: 3px 10px;
  border-radius: 999px;
}
.wpfix-post-date { color: var(--gray-500); text-decoration: none; }
.wpfix-post-date:hover { color: var(--primary); }

/* AI-generated reply tag (front-end) */
.wpfix-reply-ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 10px 0 0;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--investigating-bg);
  color: var(--investigating-text);
  border: 1px solid #ddd6fe;
}
.wpfix-reply-ai-tag svg { width: 12px; height: 12px; }
.wpfix-ai-sig {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--gray-500);
}
.wpfix-ai-note {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray-500);
}
.wpfix-ai-note em { font-style: italic; }

.wpfix-post-body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  word-wrap: break-word;
}
.wpfix-post-body p { margin: 0 0 14px; }
.wpfix-post-body p:last-child { margin-bottom: 0; }
.wpfix-post-body h1,
.wpfix-post-body h2,
.wpfix-post-body h3 { margin: 18px 0 10px; color: var(--ink); }
.wpfix-post-body code { background: #f3f3fa; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
.wpfix-post-body pre { background: #1e1e2e; color: #e6e6f0; padding: 16px; border-radius: 10px; overflow-x: auto; margin: 0 0 14px; }
.wpfix-post-body pre code { background: transparent; padding: 0; color: inherit; }

/* ----------------------------------------------------------
   Code editor card (enhanced by assets/js/bbpress.js)
   A plain <pre><code class="language-x"> is wrapped in
   .wpfix-code with a chrome bar: window dots, language
   label and a copy-to-clipboard button.
---------------------------------------------------------- */
.wpfix-code {
  --code-bg: #1b1b2b;
  --code-bar-bg: #23233b;
  --code-text: #e7e7f2;
  --code-muted: #9aa0b8;
  --code-line: rgba(255,255,255,0.07);
  --code-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  position: relative;
  margin: 0 0 16px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wpfix-code__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: linear-gradient(180deg, #272744 0%, #21213a 100%);
  border-bottom: 1px solid var(--code-line);
}
.wpfix-code__dots {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 18px 0 0 #febc2e, 36px 0 0 #28c840;
  margin-right: 26px;
}
.wpfix-code__lang {
  font-family: var(--code-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--code-muted);
}
.wpfix-code__lang::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--primary, #5B4FE8);
  vertical-align: middle;
  opacity: 0.85;
}
.wpfix-code__copy {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--code-mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #c7cae0;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 6px 10px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .05s ease;
}
.wpfix-code__copy:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.18); }
.wpfix-code__copy:active { transform: translateY(1px); }
.wpfix-code__copy:focus-visible { outline: 2px solid var(--primary, #5B4FE8); outline-offset: 2px; }
.wpfix-code__copy svg { width: 13px; height: 13px; }
.wpfix-code__copy.is-copied {
  background: rgba(40,200,64,0.16);
  border-color: rgba(40,200,64,0.45);
  color: #7ee69a;
}
.wpfix-code pre {
  margin: 0;
  padding: 16px 18px;
  background: transparent;
  color: var(--code-text);
  overflow-x: auto;
  font-family: var(--code-mono);
  font-size: 13.5px;
  line-height: 1.65;
  tab-size: 2;
  -webkit-overflow-scrolling: touch;
}
.wpfix-code pre code,
.wpfix-post-body .wpfix-code code {
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  white-space: pre;
}
.wpfix-code pre::-webkit-scrollbar { height: 9px; }
.wpfix-code pre::-webkit-scrollbar-track { background: transparent; }
.wpfix-code pre::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 99px; }
.wpfix-code pre::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.24); }
@media (prefers-reduced-motion: reduce) {
  .wpfix-code__copy { transition: none; }
}
.wpfix-post-body ul,
.wpfix-post-body ol { margin: 0 0 14px; padding-left: 22px; }
.wpfix-post-body li { margin-bottom: 6px; }
.wpfix-post-body blockquote { border-left: 3px solid var(--primary-100); padding-left: 16px; margin: 0 0 14px; color: var(--gray-600); }
.wpfix-post-body img { max-width: 100%; height: auto; border-radius: 10px; }

/* Replies wrapper */
.wpfix-replies-wrap { margin-top: 30px; }
.wpfix-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  color: var(--ink);
}
.wpfix-no-replies {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
}

/* bbPress forms (reply / topic) */
#bbpress-forums fieldset.bbp-form,
.bbp-topic-form fieldset,
.bbp-reply-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  padding: 24px 26px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
#bbpress-forums fieldset.bbp-form legend {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  padding: 0 6px;
  text-transform: none;
  width: auto;
}
#bbpress-forums fieldset.bbp-form label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
#bbpress-forums fieldset.bbp-form p { margin: 0 0 16px; font-size: 14px; }

#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="password"],
#bbpress-forums input[type="search"],
#bbpress-forums select,
#bbpress-forums textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
#bbpress-forums input:focus,
#bbpress-forums textarea:focus,
#bbpress-forums select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.12);
}
#bbpress-forums textarea { min-height: 130px; resize: vertical; }

/* Login form (shown to logged-out visitors on the submit-an-issue page).
   Beats bbPress core's `#bbpress-forums fieldset.bbp-form input[type=password]{height:28px}`. */
#bbpress-forums form.bbp-login-form fieldset input[type="text"],
#bbpress-forums form.bbp-login-form fieldset input[type="password"],
#bbpress-forums form.bbp-login-form fieldset input[type="email"] {
  width: 100%;
  max-width: 320px;
  min-height: 44px;
  height: 44px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  margin: 0 0 8px;
}
#bbpress-forums form.bbp-login-form fieldset input[type="text"]:focus,
#bbpress-forums form.bbp-login-form fieldset input[type="password"]:focus,
#bbpress-forums form.bbp-login-form fieldset input[type="email"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.12);
}

#bbpress-forums .quicktags-toolbar input { width: auto; }

/* QuickTags formatting buttons (b, i, link, code, etc.) — reset purple CTA styling */
#bbpress-forums .quicktags-toolbar input.ed_button {
  display: inline-block;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink-soft);
  box-shadow: none;
  text-shadow: none;
  min-height: auto;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
#bbpress-forums .quicktags-toolbar input.ed_button:hover,
#bbpress-forums .quicktags-toolbar input.ed_button:focus {
  background: var(--bg-soft);
  border-color: var(--gray-300);
  color: var(--primary);
  transform: none;
  box-shadow: none;
}
#bbpress-forums .quicktags-toolbar {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 5px 6px;
}
#bbpress-forums .wp-editor-container { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }

/* Buttons */
#bbpress-forums button,
#bbpress-forums .button,
#bbpress-forums .button.submit,
#bbpress-forums input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 22px;
  border: 1px solid transparent;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 16px rgba(91, 79, 232, 0.3);
  text-shadow: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
#bbpress-forums button:hover,
#bbpress-forums .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(91, 79, 232, 0.36);
}
.bbp-submit-wrapper { margin-top: 6px; }

/* bbPress pagination (replies) */
#bbpress-forums .bbp-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 0 18px;
}
#bbpress-forums .bbp-pagination-links { display: flex; gap: 6px; flex-wrap: wrap; }
#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
}
#bbpress-forums .bbp-pagination-links span.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* Forum/topic admin links on cards */
.bbp-reply-admin-links,
.bbp-topic-admin-links { display: none; }
.wpfix-post-admin { display: block; }

/* --------------------------------------------------------------------------
   Solved page - toolbar modifiers, empty state
   -------------------------------------------------------------------------- */
.solved-toolbar-search { width: 240px; max-width: 42vw; }
.solved-toolbar-select {
  width: auto;
  min-width: 180px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.solved-empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}
.solved-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  color: #2ecc71;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.solved-empty-icon svg { width: 26px; height: 26px; }
.solved-empty h4 { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.solved-empty p { font-size: 14px; color: var(--gray-600); margin-bottom: 18px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .wpfix-issue-header { padding: 22px 20px; }
  .wpfix-issue-title { font-size: 22px; }
  .wpfix-issue-lead,
  .wpfix-reply {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }
  .wpfix-post-author { flex-direction: row; align-items: center; }
  #bbpress-forums fieldset.bbp-form { padding: 20px; }
}
@media (max-width: 560px) {
  .wpfix-issue-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .wpfix-meta-dot { display: none; }
}

/* --------------------------------------------------------------------------
   Single forum view (issue category page)
   -------------------------------------------------------------------------- */
.wpfix-forum { max-width: none; }

.wpfix-forum-head {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 26px 30px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wpfix-forum-head-main { min-width: 0; }
.wpfix-forum-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.wpfix-forum-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}
.wpfix-forum-meta span { display: inline-flex; align-items: center; gap: 6px; }
.wpfix-forum-meta svg { width: 14px; height: 14px; color: var(--gray-500); flex-shrink: 0; }
.wpfix-forum-head-actions { flex-shrink: 0; }

#bbpress-forums .btn-forum-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(91, 79, 232, 0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
#bbpress-forums .btn-forum-new svg { width: 15px; height: 15px; }
#bbpress-forums .btn-forum-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(91, 79, 232, 0.32);
  text-decoration: none;
  color: #fff;
}

/* Topic list reuses the All Issues table design. */
.wpfix-forum-table.issues-table { margin-bottom: 32px; }
.wpfix-forum-table .issue-cell { min-width: 0; }
.wpfix-forum-table .issues-row { cursor: pointer; }

/* Prevent the generic #bbpress-forums a:hover underline from showing on
   clickable issue rows and inside their meta text. */
#bbpress-forums .issues-row,
#bbpress-forums .issues-row:hover,
#bbpress-forums .issues-row * { text-decoration: none; }

/* Priority colors (kept consistent with the single issue header). */
.priority-cell.priority-free { color: #2ecc71; }
.priority-cell.priority-priority { color: #7c5cff; }
.priority-cell.priority-emergency { color: #ff5c5c; }

/* Subscribe / unsubscribe toggle styled like the toolbar buttons. */
#bbpress-forums .subscription-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  transition: border-color .15s ease, color .15s ease;
}
#bbpress-forums .subscription-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* Pagination spacing inside the forum page. */
.wpfix-forum .bbp-pagination { margin: 18px 0; }

/* New topic form inherits the reply/submit fieldset styling. */
.wpfix-forum #bbpress-forums fieldset.bbp-form { max-width: none; }

/* Empty state when a forum has no topics. */
.wpfix-forum-empty {
  text-align: center;
  padding: 56px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  margin-bottom: 24px;
}
.wpfix-forum-empty h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; color: var(--ink); }
.wpfix-forum-empty p { font-size: 14px; color: var(--gray-600); }

/* Responsive: stack the forum header and the table rows on small screens. */
@media (max-width: 768px) {
  .wpfix-forum-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
  .wpfix-forum-title { font-size: 22px; }
}
@media (max-width: 560px) {
  .wpfix-forum-meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .btn-forum-new { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   Structured intake fields (issue details)
   Shown in the new/edit topic form to give the AI better context.
   -------------------------------------------------------------------------- */
.wpfix-issue-fields {
  margin: 18px 0 4px;
  padding: 18px 18px 6px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  background: var(--primary-50);
}
.wpfix-issue-fields__heading {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wpfix-issue-fields__intro {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.wpfix-issue-fields__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.wpfix-issue-field { display: flex; flex-direction: column; }
.wpfix-issue-field--textarea,
.wpfix-issue-field--code,
.wpfix-issue-field--conditional { grid-column: 1 / -1; }

.wpfix-issue-field label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.wpfix-issue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}
.wpfix-issue-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wpfix-issue-input::placeholder { color: #9aa0b4; opacity: 1; }
.wpfix-issue-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-100);
}
textarea.wpfix-issue-input { resize: vertical; min-height: 38px; }
.wpfix-issue-input--code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: #0f1020;
  color: #e7e9f5;
  border-color: #2a2c45;
}
.wpfix-issue-input--code::placeholder { color: #6b7090; }
.wpfix-issue-input--code:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.35);
}
.wpfix-issue-help {
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8a8fa3;
}

/* Highlight the HTML/CSS field when the chosen category is frontend-related. */
.wpfix-issue-field--conditional { transition: background 0.2s ease, border-radius 0.2s ease; }
.wpfix-issue-field--conditional.is-highlighted {
  background: var(--primary-100);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: -12px -12px 0;
}
.wpfix-issue-field--conditional.is-highlighted .wpfix-issue-dot { background: var(--primary-dark); }

@media (max-width: 640px) {
  .wpfix-issue-fields__grid { grid-template-columns: 1fr; }
  .wpfix-issue-fields { padding: 16px 14px 4px; }
}

/* ==========================================================================
   Forums index (issue categories)
   A polished, theme-consistent layout for the bbPress forum root: hero with
   live stats, a search toolbar and a responsive grid of category cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.forums-hero {
  background: linear-gradient(180deg, var(--primary-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 48px 0 40px;
  position: relative;
  overflow: hidden;
}
.forums-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(91, 79, 232, 0.08) 0%, transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.forums-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  position: relative;
}
.forums-hero-title { min-width: 0; max-width: 540px; }
.forums-hero-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.forums-hero-title h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.15;
}
.forums-hero-title p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 480px;
}
.forums-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.forums-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-md);
  min-width: 320px;
}
.forums-hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background .15s ease;
}
.forums-hero-stat:hover { background: var(--bg-soft); }
.forums-hero-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.forums-hero-stat-icon svg { width: 20px; height: 20px; }
.forums-hero-stat-icon.blue { background: #e7edff; color: #4c6fff; }
.forums-hero-stat-icon.purple { background: #f1ecff; color: #7c5cff; }
.forums-hero-stat-icon.orange { background: #fff1e5; color: #ff9f43; }
.forums-hero-stat-icon.green { background: #e8faf0; color: #2ecc71; }
.forums-hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.forums-hero-stat-label {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Page body
   -------------------------------------------------------------------------- */
.forums-page { padding: 32px 0 70px; background: var(--bg-soft); }
.forums-page .wpfix-breadcrumb { margin-bottom: 22px; }

/* Toolbar (search + new-issue button) */
.forums-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
.forums-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.forums-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 79, 232, 0.12);
}
.forums-search svg { width: 16px; height: 16px; color: var(--gray-400); flex-shrink: 0; }
.forums-search input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.forums-search input::placeholder { color: var(--gray-400); }

.forums-toolbar-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(91, 79, 232, 0.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.forums-toolbar-new svg { width: 15px; height: 15px; }
.forums-toolbar-new:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(91, 79, 232, 0.36);
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Forum cards grid
   -------------------------------------------------------------------------- */
.forums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.forum-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.forum-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--forum-color, var(--primary));
  border-radius: 0 4px 4px 0;
  transition: width .2s ease;
}
.forum-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--forum-color, var(--primary)) 8%, transparent) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
  z-index: -1;
}
.forum-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--forum-color, var(--primary)) 35%, var(--border));
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.forum-card:hover::before { width: 6px; }
.forum-card:hover::after { opacity: 1; }
.forum-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.forum-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.forum-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--forum-color, var(--primary)) 0%, color-mix(in srgb, var(--forum-color, var(--primary)) 70%, #000 30%) 100%);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--forum-color, var(--primary)) 32%, transparent);
}
.forum-card-icon svg { width: 22px; height: 22px; }
.forum-card-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
  transition: color .15s ease;
}
.forum-card:hover .forum-card-title { color: var(--forum-color, var(--primary)); }

.forum-card-desc {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 16px;
  /* Clamp to keep cards visually balanced regardless of description length. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.forum-card-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  margin-bottom: 14px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.forum-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-600);
}
.forum-card-stat svg {
  width: 14px;
  height: 14px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.forum-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.forum-card-activity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-500);
}
.forum-card-activity svg {
  width: 13px;
  height: 13px;
  color: var(--gray-400);
  flex-shrink: 0;
}
.forum-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gray-500);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.forum-card-arrow svg { width: 15px; height: 15px; }
.forum-card:hover .forum-card-arrow {
  background: var(--forum-color, var(--primary));
  color: #fff;
  transform: translateX(2px);
}

/* Subscription toggle wrapper (logged-in users) */
.forums-subscribe-wrap { margin-top: 26px; }

/* Empty state reuses the single-forum empty look */
.forums-page .wpfix-forum-empty { margin-top: 0; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .forums-hero { padding: 40px 0 32px; }
  .forums-hero-title h2 { font-size: 28px; }
}
@media (max-width: 768px) {
  .forums-hero-inner { flex-direction: column; }
  .forums-hero-stats { width: 100%; min-width: 0; }
  .forums-toolbar { flex-wrap: wrap; }
  .forums-toolbar-new { width: 100%; justify-content: center; }
  .forums-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .forums-hero-title h2 { font-size: 24px; }
  .forums-hero-stats { grid-template-columns: 1fr; gap: 6px; padding: 14px; }
  .forums-hero-stat { padding: 6px 8px; }
}

/* ==========================================================================
   Forum search results (wpfix-search-page)
   Restyles bbPress's stock search page so it matches the forums look:
   a header card, the shared forums toolbar and a card list of results.
   ========================================================================== */

.wpfix-search-page { max-width: 980px; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Search header
   -------------------------------------------------------------------------- */
.wpfix-search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 30px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.wpfix-search-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(91, 79, 232, 0.07) 0%, transparent 60%),
    radial-gradient(55% 80% at 0% 100%, rgba(124, 58, 237, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
.wpfix-search-head > * { position: relative; }
.wpfix-search-head-main { min-width: 0; max-width: 640px; }

.wpfix-search-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.wpfix-search-eyebrow svg { width: 13px; height: 13px; }

.wpfix-search-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.18;
  margin-bottom: 8px;
}
.wpfix-search-query {
  background: linear-gradient(120deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.wpfix-search-subtitle {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 560px;
  margin: 0;
}

.wpfix-search-head-actions { display: flex; align-items: center; gap: 10px; }

/* --------------------------------------------------------------------------
   Toolbar (search + all-categories link)
   -------------------------------------------------------------------------- */
.wpfix-search-toolbar { margin-bottom: 24px; }

.wpfix-search-toolbar .forums-search {
  flex: 1;
  min-width: 0;
}
.wpfix-search-toolbar .forums-search input { font-size: 15px; }

.forums-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, color .15s ease;
}
.forums-toolbar-link svg { width: 15px; height: 15px; }
.forums-toolbar-link:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Results list
   -------------------------------------------------------------------------- */
.wpfix-search-results {
  display: block;
  width: 100%;
}

.wpfix-search-result {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 18px;
  margin-bottom: 14px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
  isolation: isolate;
}
.wpfix-search-result:last-child { margin-bottom: 0; }
.wpfix-search-result::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transition: width .18s ease;
}
.wpfix-search-result--forum::before { background: var(--forum-color, var(--primary)); }
.wpfix-search-result--reply::before { background: var(--gray-400); }

.wpfix-search-result:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--forum-color, var(--primary)) 30%, var(--border));
  box-shadow: var(--shadow-md);
}
.wpfix-search-result:hover::before { width: 5px; }

.wpfix-search-result-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

/* Type chip */
.wpfix-search-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary);
  border: 1px solid var(--primary-100);
}
.wpfix-search-type svg { width: 13px; height: 13px; }
.wpfix-search-type--topic { background: var(--primary-50); color: var(--primary); border-color: var(--primary-100); }
.wpfix-search-type--reply { background: #f3f4f8; color: var(--gray-600); border-color: var(--border); }
.wpfix-search-type--forum {
  background: color-mix(in srgb, var(--forum-color, var(--primary)) 10%, #fff);
  color: color-mix(in srgb, var(--forum-color, var(--primary)) 78%, #000);
  border-color: color-mix(in srgb, var(--forum-color, var(--primary)) 24%, var(--border-soft));
}

.wpfix-search-result--topic .status-badge { margin-bottom: 0; }

.wpfix-search-context {
  font-size: 12.5px;
  color: var(--gray-600);
}

.wpfix-search-result-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.35;
  margin: 2px 0 8px;
}
#bbpress-forums .wpfix-search-result-title a,
#bbpress-forums .wpfix-search-context a {
  color: inherit;
  text-decoration: none;
}
#bbpress-forums .wpfix-search-result-title a:hover { color: var(--primary); }
#bbpress-forums .wpfix-search-context a { color: var(--ink-soft); font-weight: 600; }
#bbpress-forums .wpfix-search-context a:hover { color: var(--primary); }

.wpfix-search-result-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wpfix-search-result-excerpt--muted { color: var(--gray-400); font-style: italic; }

.wpfix-search-result-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--gray-500);
}
.wpfix-search-result-meta .avatar {
  width: 26px;
  height: 26px;
  font-size: 10px;
  margin-right: 2px;
}
.wpfix-search-result-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.wpfix-search-result-meta svg { width: 13px; height: 13px; color: var(--gray-400); flex-shrink: 0; }
.wpfix-search-result-forum {
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  padding: 2px 9px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
}
.wpfix-meta-dot { color: var(--gray-400); }

/* Floating "open" arrow for reply cards. */
.wpfix-search-result-arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
  z-index: 1;
}
.wpfix-search-result-arrow svg { width: 15px; height: 15px; }
.wpfix-search-result-arrow:hover {
  background: var(--primary);
  color: #fff;
  transform: translateX(2px);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Empty state
   -------------------------------------------------------------------------- */
.wpfix-search-empty {
  text-align: center;
  padding: 56px 28px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.wpfix-search-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--gray-400);
  box-shadow: var(--shadow-sm);
}
.wpfix-search-empty-icon svg { width: 28px; height: 28px; }
.wpfix-search-empty h3 { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.wpfix-search-empty p { font-size: 14px; color: var(--gray-600); max-width: 440px; margin: 0 auto 20px; line-height: 1.6; }
.wpfix-search-empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Pagination (inherits bbPress markup, themed like the topic pagination)
   -------------------------------------------------------------------------- */
.wpfix-search-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--gray-500);
}
.wpfix-search-pagination .bbp-pagination-count { color: var(--gray-600); }
.wpfix-search-pagination .bbp-pagination-links a,
.wpfix-search-pagination .bbp-pagination-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  margin: 0 2px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease;
}
.wpfix-search-pagination .bbp-pagination-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.wpfix-search-pagination .bbp-pagination-links .current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Standalone search form (widget / [bbp-search] shortcode)
   -------------------------------------------------------------------------- */
.wpfix-search-form .forums-search { width: 100%; padding: 9px 9px 9px 14px; }
.wpfix-search-submit {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wpfix-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(91, 79, 232, 0.28);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .wpfix-search-head { padding: 22px 20px; }
  .wpfix-search-title { font-size: 23px; }
  .wpfix-search-head-actions { width: 100%; }
  .wpfix-search-head-actions .btn-forum-new { width: 100%; justify-content: center; }
  .wpfix-search-toolbar { flex-wrap: wrap; }
  .wpfix-search-toolbar .forums-toolbar-link { width: 100%; justify-content: center; }
  .wpfix-result-arrow { display: none; }
}
@media (max-width: 560px) {
  .wpfix-search-result { padding: 18px 16px 16px; }
  .wpfix-search-result-title { font-size: 15.5px; }
  .wpfix-search-result-meta { gap: 6px; font-size: 12px; }
}

