:root {
  --brand-primary: #007096;
  --brand-secondary: #e11d48;
  --brand-magazine: #9333ea;
  --brand-eventos: #83004c;
  --brand-produtos: #f59e0b;
  --pm-mnav-bar-h: 55px; /* área clicável */
  --pm-mnav-wrap-h: 200px; /* "colchão" visual anti-gap */
}

body {
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    sans-serif;
  background: #f8fafc;
  scroll-behavior: smooth;
  min-height: 100dvh;
}

html,
body {
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

/* Menu: garante que nada empurre para fora */
#menu-overlay,
#menu-panel {
  max-width: 100%;
}

#menu-panel * {
  min-width: 0; /* importante em flex/grid */
  overflow-wrap: anywhere; /* quebra strings enormes */
  word-break: break-word;
}
#menu-overlay svg {
  stroke-width: 2;
}

/* =========================================================
   MENU MOBILE BOTTOM (estilo YouTube) + "altura extra" anti-furado
   - aparece só em mobile/tablet (lg:hidden no HTML)
   ========================================================= */

/* wrapper alto (não clicável), só pra “pintar/blur” a área inteira */
.pm-mnav-wrap {
  position: fixed;
  left: 0;
  right: 0;

  /* ancora pelo safe-area */
  bottom: env(safe-area-inset-bottom);

  /* e empurra o excedente pra fora */
  transform: translateY(calc(var(--pm-mnav-wrap-h) - var(--pm-mnav-bar-h)));

  height: var(--pm-mnav-wrap-h);
  z-index: 60;
  pointer-events: none;
}

/* camada visual que cobre toda a altura (blur + translucidez) */
.pm-mnav-wrap::before {
  content: "";
  position: absolute;
  inset: 0;

  /* Topo (80px): bem visível. Abaixo: some gradualmente (mas mantém o “colchão”) */
  background: linear-gradient(
    to bottom,
    rgba(241, 245, 249, 0.86) 0,
    rgba(241, 245, 249, 0.86) var(--pm-mnav-bar-h),
    rgba(241, 245, 249, 0.25) calc(var(--pm-mnav-bar-h) + 40px),
    rgba(241, 245, 249, 0) 100%
  );

  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

/* barra clicável “de verdade” fica no topo do wrapper */
.pm-mnav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pm-mnav-bar-h);
  pointer-events: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
}

/* respeita safe-area do iPhone (home indicator) */
.pm-mnav-inner {
  height: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.pm-mnav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-decoration: none;
  color: #0f172a;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  opacity: 0.92;
  -webkit-tap-highlight-color: transparent;
}

.pm-mnav-item.emfoco {
  color: white;
}
.pm-mnav-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.pm-mnav-item:active {
  transform: translateY(1px);
}

.pm-mnav-ico {
  font-size: 20px;
  line-height: 1;
}

.pm-mnav-txt {
  letter-spacing: 0.01em;
}

/* opcional: um hover sutil pra tablets com mouse/trackpad */
@media (hover: hover) {
  .pm-mnav-item:hover {
    opacity: 1;
  }
}

/***************
POSTS LIKE
**********/
.pmLikeBtn.is-liked ~ .pm-like-count,
.pmLikeBtn.is-liked .pm-like-count {
  color: rgba(202, 219, 255, 0.95);
}
.pmLikeBtn.is-liked .pm-like-count-inline {
  color: #2563eb;
}

/* Progress bar (se você estiver usando) */
.reading-progress {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--brand-primary),
    color-mix(in srgb, var(--brand-primary), white 30%)
  );
  width: 0%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: width 0.2s ease;
}

/* ==============================
   Tipografia no tema
   ============================== */

.pm-title-wide {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.025em;

  margin: 2.75rem 0 1.25rem;

  color: #0f172a; /* slate-900 */
  border-left: 4px solid var(--brand-secondary);
  padding-left: 0.75rem;
}

/* Sidebar scroll elegante (desktop) */
@media (min-width: 1024px) {
  .sticky-sidebar {
    position: sticky;
    top: 100px;
    height: calc(100vh - 120px);
    overflow-y: hidden;
    padding-right: 4px;
  }

  .sticky-sidebar:hover {
    overflow-y: auto;
  }

  .sticky-sidebar::-webkit-scrollbar {
    width: 4px;
  }

  .sticky-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .sticky-sidebar::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
  }

  .sticky-sidebar::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
  }
}

/* Overlay menu — fundo escuro elegante */
#menu-overlay {
  visibility: hidden;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  background-color: #0f172a; /* slate-900 */
}

#menu-overlay.active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Footer ads container (substitui .fixed-bottom do Bootstrap) */
.bpp-container-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding: 0px 10px;
  pointer-events: none; /* evita bloquear cliques do site */
}

/* O anúncio em si pode receber clique */
.bpp-container-footer > * {
  pointer-events: auto;
}

@media (max-width: 767px) {
  .bpp-container-footer {
    bottom: 50px;
  }
}

