/* Lightweight, non-invasive tweaks for Techjob modal rendering */
.job-modal .job-title,
.modal [data-job-title]{
  /* keep theme intact; JS may inline font-size on big titles */
}

.job-modal .job-description h3,
.job-modal .job-description p{
  margin: 0 0 10px 0;
}

/* Ensure description shows as plain text with line breaks */
.job-modal .job-description,
.job-modal [data-job-description],
.modal .job-description{
  white-space: pre-line;
}

/* ============================
   Premium lock (24h) - Home cards
   Applied via JS by adding .inn9jb-locked24h on a card.
   ============================ */

.inn9jb-locked24h .inn9jb-company-frost{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.inn9jb-locked24h .inn9jb-company-frost::before{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  /* Não mostrar borda/caixa ao redor do texto "Seja Premium" */
  border: none;
}

.inn9jb-locked24h .inn9jb-company-frost > *{
  position: relative;
  z-index: 2;
}

.inn9jb-lock-overlay{
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.inn9jb-lock-overlay .inn9jb-lock-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.inn9jb-lock-overlay svg{
  width: 28px;
  height: 28px;
  opacity: .30;
  fill: #FF7A1A;
}

.inn9jb-lock-overlay .inn9jb-lock-small{
  /* Ajuste para caber "PREMIUM" inteiro dentro do ícone */
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,122,26,.70);
  letter-spacing: .4px;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

/* Hover overlay CTA (matches provided modal style) */
.inn9jb-premium-hover{
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .20s ease, transform .20s ease;
  pointer-events: none;
}

.inn9jb-locked24h:hover .inn9jb-premium-hover{
  opacity: 1;
  transform: translateY(0);
}

.inn9jb-premium-hover .inn9jb-premium-card{
  width: min(520px, 92%);
  border-radius: 18px;
  background: rgba(25,25,25,.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,122,26,.22);
  box-shadow: 0 20px 60px rgba(0,0,0,.55);
  padding: 18px 18px 16px;
  text-align: center;
}

.inn9jb-premium-hover .inn9jb-premium-title{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: #FF7A1A;
  margin: 0 0 8px;
}

.inn9jb-premium-hover .inn9jb-premium-text{
  color: rgba(255,255,255,.88);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.35;
}

.inn9jb-premium-hover .inn9jb-premium-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #FF7A1A;
  color: #fff;
  font-weight: 800;
  padding: 12px 18px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform .18s ease, filter .18s ease;
}

.inn9jb-premium-hover .inn9jb-premium-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}


/* INN9_LOCK_OVERLAY_CSS_HIDE: segurança para nunca mostrar o overlay gigante do premium na HOME */
body.home .inn9jb-premium-hover{display:none!important;}

/* ------------------------------------------------------------
 * MOBILE FIXES — Employer Dashboard
 * ------------------------------------------------------------ */

@media (max-width: 768px){
  /* (1) Modal "Cadastrar Vaga": full-screen com scroll */
  #inn9jb-create-job-modal > div{
    padding: 0 !important;
  }
  #inn9jb-create-job-modal .bg-dark-card{
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* (3) Menu Vagas: manter ações dentro do card (sem estourar para fora) */
  .inn9jb-employer-shell [data-job-id].bg-dark-card > div.flex.items-center.justify-between{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .inn9jb-employer-shell [data-job-id].bg-dark-card > div.flex.items-center.justify-between > div.flex.items-center.gap-6{
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .inn9jb-employer-shell [data-job-id].bg-dark-card > div.flex.items-center.justify-between > div.flex.gap-2{
    width: 100%;
    justify-content: flex-end;
  }
}
