/* Botoes do sistema em estilo unico (24/11/2026): .btn (e variacoes), Anterior/Proximo (pager) e paginacao.
   Cor da marca: vinho #82283f. Prefixo "html body" so para vencer o CSS do tema sem usar !important em tudo. */

/* ---------- base ---------- */
html body .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-width: 1.5px;
  border-style: solid;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
html body .btn:focus-visible { outline: 3px solid rgba(130, 40, 63, 0.35); outline-offset: 2px; box-shadow: none; }
html body .btn:active { transform: translateY(1px); }
html body .btn.disabled,
html body .btn:disabled,
html body .btn[disabled] { opacity: 0.5; pointer-events: none; box-shadow: none; }

html body .btn-sm { padding: 6px 15px; font-size: 0.85rem; }
html body .btn-lg { padding: 14px 32px; font-size: 1.08rem; }

/* ---------- principal: cheio vinho ---------- */
html body .btn-primary {
  background-color: #82283f;
  border-color: #82283f;
  color: #fff;
}
html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn-primary:active {
  background-color: #671f32;
  border-color: #671f32;
  color: #fff;
  box-shadow: 0 6px 16px rgba(130, 40, 63, 0.3);
  transform: translateY(-1px);
}

/* ---------- secundario: contornado ---------- */
html body .btn-default,
html body .btn-secondary,
html body .btn-outline-primary,
html body a.btn:not([class*="btn-"]),
html body button.btn:not([class*="btn-"]) {
  background-color: #fff;
  border-color: #82283f;
  color: #82283f;
}
html body .btn-default:hover,
html body .btn-default:focus,
html body .btn-secondary:hover,
html body .btn-secondary:focus,
html body .btn-outline-primary:hover,
html body a.btn:not([class*="btn-"]):hover,
html body button.btn:not([class*="btn-"]):hover {
  background-color: #82283f;
  border-color: #82283f;
  color: #fff;
  box-shadow: 0 6px 16px rgba(130, 40, 63, 0.25);
  transform: translateY(-1px);
}

/* ---------- semanticos ---------- */
html body .btn-success { background-color: #1e7e5a; border-color: #1e7e5a; color: #fff; }
html body .btn-success:hover, html body .btn-success:focus { background-color: #17644a; border-color: #17644a; color: #fff; transform: translateY(-1px); }
html body .btn-danger { background-color: #b3261e; border-color: #b3261e; color: #fff; }
html body .btn-danger:hover, html body .btn-danger:focus { background-color: #8e1e18; border-color: #8e1e18; color: #fff; transform: translateY(-1px); }
html body .btn-warning { background-color: #f1b434; border-color: #f1b434; color: #3a2a00; }
html body .btn-warning:hover, html body .btn-warning:focus { background-color: #d99d1d; border-color: #d99d1d; color: #3a2a00; transform: translateY(-1px); }
html body .btn-info { background-color: #1c7aa3; border-color: #1c7aa3; color: #fff; }
html body .btn-info:hover, html body .btn-info:focus { background-color: #166285; border-color: #166285; color: #fff; transform: translateY(-1px); }

/* ---------- link-botao ---------- */
html body .btn-link { background: transparent; border-color: transparent; color: #82283f; text-decoration: underline; }
html body .btn-link:hover { background: #f5e8ed; color: #671f32; border-color: transparent; box-shadow: none; }

/* ---------- Anterior / Proximo (navegacao entre artigos) ---------- */
html body ul.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 26px 0 8px;
  padding: 0;
  list-style: none;
  text-align: left;
}
html body ul.pager li { float: none; display: block; margin: 0; padding: 0; }
html body ul.pager li.previous { margin-right: auto; }
html body ul.pager li.next { margin-left: auto; }
/* seletores com a mesma forca do tema (ul.pager.pagenav a.hasTooltip) */
html body ul.pager.pagenav li > a.hasTooltip,
html body ul.pager li > a,
html body ul.pager li > span {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 24px !important;
  border: 1.5px solid #82283f !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #82283f !important;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
html body ul.pager.pagenav li > a.hasTooltip:hover,
html body ul.pager.pagenav li > a.hasTooltip:focus,
html body ul.pager li > a:hover,
html body ul.pager li > a:focus-visible {
  background: #82283f !important;
  color: #fff !important;
  border-color: #82283f !important;
  box-shadow: 0 6px 16px rgba(130, 40, 63, 0.28);
  transform: translateY(-1px);
  outline: 0;
}
html body ul.pager.pagenav li > a.hasTooltip:active { background: #671f32 !important; border-color: #671f32 !important; color: #fff !important; transform: none; }
html body ul.pager li.disabled > a,
html body ul.pager li.disabled > span { opacity: 0.45; pointer-events: none; }
/* esconde so o icone vazio antigo; o texto Anterior/Proximo continua e ganha setas proprias */
html body ul.pager li > a [class^="icon-"] { display: none; }
html body ul.pager li.previous > a::before,
html body ul.pager li.next > a::after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 0.8rem;
}
html body ul.pager li.previous > a::before { content: "\f053"; }
html body ul.pager li.next > a::after { content: "\f054"; }

/* ---------- paginacao (numeros de pagina) ---------- */
html body ul.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px 0 10px;
  padding: 0;
  list-style: none;
}
html body ul.pagination .page-item { margin: 0; }
html body ul.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #e3d6da;
  border-radius: 999px;
  background: #fff;
  color: #82283f;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(38, 50, 58, 0.06);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
html body ul.pagination a.page-link:hover,
html body ul.pagination a.page-link:focus-visible {
  background: #f5e8ed;
  border-color: #82283f;
  color: #671f32;
  transform: translateY(-1px);
  outline: 0;
}
html body ul.pagination .active .page-link,
html body ul.pagination .active .page-link:hover { background: #82283f; border-color: #82283f; color: #fff; transform: none; }
html body ul.pagination .disabled .page-link { opacity: 0.45; pointer-events: none; }

/* ---------- celular ---------- */
@media (max-width: 575px) {
  html body ul.pager li { flex: 1 1 100%; }
  html body ul.pager li > a { width: 100%; justify-content: center; }
  html body ul.pagination .page-link { min-width: 38px; height: 38px; padding: 0 10px; }
}

/* paginacao: raio redondo tambem no primeiro e no ultimo botao (o tema forca raio 0 nas pontas) */
html body ul.pagination .page-item .page-link,
html body ul.pagination .page-item:first-child .page-link,
html body ul.pagination .page-item:last-child .page-link,
html body ul.pagination li > a { border-radius: 999px !important; }
html body ul.pagination .page-item:not(:first-child) .page-link { margin-left: 0; }