/* =========================================================
   ANIMAÇÃO RADAR
   - Usa box-shadow expansivo (não causa reflow)
   - Chama atenção sem afetar layout ou CLS
   ========================================================= */
@keyframes radar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }
  70% {
    /* Alcance visual do “eco” */
    box-shadow: 0 0 0 20px rgba(220, 38, 38, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Classe aplicada ao botão flutuante */
.animate-radar {
  /* 2s equilibra visibilidade e conforto visual */
  animation: radar-pulse 2s infinite;
}

/* =========================================================
   TRANSIÇÃO DE ESCALA (efeito elástico premium)
   ========================================================= */
.btn-bounce {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================================
   ACESSIBILIDADE — REDUÇÃO DE MOVIMENTO
   Respeita preferências do usuário (iOS, Android, macOS, Windows)
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .animate-radar {
    animation: none;
  }

  .btn-bounce {
    transition: none;
  }
}

.pm-no-border * {
  border: 0 !important;
  box-shadow: none !important; /* opcional, mata “borda fake” */
  outline: 0 !important; /* opcional */
}

.pm-no-border img {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
  CODIGOS LEGADOS
  DEVEM SER TRATADOS EM PRODUÇÃO
   ========================================================= */

.parceiros.sidebar {
  aspect-ratio: initial !important;
  height: auto;
}

/*
Template de Gerar Widgets de Produtos da Amazon - apenas posts de noticias
*/

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.product-prime {
  color: #007185;
  font-size: 12px;
  /* Amazon Prime color */
}

.price-symbol {
  font-size: 0.8em;
  vertical-align: super;
}

.price-whole {
  font-size: 1.5em;
  font-weight: bold;
}

.product-title {
  font-size: 1rem;
  text-decoration: none;
}

.amazon-button-modern {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: linear-gradient(to right, #ff9900, #ffb84d);
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.amazon-button-modern a {
  color: inherit;
  text-decoration: none;
}

.amazon-button-modern:hover {
  color: white;
  text-decoration: none;
  background: linear-gradient(to right, #e68a00, #ffad33);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rakuten-button-modern {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: linear-gradient(
    to right,
    #bf0000,
    #e60000
  ); /* Vermelho Rakuten */
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  transition: all 0.2s ease-in-out;
}

.rakuten-button-modern:hover {
  color: white;
  text-decoration: none;
  background: linear-gradient(
    to right,
    #a00000,
    #cc0000
  ); /* mais escuro ao hover */
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media only screen and (max-width: 600px) {
  .product-title {
    font-size: 12px;
    letter-spacing: -0.8px;
    text-decoration: none;
  }

  .price-symbol {
    font-size: 0.5em;
    vertical-align: super;
  }

  .price-whole {
    font-size: 1em;
    font-weight: bold;
  }
}

/* Fade utilitário (reutilizável) */
.pm-fade-opacity {
  transition: opacity 0.22s ease;
}

/* Stack utilitário para ícones com troca por classes */
.pm-icon-stack {
  position: relative;
}

.pm-icon-stack > .pm-icon {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.pm-icon-stack > .pm-icon.is-active {
  opacity: 1;
}

/* Layout SEM Tailwind (evita “sumiu do build”) */
.pm-home-icons {
  margin: 4px 0;
}

.pm-home-icons__grid {
  display: grid;

  /* desktop: 4 colunas com tamanho “compacto” */
  grid-template-columns: repeat(4, minmax(0, 120px));
  gap: 10px;

  /* centraliza e evita ocupar a lateral toda */
  justify-content: center;

  /* segura a largura máxima do bloco */
  max-width: 560px;
  margin: 0 auto;
}

.pm-home-icons__item {
  text-decoration: none;
}

.pm-home-icons__card {
  width: 80px;
  height: 80px;
  /* fixa compacto no desktop */
  aspect-ratio: auto;
  /* desliga o 1/1 que estoura */
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  /* menor */
  transition: all 0.15s ease;
}

.pm-home-icons__item:hover .pm-home-icons__card {
  border-color: #fecdd3;
  background: rgba(255, 241, 242, 0.55);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* “Quadradinho” do ícone */
.pm-home-icons__ico {
  width: 22px;
  height: 22px;
  border-radius: 16px;
  border: 1px solid #f1f5f9;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
  /* rose */
  transition: all 0.15s ease;
}

.pm-home-icons__item:hover .pm-home-icons__ico {
  background: #fff;
  border-color: #ffe4e6;
  transform: scale(1.03);
}

/* FIX ícones (o que geralmente resolve o “quadrado vermelho”) */
.pm-home-icons__ico svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pm-home-icons__label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #0f172a;
}

/* mantém 4 por linha também no mobile (sem quebrar) */
@media (max-width: 480px) {
  .pm-home-icons__grid {
    gap: 8px;
  }

  .pm-home-icons__item {
    flex-basis: calc(25% - 6px);
  }

  .pm-home-icons__ico {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .pm-home-icons__label {
    font-size: 11px;
  }
}
