/* ==========================================================================
   MuDallas Forum — visual alinhado ao template dk-purple
   Tokens / tipografia / navbar / logo / mu-card
   ========================================================================== */

:root {
  /* Fundos */
  --bg-page: #050b0f;
  --bg-dark: #080d12;
  --bg-panel: #0b0d0e;
  --bg-panel-light: #111417;
  --bg-input: #121416;

  /* Dourado */
  --gold: #c8872f;
  --gold-light: #e0a24a;
  --gold-bright: #ffb84d;
  --gold-dark: #6d4217;

  /* Bordas */
  --border-dark: #24201a;
  --border-gold: #5d3b16;
  --border-gold-light: #9b6728;

  /* Textos */
  --text-primary: #e6e2da;
  --text-secondary: #9d9990;
  --text-muted: #67645f;
  --text-white: #ffffff;

  /* Status */
  --success: #28b463;
  --danger: #c92b1d;
  --warning: #d88a27;

  /* RGB */
  --bg-page-rgb: 5, 11, 15;
  --bg-dark-rgb: 8, 13, 18;
  --bg-panel-rgb: 11, 13, 14;
  --bg-input-rgb: 18, 20, 22;
  --gold-rgb: 200, 135, 47;
  --gold-light-rgb: 224, 162, 74;
  --gold-bright-rgb: 255, 184, 77;
  --gold-dark-rgb: 109, 66, 23;
  --text-white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;

  /* Alphas */
  --bg-page-72: rgba(var(--bg-page-rgb), 0.72);
  --bg-page-85: rgba(var(--bg-page-rgb), 0.85);
  --bg-page-95: rgba(var(--bg-page-rgb), 0.95);
  --bg-input-98: rgba(var(--bg-input-rgb), 0.98);
  --bg-dark-98: rgba(var(--bg-dark-rgb), 0.98);
  --gold-00: rgba(var(--gold-rgb), 0);
  --gold-08: rgba(var(--gold-rgb), 0.08);
  --gold-18: rgba(var(--gold-rgb), 0.18);
  --gold-28: rgba(var(--gold-rgb), 0.28);
  --gold-45: rgba(var(--gold-rgb), 0.45);
  --gold-70: rgba(var(--gold-rgb), 0.7);
  --gold-light-18: rgba(var(--gold-light-rgb), 0.18);
  --black-00: rgba(var(--black-rgb), 0);
  --black-50: rgba(var(--black-rgb), 0.5);
  --text-white-08: rgba(var(--text-white-rgb), 0.08);

  /* Box padrão (.mu-card) */
  --mu-card-border: #4f3518;
  --mu-card-header-border: #252018;
  --mu-card-title: #d3a454;
  --mu-card-title-lg: #d9ad61;
  --mu-card-header-tint-rgb: 44, 34, 20;
  --mu-card-header-tint-28: rgba(var(--mu-card-header-tint-rgb), 0.28);

  /* Inputs */
  --mu-input-border: #25231f;
  --mu-input-border-focus: #9c6625;
  --mu-input-text: #d8d8d8;
  --mu-input-placeholder: #65615b;

  /* Compat aliases usados no forum */
  --md-bg: var(--bg-page);
  --md-surface: var(--bg-panel);
  --md-accent: var(--gold);
  --md-text: var(--text-primary);
  --md-muted: var(--text-secondary);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Público — fundo igual ao site principal
   -------------------------------------------------------------------------- */

body.public-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
  background-image: url("../img/background_1.jpeg") !important;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  /* Mantém o overlay (::before) atrás do conteúdo sem forçar z-index nos filhos */
  isolation: isolate;
}

body.public-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: #000000a1;
  pointer-events: none;
  z-index: -1;
}

/* --------------------------------------------------------------------------
   Navbar superior — faixa igual ao dk-purple
   -------------------------------------------------------------------------- */

body.public-body header .navbar {
  background: var(--bg-page-72);
  border-bottom: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding-top: 10px;
  padding-bottom: 10px;
  z-index: 1030;
  overflow: visible;
}

body.public-body header .navbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--bg-page) 0%,
    var(--gold) 50%,
    var(--bg-page) 100%
  );
}

