/* ============================================================
   Unified Forum —  forum.css
   ============================================================ */


/* Topic Row (actual visible plane)  */
body.bbpress.single-forum {
  outline: 25px solid red !important;
}


body.bbpress .unified-forum .forum-topic-row {
  position: relative;
  z-index: 10;

  display: grid; /* ← NEW */
  grid-template-columns: auto 48px 1fr;
  column-gap: 18px; /* ← NEW */
  align-items: center; /* ← NEW */

  margin: 18px 0 !important;
  padding: 18px 22px !important;

  background-color: #f9f8f4 !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15) !important;
}




body.bbpress .unified-forum article.forum-topic-row:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}


.unified-forum .topic-type-badge {
  flex: 0 0 auto;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-top: 2px;
}
/* Topic Type accents */
.unified-forum .type-general {
  border-left-color: #1a3b2e; /* heritage green */
  color: #1a3b2e;
}

.unified-forum .type-technical {
  border-left-color: #6c8c74; /* sage */
  color: #4f6a5c;
}

.unified-forum .type-for-sale {
  border-left-color: #b59b55; /* gold */
  color: #8e7a3d;
}

.unified-forum .type-out-and-about {
  border-left-color: #8cbfe6; /* soft blue */
  color: #3e6f95;
}
.unified-forum .topic-main {
  flex: 1;
}

