/* ==========================================================================
   The Train Show Viewer Bulletin Board System (BBS)
   Tailored Design System - Warbonnet Red & Locomotive Navy
   ========================================================================== */

:root {
  --navy-950: #03111f;
  --navy-900: #071d33;
  --navy-800: #0b2d4e;
  --navy-700: #12446f;
  --red-700: #a90d16;
  --red-600: #ca1520;
  --red-500: #e02430;
  --gold: #e6b748;
  --gold-light: #f8d875;
  --silver: #d7dde3;
  --paper: #f4f6f8;
  --ink: #16212c;
  --muted: #66717e;
  --line: #d7dee5;
  --green: #177245;
  --card-shadow: 0 4px 14px rgba(3, 17, 31, .07);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #edf1f4 0%, #ffffff 35rem);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--red-600); text-decoration: underline; }

.bbs-container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.bbs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: rgba(3, 17, 31, .98);
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
  backdrop-filter: blur(8px);
}
.bbs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: .75rem 1.25rem;
}
.bbs-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  text-decoration: none;
}
.bbs-brand:hover { text-decoration: none; }
.bbs-logo-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: radial-gradient(circle, var(--red-600), var(--red-700));
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-family: Arial Black, Arial, sans-serif;
  font-size: .85rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}
.bbs-brand-text { display: flex; flex-direction: column; }
.bbs-brand-text strong {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.2;
}
.bbs-brand-text span {
  font-size: .8rem;
  color: var(--gold);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.bbs-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
}
.bbs-nav a {
  padding: .5rem .85rem;
  color: #e2eaf1;
  border-radius: 6px;
  font-weight: 700;
  font-size: .92rem;
  transition: all .15s ease;
}
.bbs-nav a:hover, .bbs-nav a.active {
  color: var(--navy-950);
  background: var(--gold);
  text-decoration: none;
}
.bbs-nav-btn {
  background: var(--red-600) !important;
  color: #fff !important;
}
.bbs-nav-btn:hover {
  background: var(--red-700) !important;
  color: #fff !important;
}
.bbs-main-site-link {
  color: var(--gold-light) !important;
  border: 1px solid rgba(230, 183, 72, .4);
}
.bbs-admin-link {
  color: #d7dde3 !important;
  background: rgba(255, 255, 255, .08);
}

/* ==========================================================================
   Announcement Banner
   ========================================================================== */