body.public-body header .navbar .container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.public-body .forum-nav-desktop {
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

body.public-body .forum-nav-desktop .navbar-nav {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  margin-bottom: 0 !important;
  overflow: visible;
}

body.public-body .forum-nav-desktop .nav-item {
  margin: 0 0.25rem 0 0;
  display: flex;
  position: relative;
}

body.public-body .forum-nav-desktop .nav-link,
body.public-body .forum-offcanvas .nav-link {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 0.85rem 1rem !important;
  border: 1px solid transparent;
  border-radius: 0;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 44px;
  text-decoration: none;
  background-image: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% 0%;
  transition: color 0.3s ease, background-size 0.35s ease, filter 0.3s ease;
}

body.public-body .forum-nav-desktop .nav-link:hover,
body.public-body .forum-nav-desktop .nav-link:focus,
body.public-body .forum-nav-desktop .nav-link:active,
body.public-body .forum-nav-desktop .nav-link.active,
body.public-body .forum-offcanvas .nav-link:hover,
body.public-body .forum-offcanvas .nav-link:focus,
body.public-body .forum-offcanvas .nav-link:active,
body.public-body .forum-offcanvas .nav-link.active {
  color: var(--text-white) !important;
  background-color: transparent;
  background-size: 100% 100%;
  border-radius: 0;
}

/* Botão Site — sempre destacado */
body.public-body .forum-nav-desktop .nav-link.nav-link-site,
body.public-body .forum-offcanvas .nav-link.nav-link-site {
  color: #17100a !important;
  background-image: none;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  border-color: var(--border-gold-light);
  margin-right: 0.35rem;
}

body.public-body .forum-nav-desktop .nav-link.nav-link-site:hover,
body.public-body .forum-nav-desktop .nav-link.nav-link-site:focus,
body.public-body .forum-nav-desktop .nav-link.nav-link-site:active,
body.public-body .forum-offcanvas .nav-link.nav-link-site:hover,
body.public-body .forum-offcanvas .nav-link.nav-link-site:focus,
body.public-body .forum-offcanvas .nav-link.nav-link-site:active {
  color: #0c0906 !important;
  background: linear-gradient(180deg, #f0b85a 0%, var(--gold-light) 40%, var(--gold) 100%);
  background-size: auto;
  filter: brightness(1.06);
}

body.public-body header .navbar-toggler {
  border: 1px solid var(--gold);
  border-radius: 0;
  padding: 0.35rem 0.55rem;
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
}

body.public-body header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem var(--gold-28);
}

body.public-body header .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* Offcanvas mobile — painel lateral fixo (fora do fluxo da página) */
body.public-body .forum-offcanvas.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  visibility: hidden;
  background-color: var(--bg-page);
  background-clip: padding-box;
  outline: 0;
  border-right: 1px solid var(--gold-45);
  transition: transform 0.3s ease-in-out;
  --bs-offcanvas-width: min(300px, 86vw);
  width: var(--bs-offcanvas-width);
  height: 100vh;
  height: 100dvh;
}

body.public-body .forum-offcanvas.offcanvas.show {
  visibility: visible;
  transform: none;
}

body.public-body .offcanvas-backdrop {
  position: fixed;
  z-index: 1075;
}

body.public-body .forum-offcanvas .offcanvas-header {
  border-bottom: 1px solid var(--gold-45);
  padding: 0.85rem 1rem;
}

body.public-body .forum-offcanvas .offcanvas-title {
  color: var(--gold-light);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0;
}

body.public-body .forum-offcanvas .offcanvas-body {
  padding: 0.75rem 1rem 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
}

body.public-body .forum-offcanvas .navbar-nav {
  flex-direction: column;
  width: 100%;
  margin-bottom: 0;
}

body.public-body .forum-offcanvas .nav-item {
  margin: 0 0 0.35rem;
  display: block;
  width: 100%;
}

body.public-body .forum-offcanvas .nav-link {
  width: 100%;
  justify-content: flex-start;
  padding: 0.75rem 1rem !important;
}

body.public-body .forum-offcanvas .nav-link.nav-link-site {
  margin-right: 0;
}

body.public-body .forum-offcanvas .nav-item.dropdown {
  display: block;
}

/* Submenus: expandem para baixo só dentro do painel lateral */
body.public-body .forum-offcanvas .dropdown-menu {
  position: static !important;
  float: none;
  width: 100%;
  transform: none !important;
  inset: auto !important;
  margin: 0 !important;
  border: 0;
  border-left: 2px solid var(--gold);
  border-radius: 0;
  box-shadow: none;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.25rem 0;
}

