/* =============================================================
   Gerador de Artes de Vagas — UI (botão + dropdown + toast)
   Carregado APENAS na página /rh.html (modo interno do RH).
   A página pública trabalhe-conosco.html não inclui este CSS.
   ============================================================= */

/* O wrapper só aparece quando o body marca o modo RH ativo. */
.rh-artes-wrapper {
  display: none;
}

body.rh-artes-active .rh-artes-wrapper {
  display: block;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 50;
}

/* Em modo RH precisamos liberar overflow do card pra o dropdown
   não ser cortado pelo border-radius/overflow do .vaga-card. */
body.rh-artes-active .vaga-card {
  overflow: visible !important;
}

/* Reserva espaço só no HEADER do card para o título não passar por baixo
   do botão "Artes RH" (posicionado absoluto no canto superior direito).
   O resto do conteúdo (listas, CTA) usa a largura inteira do card. */
body.rh-artes-active .vaga-card-header {
  padding-right: 110px;
}

/* Esconde o badge "Destaque" em modo RH (o botão ocupa esse canto). */
body.rh-artes-active .vaga-badge {
  display: none !important;
}

/* Banner sticky de modo RH (fica abaixo do header fixo do site). */
.rh-mode-banner {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #8B2458;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.65rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ========== BOTÃO PRINCIPAL "ARTES RH" ========== */
.rh-artes-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #8B2458;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px 7px 12px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(139, 36, 88, 0.28);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.rh-artes-btn:hover {
  background: #591637;
  box-shadow: 0 6px 18px rgba(89, 22, 55, 0.4);
  transform: translateY(-1px);
}

.rh-artes-btn:focus-visible {
  outline: 2px solid #F28A00;
  outline-offset: 2px;
}

.rh-artes-btn[disabled] {
  cursor: wait;
  opacity: 0.7;
}

.rh-artes-btn--baixado {
  background: #16A34A;
}
.rh-artes-btn--baixado:hover {
  background: #128a3e;
}

.rh-artes-btn--erro {
  background: #991B1B;
}
.rh-artes-btn--erro:hover {
  background: #7e1414;
}

.rh-artes-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ========== DROPDOWN ========== */
.rh-artes-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 6px;
  display: none;
  flex-direction: column;
}

.rh-artes-menu.is-open {
  display: flex;
}

.rh-artes-menu button {
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1F2430;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

.rh-artes-menu button:hover,
.rh-artes-menu button:focus-visible {
  background: rgba(139, 36, 88, 0.08);
  color: #8B2458;
  outline: none;
}

/* ========== TOAST ========== */
.rh-artes-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: rgba(15, 18, 25, 0.95);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.rh-artes-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ========== MOBILE ========== */
@media (max-width: 640px) {
  body.rh-artes-active .vaga-card-header {
    padding-right: 95px;
  }
  .rh-artes-btn {
    padding: 6px 12px 6px 10px;
    font-size: 10px;
  }
  .rh-artes-menu {
    min-width: 150px;
  }
  .rh-mode-banner {
    font-size: 0.78rem;
    padding: 0.55rem 0.85rem;
  }
}
