/* erbfirsts-d5f0b */
/* ERBFirsts Forum — erb-forum.css
   Builds on top of ../erb-style.css
   Pass 1 — Forum Index
   ================================================= */

/* ── Forum Nav ── */
.forum-nav-wrap {
  background: #fff;
  padding: 0 0 4px;
  text-align: center;
}
.forum-nav {
  display: flex;
  width: 106%;
  margin-left: -3%;
  background: var(--forest);
  border-radius: 24px 24px 6px 6px;
  overflow: visible;
  position: relative;
}
.forum-nav-item {
  flex: 1;
  position: relative;
}
.forum-nav-item > a {
  display: block;
  text-align: center;
  padding: 6px 4px;
  color: var(--gold-light);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  cursor: pointer;
}
.forum-nav-item:first-child > a { border-radius: 28px 0 0 6px; }
.forum-nav-item:last-child > a  { border-radius: 0 28px 6px 0; }
.forum-nav-item > a:hover { background: rgba(255,255,255,0.15); }
.forum-nav-item > a.active {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ── Forum page wrapper ── */
.forum-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 4px;
}

/* ── Forum breadcrumb ── */
.forum-breadcrumb {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.forum-breadcrumb a {
  color: var(--forest);
  text-decoration: none;
}
.forum-breadcrumb a:hover { text-decoration: underline; }
.forum-breadcrumb span { margin: 0 4px; color: var(--border); }

/* ── Forum title bar ── */
.forum-title-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0;
  margin-bottom: 4px;
  flex-wrap: wrap;
  gap: 4px;
}
.forum-title-bar h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  color: var(--forest);
  margin: 0;
}
.forum-login-prompt {
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.forum-login-prompt a {
  color: var(--forest);
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--forest);
  padding: 4px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.forum-login-prompt a:hover {
  background: var(--forest);
  color: #fff;
}

/* ── Category table ── */
.forum-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  background: #fff;
  margin-bottom: 4px;
}
.forum-table thead tr {
  background: var(--forest);
  color: #fff;
}
.forum-table thead th {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px;
  text-align: left;
  color: var(--gold-light);
}
.forum-table thead th.num-col {
  text-align: center;
  width: 80px;
}
.forum-table thead th.last-col {
  width: 200px;
}

/* Category rows */
.forum-cat-row {
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
}
.forum-cat-row:last-child { border-bottom: none; }
.forum-cat-row:hover { background: var(--cream); }

.forum-cat-icon {
  width: 48px;
  padding: 4px 0 4px 4px;
  vertical-align: top;
}
.forum-cat-icon .cat-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.forum-cat-info {
  padding: 4px;
  vertical-align: top;
}
.forum-cat-info a.cat-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
  line-height: 1.3;
}
.forum-cat-info a.cat-name:hover {
  color: var(--maroon);
  text-decoration: underline;
}
.forum-cat-info p.cat-desc {
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

.forum-cat-num {
  text-align: center;
  vertical-align: top;
  padding: 4px;
  width: 80px;
}
.num-badge {
  display: inline-block;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--ink);
  line-height: 1;
}
.num-label {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 2px;
}

.forum-cat-last {
  vertical-align: top;
  padding: 4px;
  width: 200px;
}
.last-post-none {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-style: italic;
}
.last-post-info {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.6;
}
.last-post-info a {
  color: var(--forest);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.8rem;
}
.last-post-info a:hover { text-decoration: underline; }
.last-post-date {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

/* ── Forum stats footer bar ── */
.forum-stats-bar {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.forum-stats-bar strong { color: var(--ink); }
.forum-stats-bar .stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.forum-stats-bar .stat-icon { font-size: 1rem; }

/* ── Who's online strip ── */
.forum-online-bar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.forum-online-bar strong { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 650px) {
  .forum-cat-last { display: none; }
  .forum-table thead th.last-col { display: none; }
  .forum-title-bar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .forum-cat-num { display: none; }
  .forum-table thead th.num-col { display: none; }
  .forum-cat-icon { display: none; }
}