body.public-body .forum-offcanvas .dropdown-item {
  padding-left: 1.25rem;
}

body.public-body .forum-offcanvas .dropdown-toggle::after {
  margin-left: auto;
}

body.public-body .forum-offcanvas .nav-link.dropdown-toggle {
  justify-content: space-between;
}

body.public-body .forum-offcanvas .search-form {
  max-width: none;
  width: 100%;
  margin-top: 0.85rem;
}

/* Busca no menu */
body.public-body .search-form {
  max-width: 240px;
}

body.public-body .search-form .form-control {
  background: linear-gradient(180deg, #151719 0%, #0d0f10 100%);
  border: 1px solid var(--mu-input-border);
  border-radius: 0;
  color: var(--mu-input-text);
}

body.public-body .search-form .form-control::placeholder {
  color: var(--mu-input-placeholder);
}

body.public-body .search-form .form-control:focus {
  border-color: var(--mu-input-border-focus);
  box-shadow: 0 0 0 0.15rem var(--gold-08);
  background: #121416;
  color: var(--text-white);
}

body.public-body .search-form .btn {
  border-radius: 0;
  border: 1px solid var(--gold);
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #17100a;
  font-weight: 600;
}

body.public-body .search-form .btn:hover {
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold-light) 55%, var(--gold) 100%);
  border-color: var(--gold-bright);
  color: #17100a;
}

/* --------------------------------------------------------------------------
   Faixa do logo — centralizado abaixo do menu
   -------------------------------------------------------------------------- */

body.public-body header .header {
  margin-top: 56px;
  text-align: center;
}

body.public-body header .header-brand {
  display: inline-block;
}

body.public-body header .header-brand img {
  display: block;
  max-width: 400px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  padding-top: 48px;
  padding-bottom: 12px;
}

@media (max-width: 575.98px) {
  body.public-body header .header-brand img {
    max-width: 260px;
    padding-top: 28px;
  }
}

/* --------------------------------------------------------------------------
   Box padrão (.mu-card) — mesmo estilo do site
   -------------------------------------------------------------------------- */

.mu-card {
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(180deg, var(--bg-input-98) 0%, var(--bg-dark-98) 100%) padding-box,
    linear-gradient(75deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: -1px -1px 10px #c8872f61;
  color: var(--text-primary);
}

.mu-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-00), var(--gold-bright), var(--gold), var(--gold-00));
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.mu-card-header {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-bottom: 1px solid var(--mu-card-header-border);
  background: linear-gradient(180deg, var(--mu-card-header-tint-28), var(--black-00));
  border-radius: 5px 5px 0 0;
  position: relative;
}

.mu-card-header::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-00), var(--gold-light), var(--gold-00));
  opacity: 0.75;
  pointer-events: none;
}

.mu-card-title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--mu-card-title);
}

.mu-card-body {
  padding: 20px 18px 18px;
}

/* --------------------------------------------------------------------------
   Cards de postagem (grid) — mesmo visual mu-card
   -------------------------------------------------------------------------- */

.news-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text-primary) !important;
  border: 1px solid transparent;
  border-radius: 5px;
  background:
    linear-gradient(180deg, var(--bg-input-98) 0%, var(--bg-dark-98) 100%) padding-box,
    linear-gradient(75deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%) border-box;
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: -1px -1px 10px #c8872f61;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-00), var(--gold-bright), var(--gold), var(--gold-00));
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: -1px -1px 16px rgba(200, 135, 47, 0.55);
  color: var(--text-primary) !important;
}

.news-card-cover {
  height: 180px;
  width: 100%;
  object-fit: cover;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--mu-card-header-border);
}

.news-card-cover--empty {
  color: var(--text-secondary);
}

.news-card .card-body {
  padding: 16px 18px 18px;
}

.news-card .card-title {
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.news-card .card-text {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--gold) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.news-article-cover {
  max-height: 420px;
  object-fit: cover;
  border: 1px solid var(--border-gold);
  border-radius: 5px;
}

.news-content {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-primary);
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 1rem 0;
  border: 1px solid var(--border-dark);
}

.news-content h2,
.news-content h3,
.news-content h4 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: "Poppins", sans-serif;
  color: var(--mu-card-title);
}

.news-content a {
  color: var(--gold-light);
}

.news-content iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 5px;
  margin: 1rem 0;
  background: #000;
}