.bbs-announcement {
  background: linear-gradient(90deg, #10385e, #071d33);
  color: #f0f6fc;
  padding: .65rem 0;
  font-size: .92rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.bbs-announcement .bbs-container {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.announcement-icon { font-size: 1.1rem; }

/* ==========================================================================
   Main Layout & Heroes
   ========================================================================== */
.bbs-main {
  min-height: 70vh;
  padding: 1.8rem 0 3.5rem;
}

.bbs-flash {
  padding: .9rem 1.25rem;
  margin-bottom: 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
}
.bbs-flash-success { background: #e6f7ec; color: #0d5f2a; border-left: 5px solid var(--green); }
.bbs-flash-error { background: #fde8e9; color: #9e141d; border-left: 5px solid var(--red-600); }
.bbs-flash-info { background: #e9f2fa; color: var(--navy-800); border-left: 5px solid var(--navy-700); }

.bbs-home-hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2.5rem;
  color: white;
  background: radial-gradient(circle at 85% 25%, rgba(230, 183, 72, .18), transparent 20rem), linear-gradient(135deg, var(--navy-950), var(--navy-800));
  border-bottom: 5px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(2, 17, 31, .14);
  margin-bottom: 2rem;
}
.bbs-eyebrow {
  margin: 0 0 .35rem;
  color: var(--gold);
  font-weight: 900;
  letter-spacing: .12em;
  font-size: .82rem;
  text-transform: uppercase;
}
.bbs-home-hero h1 {
  margin: 0 0 .6rem;
  color: #fff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  line-height: 1.15;
}
.bbs-home-hero p {
  max-width: 750px;
  margin: 0 0 1.4rem;
  color: #e2eaf1;
  font-size: 1.05rem;
  line-height: 1.45;
}
.bbs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* ==========================================================================
   Buttons & Tags
   ========================================================================== */
.bbs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .6rem 1.15rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.bbs-btn:hover { text-decoration: none; transform: translateY(-1px); }
.bbs-btn:active { transform: translateY(0); }

.bbs-btn-primary { background: var(--red-600); color: #fff; box-shadow: 0 3px 8px rgba(202, 21, 32, .3); }
.bbs-btn-primary:hover { background: var(--red-700); color: #fff; }

.bbs-btn-secondary { background: var(--navy-700); color: #fff; }
.bbs-btn-secondary:hover { background: var(--navy-900); color: #fff; }

.bbs-btn-gold { background: var(--gold); color: var(--navy-950); }
.bbs-btn-gold:hover { background: var(--gold-light); }

.bbs-btn-ghost { background: #fff; color: var(--navy-800); border: 1px solid var(--line); }
.bbs-btn-ghost:hover { background: #f0f4f8; }

.bbs-btn-tiny {
  padding: .25rem .55rem;
  font-size: .8rem;
  font-weight: 700;
  border-radius: 4px;
  background: #edf2f7;
  color: var(--navy-800);
  border: 1px solid var(--line);
  cursor: pointer;
}
.bbs-btn-tiny:hover { background: var(--navy-800); color: #fff; }
.bbs-btn-tiny-danger { color: var(--red-700); border-color: rgba(202, 21, 32, .3); }
.bbs-btn-tiny-danger:hover { background: var(--red-600); color: #fff; }

.bbs-tag-scale {
  display: inline-block;
  padding: .15rem .55rem;
  color: #fff !important;
  background: var(--red-600, #ca1520) !important;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.bbs-badge-pinned {
  display: inline-block;
  padding: .15rem .55rem;
  background: #fdf2d6;
  color: #8f6507;
  border: 1px solid #ecc94b;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 800;
}
.bbs-badge-locked {
  display: inline-block;
  padding: .15rem .45rem;
  background: #edf2f7;
  color: var(--muted);
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 800;
}
.bbs-badge-normal {
  display: inline-block;
  padding: .15rem .45rem;
  background: #e6f7ec;
  color: #0d5f2a;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 800;
}

/* ==========================================================================
   Categories Grid (Index)
   ========================================================================== */
.bbs-section-title {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.45rem;
  color: var(--navy-900);
  margin: 1.8rem 0 1rem;
}
.bbs-section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.2rem 0 1rem;
}
.bbs-section-header-row .bbs-section-title { margin: 0; }
.bbs-link-action { font-weight: 800; font-size: .92rem; }

.bbs-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .bbs-categories-grid { grid-template-columns: 1fr; }
}

.bbs-category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.bbs-category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(3, 17, 31, .11);
}
.bbs-cat-header {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
}
.bbs-cat-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.bbs-cat-info h3 {
  margin: 0 0 .35rem;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.15rem;
}
.bbs-cat-info h3 a { color: var(--navy-900); }
.bbs-cat-info h3 a:hover { color: var(--red-600); }
.bbs-cat-info p {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4;
}
.bbs-cat-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: #f8fafc;
  border-top: 1px solid #edf1f5;
  font-size: .83rem;
}
.bbs-cat-counts strong { color: var(--navy-900); font-size: .95rem; }
.bbs-cat-latest {
  display: flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bbs-cat-latest a {
  color: var(--navy-800);
  font-weight: 700;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ==========================================================================
   Topic List Table / Rows
   ========================================================================== */
.bbs-topic-list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-bottom: 2rem;
}
.bbs-topic-list-header {
  display: grid;
  grid-template-columns: 1fr 140px 180px;
  gap: 1rem;
  padding: .75rem 1.25rem;
  background: var(--navy-900);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
@media (max-width: 768px) {
  .bbs-topic-list-header { display: none; }
}

.bbs-topic-row {
  display: grid;
  grid-template-columns: 1fr 140px 180px;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #edf1f5;
  transition: background .12s ease;
}
.bbs-topic-row:last-child { border-bottom: 0; }
.bbs-topic-row:hover { background: #f9fbfd; }
.bbs-topic-row.is-pinned-row { background: #fdfdf5; border-left: 4px solid var(--gold); }

.bbs-topic-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-bottom: .25rem;
}
.bbs-topic-link-title {
  color: var(--navy-900);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.35;
}
.bbs-topic-link-title:hover { color: var(--red-600); }

.bbs-topic-submeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
}
.bbs-submeta-cat { color: var(--navy-700); font-weight: 700; }

.bbs-topic-stats-col {
  display: flex;
  flex-direction: column;
  font-size: .85rem;
  color: var(--muted);
}
.bbs-topic-stats-col strong {
  font-size: 1.1rem;
  color: var(--navy-900);
}
.bbs-topic-last-col {
  display: flex;
  flex-direction: column;
  font-size: .82rem;
  color: var(--muted);
}
.bbs-topic-last-col small { color: var(--ink); }

@media (max-width: 768px) {
  .bbs-topic-row {
    grid-template-columns: 1fr;
    gap: .5rem;
  }
  .bbs-topic-stats-col {
    flex-direction: row;
    gap: .75rem;
  }
}

.bbs-empty-row, .bbs-empty-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border-radius: 10px;
}

/* ==========================================================================
   Thread / Discussion View
   ========================================================================== */
.bbs-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}
.bbs-breadcrumbs a { color: var(--navy-700); font-weight: 700; }
.crumb-sep { color: #a0aec0; }
.crumb-current { color: var(--ink); font-weight: 700; }

.bbs-topic-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--line);
}
.bbs-topic-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .45rem;
  font-size: .85rem;
  color: var(--muted);
}
.bbs-topic-title {
  margin: .35rem 0 0;
  font-family: Arial Black, Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--navy-950);
  line-height: 1.2;
}

.bbs-thread {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.bbs-post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
@media (max-width: 768px) {
  .bbs-post-card { grid-template-columns: 1fr; }
}

.bbs-original-post {
  border-top: 4px solid var(--red-600);
}

.bbs-post-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: #f8fafc;
  border-right: 1px solid #edf1f5;
  text-align: center;
}
.bbs-avatar-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  border-radius: 50%;
  color: #fff;
  margin-bottom: .6rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.bbs-author-name {
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1rem;
  word-break: break-word;
}
.bbs-author-rank {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .15rem;
}
.bbs-op-badge {
  margin-top: .6rem;
  padding: .15rem .5rem;
  background: var(--navy-800);
  color: #fff;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bbs-post-main {
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.5rem;
}
.bbs-post-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid #edf1f5;
  font-size: .82rem;
  color: var(--muted);
}
.bbs-post-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.bbs-post-num { font-weight: 700; color: var(--muted); }
.bbs-btn-quote {
  background: #edf2f7;
  border: 1px solid var(--line);
  padding: .2rem .55rem;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--navy-800);
  cursor: pointer;
}
.bbs-btn-quote:hover { background: var(--navy-800); color: #fff; }

.bbs-post-content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  min-height: 80px;
}
.bbs-post-bottombar {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.bbs-like-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .75rem;
  background: #f0f4f8;
  border: 1px solid var(--line);
  border-radius: 20px;
  font-weight: 700;
  font-size: .84rem;
  color: var(--navy-800);
  cursor: pointer;
  transition: all .15s ease;
}
.bbs-like-btn:hover {
  background: #e2eaf1;
  transform: scale(1.04);
}
.bbs-like-btn.is-liked {
  background: #fde8e9;
  border-color: rgba(202, 21, 32, .4);
  color: var(--red-700);
}
.like-count {
  display: inline-block;
  min-width: 18px;
  padding: 0 .35rem;
  background: rgba(0, 0, 0, .07);
  border-radius: 10px;
  font-size: .78rem;
}

/* ==========================================================================
   Quotes & Code blocks inside Posts
   ========================================================================== */
.bbs-quote {
  margin: .8rem 0;
  padding: .75rem 1rem;
  background: #f8fafc;
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: .92rem;
}
.quote-author {
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: .25rem;
  font-size: .84rem;
}
.quote-body { color: #374151; }
.bbs-code {
  background: var(--navy-950);
  color: #a3e635;
  padding: .75rem 1rem;
  border-radius: 6px;
  overflow-x: auto;
  font-family: Consolas, monospace;
  font-size: .88rem;
}

/* ==========================================================================
   Forms & Editor
   ========================================================================== */
.bbs-card-form-wrap, .bbs-reply-section, .bbs-search-box-card, .bbs-admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
}
.bbs-form-header h1 {
  margin: 0 0 .35rem;
  font-family: Arial Black, Arial, sans-serif;
  color: var(--navy-900);
}
.bbs-form-header p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}
.bbs-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
@media (max-width: 768px) {
  .bbs-form-grid { grid-template-columns: 1fr; }
}
.bbs-form-row {
  margin-bottom: 1.2rem;
}
.bbs-form-row label {
  display: block;
  font-weight: 800;
  font-size: .92rem;
  color: var(--navy-900);
  margin-bottom: .35rem;
}
.bbs-form-row .req { color: var(--red-600); }

input[type="text"], input[type="search"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 44px;
  padding: .65rem .85rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(18, 68, 111, .15);
}
textarea { resize: vertical; }

.bbs-editor-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  padding: .45rem .6rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
.bbs-editor-toolbar button {
  padding: .25rem .55rem;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-weight: 800;
  font-size: .8rem;
  cursor: pointer;
}
.bbs-editor-toolbar button:hover {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
}
.toolbar-label { font-size: .78rem; font-weight: 700; color: var(--muted); margin-right: .3rem; }
.bbs-editor-toolbar + textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bbs-preview-box {
  margin-top: .75rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 6px;
  min-height: 60px;
}

.bbs-form-submit-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
}

.bbs-locked-notice {
  padding: 1.25rem;
  background: #edf2f7;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  color: var(--muted);
}

/* ==========================================================================
   Category Hero (Category View)
   ========================================================================== */
.bbs-category-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding: 1.5rem 1.8rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  margin-bottom: 1.5rem;
}
.bbs-category-hero-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bbs-category-hero-icon { font-size: 2.8rem; line-height: 1; }
.bbs-category-hero h1 {
  margin: 0 0 .25rem;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.6rem;
  color: var(--navy-900);
}
.bbs-category-hero p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Search View
   ========================================================================== */
.bbs-search-input-wrap {
  display: flex;
  gap: .65rem;
}
.bbs-search-results-header {
  margin: 1.5rem 0 1rem;
}
.bbs-search-results-header h2 {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.3rem;
  color: var(--navy-900);
}

/* ==========================================================================
   Stats Strip
   ========================================================================== */
.bbs-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: var(--card-shadow);
}
@media (max-width: 640px) {
  .bbs-stats-strip { grid-template-columns: repeat(2, 1fr); }
}
.bbs-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-num {
  font-family: Arial Black, Arial, sans-serif;
  font-size: 1.5rem;
  color: var(--navy-900);
}
.stat-label {
  font-size: .8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ==========================================================================
   Admin Panel Styles
   ========================================================================== */
.bbs-admin-login-card {
  max-width: 440px;
  margin: 3rem auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 2.2rem;
  box-shadow: 0 10px 30px rgba(3, 17, 31, .12);
  text-align: center;
}
.bbs-admin-lock-icon { font-size: 2.6rem; margin-bottom: .5rem; display: inline-block; }
.bbs-admin-login-card h1 {
  margin: 0 0 .5rem;
  font-family: Arial Black, Arial, sans-serif;
  color: var(--navy-900);
}
.bbs-admin-login-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: .92rem;
}

.bbs-admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.bbs-admin-header h1 {
  margin: 0 0 .25rem;
  font-family: Arial Black, Arial, sans-serif;
  color: var(--navy-900);
}
.bbs-admin-header p { margin: 0; color: var(--muted); }
.bbs-admin-header-actions { display: flex; gap: .5rem; }

.bbs-admin-tabs {
  display: flex;
  gap: .4rem;
  border-bottom: 2px solid var(--line);
  margin-bottom: 1.5rem;
}
.bbs-tab {
  padding: .65rem 1.1rem;
  color: var(--navy-700);
  font-weight: 800;
  border-radius: 6px 6px 0 0;
  text-decoration: none;
}
.bbs-tab:hover { background: #e2e8f0; text-decoration: none; }
.bbs-tab.active {
  color: var(--red-600);
  border-bottom: 3px solid var(--red-600);
  background: #fff;
}

.bbs-admin-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.bbs-admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .92rem;
}
.bbs-admin-table th {
  padding: .75rem 1rem;
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 800;
  color: var(--navy-900);
}
.bbs-admin-table td {
  padding: .85rem 1rem;
  border-bottom: 1px solid #edf1f5;
  vertical-align: middle;
}
.bbs-admin-table tr:hover { background: #f8fafc; }
.bbs-admin-actions-cell {
  display: flex;
  gap: .35rem;
  white-space: nowrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bbs-footer {
  background: var(--navy-950);
  color: #94a3b8;
  padding: 2.5rem 0;
  border-top: 3px solid var(--gold);
  margin-top: 4rem;
}
.bbs-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.bbs-footer strong { color: #fff; font-size: 1.05rem; }
.bbs-footer p { margin: .25rem 0 0; font-size: .88rem; }
.bbs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.bbs-footer-links a { color: #cbd5e1; font-weight: 700; font-size: .9rem; }
.bbs-footer-links a:hover { color: var(--gold); text-decoration: none; }
