/* =========================================================
 STAR — Vagas (Match de Vagas) no celular
 - O card ocupa todo o espaço útil entre o topo e a barra de baixo.
 - Os indicadores (Dispensar / Candidatar-se) ficam por cima do card, translúcidos,
   e só aparecem enquanto a pessoa arrasta.
 - Vale para todas as telas: no computador o app também é a coluna estreita de celular.
 ========================================================= */

/* A página vira uma coluna que preenche a tela inteira. */
.jobs-page {
  display: flex; flex-direction: column; padding: 10px 14px 12px;
  --vagas-topo: calc(62px + env(safe-area-inset-top));
  min-height: calc(100vh - var(--vagas-topo) - var(--nav-h) - env(safe-area-inset-bottom));
  min-height: calc(100dvh - var(--vagas-topo) - var(--nav-h) - env(safe-area-inset-bottom));
}
.jobs-page .page-head { margin: 0 0 8px; }
.jobs-page .page-head .muted { display: none; }
.jobs-page .job-toolbar { margin: 0 0 8px; }
.jobs-page .job-toolbar .btn-filter { height: 38px; font-size: .9rem; padding: 0 14px; }
.jobs-page .job-progress { margin: 4px 0 10px; }
.jobs-page .job-progress p { font-size: .85rem; }
.jobs-page .segments { margin-top: 8px; }
.jobs-page > p.center.small { display: none; } /* o botão "Minhas candidaturas" já está na barra de filtros */

/* Palco e baralho: o card usa todo o espaço que sobra. */
.job-stage { flex: 1 1 auto; margin: 0; padding: 0; min-height: 380px; }
.swipe-glow, .swipe-hint { display: none; }
.job-deck { position: absolute; inset: 0; display: block; }
.job-card, .job-empty { position: absolute; inset: 0; }
.job-empty { display: flex; justify-content: center; }
.job-empty[hidden] { display: none; }

.job-card {
  padding: 0; overflow: hidden; border-radius: 20px;
  box-shadow: 0 10px 30px rgba(14, 26, 61, .10), 0 1px 3px rgba(14, 26, 61, .06);
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), opacity .3s ease;
  transform-origin: 50% 100%;
  backface-visibility: hidden; -webkit-tap-highlight-color: transparent;
}
.job-card.behind { transform: translateY(14px) scale(.96); opacity: 0; }
.job-card.behind.peek { transition: none; }
.job-card.dragging { transition: none; }

/* O conteúdo rola dentro do card; o gesto horizontal continua livre. */
.job-scroll {
  display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; padding: 20px 18px 22px; touch-action: pan-y;
}

/* ---------- Indicadores por cima do card ---------- */
.swipe-overlay {
  display: flex; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  opacity: 0; align-items: flex-start; border-radius: inherit;
  padding: 22px 18px; will-change: opacity;
}
.swipe-overlay.apply {
  justify-content: flex-start;
  background: linear-gradient(100deg, rgba(63, 169, 104, .26), rgba(63, 169, 104, .08) 55%, rgba(63, 169, 104, 0));
  box-shadow: inset 0 0 0 1.5px rgba(63, 169, 104, .35);
}
.swipe-overlay.skip {
  justify-content: flex-end;
  background: linear-gradient(260deg, rgba(209, 73, 91, .26), rgba(209, 73, 91, .08) 55%, rgba(209, 73, 91, 0));
  box-shadow: inset 0 0 0 1.5px rgba(209, 73, 91, .35);
}
.swipe-badge {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .72); font-size: .78rem; letter-spacing: .02em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}
.swipe-badge b { font-weight: 600; }
.swipe-badge .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.swipe-overlay.apply .swipe-badge { color: #2f8f55; }
.swipe-overlay.skip .swipe-badge { color: #c23b4e; }
.swipe-overlay.ready .swipe-badge { transform: scale(1.06); }

/* Quem prefere menos movimento: sem giro nem escala. */
@media (prefers-reduced-motion: reduce) {
  .job-card, .swipe-badge { transition: none; }
}