/* --------------------------------------------------------------------------
   Tipografia de página / empty / footer / pagination
   -------------------------------------------------------------------------- */

.page-heading {
  font-family: "Poppins", sans-serif;
  color: var(--text-white);
}

.page-heading + .text-secondary,
.mu-card-body > .text-secondary {
  color: var(--text-secondary) !important;
}

.empty-state {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2rem 1rem;
  color: var(--text-secondary);
}

.site-footer {
  color: var(--text-white);
  background: var(--black-50);
  border-top: 1px solid transparent !important;
  border-image: linear-gradient(90deg, var(--bg-page), var(--gold), var(--bg-page)) 1;
  margin-top: auto;
}

.pagination .page-link {
  background: var(--bg-dark-98);
  border-color: var(--border-gold);
  color: var(--text-primary);
  border-radius: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
}

.pagination .page-link:hover {
  background: var(--gold-18);
  border-color: var(--gold);
  color: var(--text-white);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-color: var(--gold);
  color: var(--text-white);
}

.pagination .page-item.disabled .page-link {
  background: var(--bg-panel);
  border-color: var(--border-dark);
  color: var(--text-muted);
}

.btn-primary {
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-bg: var(--gold-light);
  --bs-btn-hover-border-color: var(--gold-light);
  --bs-btn-color: #17100a;
  --bs-btn-hover-color: #17100a;
  --bs-btn-active-bg: var(--gold-dark);
  --bs-btn-active-border-color: var(--gold-dark);
  --bs-btn-active-color: var(--text-white);
  border-radius: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.btn-outline-light {
  border-radius: 0;
  border-color: var(--border-gold-light);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
}

.btn-outline-light:hover {
  background: var(--gold-18);
  border-color: var(--gold);
  color: var(--text-white);
}

.badge.text-bg-primary {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%) !important;
  color: var(--text-white) !important;
  border-radius: 0;
  font-family: "Poppins", sans-serif;
}

/* --------------------------------------------------------------------------
   Dropdowns do menu (Links / Moderação / Navegar)
   -------------------------------------------------------------------------- */

/* Desktop: flutua abaixo do item (Bootstrap usa static dentro de .navbar) */
body.public-body .forum-nav-desktop .dropdown-menu,
body.public-body .forum-nav-desktop .dropdown-menu[data-bs-popper],
body.public-body .forum-nav-desktop .dropdown-menu[data-bs-popper="static"] {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  bottom: auto !important;
  inset: 100% auto auto 0 !important;
  float: none;
  transform: none !important;
  margin-top: 0 !important;
  z-index: 1050;
  min-width: 12rem;
}

body.public-body .forum-dropdown {
  background: var(--bg-page-95);
  border: 1px solid var(--gold-45);
  border-radius: 0;
  padding: 0.35rem 0;
  margin-top: 0 !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

body.public-body .forum-dropdown .dropdown-item {
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 0.55rem 1rem;
}

body.public-body .forum-dropdown .dropdown-item:hover,
body.public-body .forum-dropdown .dropdown-item:focus {
  background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--text-white);
}

body.public-body .navbar .dropdown-toggle::after,
body.public-body .forum-nav-desktop .dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
}

/* --------------------------------------------------------------------------
   Home — Moderação (categorias) + Tópicos
   -------------------------------------------------------------------------- */

.forum-cat-list {
  margin: 0;
}

.forum-cat-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--mu-card-header-border);
}

.forum-cat-row:last-child {
  border-bottom: 0;
}

.forum-cat-main {
  flex: 1 1 auto;
  min-width: 0;
}

.forum-cat-title {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--gold-light);
  text-decoration: none;
}

.forum-cat-title:hover {
  color: var(--gold-bright);
}

.forum-cat-desc {
  margin-top: 0.25rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
}

.forum-cat-meta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  max-width: 58%;
}

.forum-stat {
  text-align: center;
  min-width: 52px;
  line-height: 1.15;
}

.forum-stat-num {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.forum-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
}

.forum-last-card {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  min-width: 260px;
  max-width: 340px;
  padding: 0.65rem 0.8rem;
  text-decoration: none;
  color: inherit;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.forum-last-card:hover {
  background: #222;
  border-color: rgba(200, 135, 47, 0.35);
  color: inherit;
}

.forum-last-card--empty {
  opacity: 0.7;
  cursor: default;
}

.forum-last-thumb {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.forum-last-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.forum-last-initial {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-light);
}

.forum-last-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.forum-last-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-bottom: 0.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.forum-last-meta {
  font-size: 0.74rem;
  color: #b0b0b0;
  line-height: 1.2;
}

.topic-list {
  margin: 0;
}

.topic-row {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--mu-card-header-border);
}

