/* Pop-up de apoio (js/apoio.js), no desenho do site: cantos retos, fundo e fios
   do tema escuro do portal (portal.css), botao principal chapado como o
   .btn-solid. Cores fixas, porque ele aparece em paginas de temas diferentes
   (a home e a apuracao clara e escura) e precisa ler igual em todas. */

.em-apoio-fundo {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.em-apoio-fundo.is-on { opacity: 1; }

.em-apoio {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #151515;
  color: #f5f5f5;
  border: 1px solid #2a2a2a;
  border-radius: 0;
  padding: 30px 28px 18px;
  font-family: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  transform: translateY(8px);
  transition: transform 0.22s ease;
}
.em-apoio-fundo.is-on .em-apoio { transform: none; }

.em-apoio-marca { display: block; width: 34px; height: 34px; margin-bottom: 16px; }

.em-apoio h2 {
  margin: 0 0 12px;
  padding-right: 24px;
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #f5f5f5;
  text-wrap: balance;
}
.em-apoio p {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 300;
  line-height: 1.65;
  color: #cccccc;
}

.em-apoio-acoes {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-top: 24px;
}

/* O botao de apoiar e o centro do pop-up: largura toda e bem alto. */
.em-apoio-sim {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: #f5f5f5;
  color: #0a0a0a;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.em-apoio-sim:hover { background: #dc5a6a; color: #ffffff; }
.em-apoio-sim svg { transition: transform 0.2s ease; }
.em-apoio-sim:hover svg { transform: translateX(3px); }

/* A outra porta: o Pix pelo LivePix, com o QR code, menor que o principal e
   separado dele por um fio. */
.em-apoio-pix {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid #2a2a2a;
}
.em-apoio-pix[hidden] { display: none; }
.em-apoio-pix-qr { flex: none; width: 84px; height: 84px; }
.em-apoio .em-apoio-pix p { font-size: 0.82rem; line-height: 1.5; }
.em-apoio-pix strong { color: #f5f5f5; font-weight: 600; }
.em-apoio-pix-link { color: #f5f5f5; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.em-apoio-pix-link:hover { color: #e58092; }

/* A pagina de apoio (/apoio): um link de texto, entre o Pix e o "Agora nao",
   para quem quer ler antes de escolher. */
.em-apoio-todas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 4px;
  border-top: 1px solid #2a2a2a;
  color: #f5f5f5;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.em-apoio-todas:hover { color: #e58092; }
.em-apoio-todas svg { transition: transform 0.2s ease; }
.em-apoio-todas:hover svg { transform: translateX(3px); }

/* "Agora nao": pequeno, discreto, embaixo do principal. */
.em-apoio-nao {
  align-self: center;
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a3a3a3;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
}
.em-apoio-nao:hover { color: #f5f5f5; text-decoration: underline; text-underline-offset: 3px; }

.em-apoio-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
}
.em-apoio-x:hover { color: #f5f5f5; background: #1f1f1f; }

.em-apoio a:focus-visible,
.em-apoio button:focus-visible { outline: 2px solid #dc5a6a; outline-offset: 2px; }

@media (max-width: 420px) {
  .em-apoio { padding: 26px 20px 14px; }
  .em-apoio h2 { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .em-apoio-fundo, .em-apoio { transition: none; }
  .em-apoio { transform: none; }
}