.unified-forum .topic-title {
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.unified-forum .topic-title a {
  text-decoration: none;
  color: #18382b;
}

.unified-forum .topic-title a:hover {
  text-decoration: underline;
}

.unified-forum .topic-meta {
  font-size: 0.9rem;
  color: #6b6b6b;
}
/* Topic Type selector — New Topic form */
.bbp-topic-type-field {
  margin-bottom: 16px;
}

.bbp-topic-type-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.bbp-topic-type-field select {
  max-width: 320px;
  padding: 6px 8px;
}

.bbp-topic-type-field .required {
  color: #b7410e;
}
.unified-forum article.forum-topic-row:hover {
  background-color: #fffef9;
}


/* Topic Type Badge (icon + label) */
.unified-forum .topic-type-badge {

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  margin-bottom: 6px;
  opacity: 0.9;
}

.unified-forum .topic-type-badge i {
  font-size: 0.8rem;
  opacity: 0.85;
}

/* Colour accents (very restrained) */
.unified-forum .type-technical { color: #4f6a5c; }
.unified-forum .type-general { color: #1a3b2e; }
.unified-forum .type-for-sale { color: #8e7a3d; }
.unified-forum .type-wanted { color: #6b6b6b; }
.unified-forum .type-out-and-about { color: #3e6f95; }


/* Forum topic canvas */
.unified-forum {
  padding-left: 8px;
  padding-right: 8px;
}

body.forum #main.site-main {
  background: #eae3d1 !important; /* soft cream */
}

/* =========================================================
   Unified Forum – Canvas Background
   ========================================================= */

.forum-canvas {
  background-color: #1a3b2e !important;
  padding: 32px 38px 48px;   /* keep your refined side spacing */
  border-radius: 16px;
}

.unified-forum .forum-topic-row .topic-type-badge {
  grid-column: 1;
  white-space: nowrap;
  padding-right: 14px;
  border-right: 1px solid rgba(26,59,46,0.25);
}
.unified-forum .forum-topic-row .topic-thumb {
  grid-column: 2;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eae3d1;
}
.unified-forum .forum-topic-row .topic-main {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Topic thumbnail slot – lives BETWEEN badge and text */
.unified-forum .forum-topic-row::before {
  content: "";

  grid-column: 2;           /* ← THIS is the key fix */
  grid-row: 1 / span 2;     /* spans title + meta neatly */

  width: 48px;
  height: 48px;

  background-color: #eae3d1;
  border-radius: 6px;

  align-self: center;
  justify-self: center;

  opacity: 0.85;
}
.unified-forum .forum-topic-row::before {
  background-color: #eae3d1;
  border: 1px solid rgba(0,0,0,0.06);
  background-image: url('/path/to/icon.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}
@media (max-width: 768px) {
  body.bbpress.single-forum .unified-forum {
    outline: 6px solid hotpink !important;
  }
}
@media (max-width: 768px) {

  body.bbpress.single-forum
  .unified-forum
  article.forum-topic-row {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
  }

}

/* ============================================================
   Forum — Create Topic (v1)
   Album-style 20/80 hero + Cancel/Save UX
   ============================================================ */

.forum-create-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 14px 90px; /* bottom space for float actions */
}

/* Top bar */
.forum-create-topbar {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 10px;
  margin: 6px 0 14px;
}

.forum-create-title {
  text-align: center;
  line-height: 1.1;
}

.forum-create-kicker {
  font-size: 12px;
  opacity: 0.8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forum-create-h1 {
  margin: 4px 0 0;
  font-size: 26px;
}

/* Hero 20/80 */
.forum-create-hero {
  margin: 0 0 14px;
  border-radius: 18px;
  padding: 14px;
}

.forum-create-hero-inner {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 14px;
  align-items: stretch;
}

.forum-create-hero-left { display: flex; }

.forum-create-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.forum-create-frame-placeholder {
  height: 100%;
  min-height: 120px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.12);
}

.forum-create-frame-icon {
  font-size: 34px;
  opacity: 0.9;
}

.forum-create-h2 {
  margin: 2px 0 6px;
  font-size: 18px;
}

.forum-create-intro {
  margin: 0 0 10px;
  opacity: 0.95;
}

/* Type pills (UI-only v1) */
.forum-create-typehint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.forum-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.15);
}

.forum-type-pill.technical { }
.forum-type-pill.general { }
.forum-type-pill.sale { }
.forum-type-pill.outandabout { }

.forum-type-note {
  font-size: 12px;
  opacity: 0.8;
}

/* Form wrapper */
.forum-create-form {
  border-radius: 18px;
  padding: 14px;
}

.forum-create-form-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Float actions (mobile-first, hidden on desktop) */
.forum-create-floatactions {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  z-index: 9999;
}

/* Desktop: hide float actions */
@media (min-width: 900px) {
  .forum-create-floatactions { display: none; }
}

/* Mobile/tablet: tighten topbar */
@media (max-width: 899px) {
  .forum-create-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .forum-create-title { text-align: left; }

  .forum-create-hero-inner {
    grid-template-columns: 1fr;
  }

  .forum-create-frame-placeholder {
    min-height: 90px;
  }

  .forum-create-wrap {
    padding-bottom: 98px;
  }
}

/* sunday */

/* ============================================================
   Forum Create Topic — bbPress form restyle (v1.1)
   ============================================================ */

.forum-create-form .bbp-topic-form,
.forum-create-form form#new-post {
  background: transparent;
  padding: 0;
  margin: 0;
}

.forum-create-form .bbp-template-notice {
  background: rgba(252, 189, 52, 0.15); /* soft amber */
  border: 1px solid rgba(252, 189, 52, 0.4);
  border-radius: 10px;
  font-size: 13px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.forum-create-form .bbp-topic-form legend,
.forum-create-form .bbp-topic-form h3 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 8px;
}
/* Topic Title block */
.forum-create-form #bbp_topic_title {
  width: 100%;
  font-size: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.25);
  margin-bottom: 18px;
}

.forum-create-form label[for="bbp_topic_title"] {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

/* Hide redundant bbPress chrome on Create Topic page */
.forum-create-form legend {
  display: none;
}

.forum-create-form .bbp-template-notice {
  display: none;
}



/* ============================================================
   Forum Create Topic — 20/80 Photo + Text layout
   ============================================================ */

/* Turn the editor wrapper into a grid */
.page-template-page-forum-create-topic
.bbp-the-content-wrapper {
  display: grid;
  grid-template-columns: 20% 80%;
  gap: 18px;
  align-items: stretch;
  margin-top: 16px;
}
/* Featured photo placeholder (left column) */
.page-template-page-forum-create-topic
.bbp-the-content-wrapper::before {
  content: "Click to add a featured photo";
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 2px dashed rgba(26, 59, 46, 0.35);
  background: rgba(26, 59, 46, 0.04);
  font-size: 13px;
  text-align: center;
  padding: 12px;
  min-height: 220px;
}
/* Keep editor UI bound to text column */
.page-template-page-forum-create-topic
.bbp-the-content-wrapper > *:not(textarea):not(.quicktags-toolbar) {
  grid-column: 2;
}
@media (max-width: 768px) {

  .page-template-page-forum-create-topic
  .bbp-the-content-wrapper {
    grid-template-columns: 1fr;
  }

  .page-template-page-forum-create-topic
  .bbp-the-content-wrapper::before {
    min-height: 140px;
  }

}

  /* ============================================================
   Forum Create Topic v1.2 — Editor Simplification
   ============================================================ */

/* Hide TinyMCE + Quicktags toolbars */
.page-template-page-forum-create-topic
.wp-editor-tools,
.page-template-page-forum-create-topic
.quicktags-toolbar,
.page-template-page-forum-create-topic
.mce-toolbar-grp,
.page-template-page-forum-create-topic
.mce-statusbar {
  display: none !important;
}

/* Remove extra top padding left by hidden toolbars */
.page-template-page-forum-create-topic
.wp-editor-container {
  border-top: none;
}

/* ============================================================
   Forum Create Topic — Hide subscription checkbox
   ============================================================ */

.page-template-page-forum-create-topic
#bbp_topic_subscription,
.page-template-page-forum-create-topic
label[for="bbp_topic_subscription"] {
  display: none !important;
}
/* ============================================================
   Forum Create Topic — Remove bbPress meta fields entirely
   ============================================================ */

/* Hide entire rows */
.page-template-page-forum-create-topic
.bbp-topic-form-forum,
.page-template-page-forum-create-topic
.bbp-topic-form-type,
.page-template-page-forum-create-topic
.bbp-topic-form-status {
  display: none !important;
}

/* Defensive: hide labels/selects if markup differs */
.page-template-page-forum-create-topic
label[for="bbp_forum_id"],
.page-template-page-forum-create-topic
label[for="bbp_topic_type"],
.page-template-page-forum-create-topic
label[for="bbp_topic_status"],
.page-template-page-forum-create-topic
select#bbp_forum_id,
.page-template-page-forum-create-topic
select#bbp_topic_type,
.page-template-page-forum-create-topic
select#bbp_topic_status {
  display: none !important;
}


/* ============================================================
   Forum Create Topic — Paper background correction
   ============================================================ */

/* Ensure the create-topic paper uses site cream */
.page-template-page-forum-create-topic
.forum-create-form.softpaper {
  background: #eae3d1;
}

/* Editor area itself stays white */
.page-template-page-forum-create-topic
.wp-editor-container,
.page-template-page-forum-create-topic
textarea#bbp_topic_content {
  background: #ffffff;
}