.topic-row:last-child {
  border-bottom: 0;
}

.topic-title {
  display: block;
  color: var(--text-white);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
}

.topic-title:hover {
  color: var(--gold-light);
}

.topic-meta {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* --------------------------------------------------------------------------
   Listagem de categoria — linhas de postagem
   -------------------------------------------------------------------------- */

.post-row-list {
  margin: 0;
}

.post-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid var(--mu-card-header-border);
}

.post-row-cover {
  flex: 0 0 72px;
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
  border: 1px solid var(--mu-card-header-border);
  display: block;
  align-self: center;
}

.post-row-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-row:last-child {
  border-bottom: 0;
}

.post-row-main {
  flex: 1 1 auto;
  min-width: 0;
}

.post-row-title {
  display: block;
  color: var(--text-white);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
}

.post-row-title:hover {
  color: var(--gold-light);
}

.post-row-sub {
  margin-top: 0.2rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.post-row-aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.post-author-badge,
.post-date-badge {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border-gold);
  background: linear-gradient(180deg, var(--gold-18), var(--black-00));
  color: var(--gold-light);
}

.post-date-badge {
  color: var(--text-secondary);
  border-color: var(--border-dark);
  background: rgba(var(--bg-panel-rgb), 0.6);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.forum-crumb {
  color: var(--gold-light);
  text-decoration: none;
}

.forum-crumb:hover {
  color: var(--gold-bright);
}

@media (max-width: 767.98px) {
  .forum-cat-row {
    flex-direction: column;
    align-items: stretch;
  }

  .post-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .post-row-cover {
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
  }

  .post-row-main {
    flex: 1 1 calc(100% - 80px);
  }

  .forum-cat-meta {
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }

  .forum-last-card {
    min-width: 0;
    max-width: none;
    flex: 1;
  }

  .post-row-aside {
    width: 100%;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 991.98px) {
  .news-card-cover {
    height: 160px;
  }

  .news-article-cover {
    max-height: 240px;
  }
}

/* --------------------------------------------------------------------------
   Admin — shell com sidebar, topbar e painéis
   -------------------------------------------------------------------------- */

body.admin-body {
  background: #0b0d12;
  min-height: 100vh;
  font-family: "Roboto", sans-serif;
  color: #e8eaed;
}

body.admin-app {
  overflow-x: hidden;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
}

.admin-sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: linear-gradient(180deg, #12151c 0%, #0d1016 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1040;
}

.admin-sidebar-brand {
  padding: 1.1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.admin-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  color: #17100a;
  flex: 0 0 auto;
}

.admin-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-brand-text strong {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.admin-brand-text small {
  color: #9aa0a6;
  font-size: 0.72rem;
}

.admin-sidebar-nav {
  padding: 1rem 0.75rem;
  overflow-y: auto;
  flex: 1 1 auto;
}

.admin-nav-label {
  font-family: "Poppins", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6f7680;
  padding: 0.85rem 0.75rem 0.35rem;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  color: #c4c9d1;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-nav-link i {
  width: 1.1rem;
  text-align: center;
  opacity: 0.9;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.admin-nav-link.is-active {
  background: linear-gradient(90deg, rgba(200, 135, 47, 0.22), rgba(200, 135, 47, 0.06));
  color: #fff;
  box-shadow: inset 3px 0 0 var(--gold);
}

.admin-sidebar-foot {
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.admin-user-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.admin-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c212b;
  border: 1px solid rgba(200, 135, 47, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: var(--gold-light);
  flex: 0 0 auto;
}

.admin-user-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.admin-user-meta strong {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-meta small {
  color: #8b929c;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-logout-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c4c9d1;
  background: #161a22;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.admin-logout-btn:hover {
  color: #fff;
  border-color: rgba(201, 43, 29, 0.45);
  background: rgba(201, 43, 29, 0.15);
}

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  height: 64px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(13, 16, 22, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.admin-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151922;
  color: #fff;
}

.admin-topbar-title {
  flex: 1;
  min-width: 0;
}

.admin-topbar-title h1 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-content {
  padding: 1.35rem 1.35rem 2rem;
}

.admin-backdrop {
  display: none;
}

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.admin-eyebrow {
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.admin-lead {
  color: #9aa0a6;
  font-size: 0.92rem;
}

.admin-back {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 0.86rem;
}

.admin-back:hover {
  color: var(--gold-light);
}

.admin-stat-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #12161e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
}

.admin-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 135, 47, 0.14);
  color: var(--gold-light);
  flex: 0 0 auto;
}

.admin-stat-card.is-success .admin-stat-icon {
  background: rgba(40, 180, 99, 0.14);
  color: #3ddc84;
}

.admin-stat-card.is-warning .admin-stat-icon {
  background: rgba(216, 138, 39, 0.14);
  color: #ffb84d;
}

.admin-stat-card.is-info .admin-stat-icon {
  background: rgba(90, 140, 255, 0.14);
  color: #8ab4ff;
}

.admin-stat-label {
  color: #9aa0a6;
  font-size: 0.78rem;
}

.admin-stat-value {
  font-family: "Poppins", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}

.admin-panel {
  background: #12161e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
}

.admin-panel-head,
.admin-panel-foot {
  padding: 0.95rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-panel-foot {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.admin-panel-head h2 {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
}

.admin-panel-body {
  padding: 1.15rem;
}

.admin-label {
  color: #b6bcc6;
  font-size: 0.82rem;
  font-weight: 500;
}

.admin-control,
.admin-body .admin-control {
  background: #0e1218 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #e8eaed !important;
  border-radius: 10px !important;
}

.admin-control:focus {
  border-color: rgba(200, 135, 47, 0.55) !important;
  box-shadow: 0 0 0 0.2rem rgba(200, 135, 47, 0.12) !important;
}

.admin-table {
  --bs-table-bg: transparent;
  --bs-table-color: #d7dbe2;
  --bs-table-border-color: rgba(255, 255, 255, 0.06);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.03);
  --bs-table-striped-bg: transparent;
  color: #d7dbe2;
  margin-bottom: 0;
}

.admin-table thead th {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8b929c;
  background: #0f131a;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.admin-table td {
  vertical-align: middle;
}

.admin-slug {
  font-size: 0.75rem;
  color: #8ab4ff !important;
  background: transparent;
}

.admin-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-thumb--empty {
  background: #0e1218;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #6f7680;
}

.admin-badge {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
}

.admin-badge.is-success {
  background: rgba(40, 180, 99, 0.16);
  color: #3ddc84;
}

.admin-badge.is-warning {
  background: rgba(216, 138, 39, 0.16);
  color: #ffb84d;
}

.admin-badge.is-info {
  background: rgba(56, 132, 255, 0.16);
  color: #6eb0ff;
}

.admin-btn-secondary,
.admin-btn-ghost,
.admin-btn-icon {
  border-radius: 10px;
}

.admin-btn-secondary {
  background: #1a2030;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}

.admin-btn-secondary:hover {
  background: #222a3d;
  border-color: rgba(200, 135, 47, 0.35);
  color: #fff;
}

.admin-btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c4c9d1;
}

.admin-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.admin-btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #151a24;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #c4c9d1;
}

.admin-btn-icon:hover {
  color: #fff;
  border-color: rgba(200, 135, 47, 0.4);
}

.admin-btn-icon.is-danger:hover {
  color: #ff8a80;
  border-color: rgba(201, 43, 29, 0.45);
  background: rgba(201, 43, 29, 0.12);
}

body.admin-body .btn-primary {
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
}

/* Login */
.admin-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(200, 135, 47, 0.12), transparent 60%),
    #0b0d12;
}

.admin-login-wrap {
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
}

.admin-login-card {
  background: #12161e;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.admin-login-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.admin-login-brand strong {
  display: block;
  font-family: "Poppins", sans-serif;
}

.admin-login-brand small {
  color: #9aa0a6;
}

.cover-preview {
  max-width: 220px;
  max-height: 140px;
  object-fit: cover;
}

@media (max-width: 991.98px) {
  .admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1035;
  }

  body.admin-sidebar-open .admin-backdrop {
    display: block;
  }

  .admin-backdrop[hidden] {
    display: none !important;
  }

  body.admin-sidebar-open .admin-backdrop[hidden] {
    display: block !important;
  }

  .admin-content {
    padding: 1rem 1rem 1.5rem;
  }
}
