:root {
  --primary: #1e40af;
  --primary-hover: #1d4ed8;
  --accent: #f59e0b;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  gap: 12px;
}

/* Botoes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: #f1f5f9;
}

.btn-card {
  width: 100%;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
}

.btn-card:hover {
  background: var(--primary);
  color: #ffffff;
}

.btn-cta {
  background: #ffffff;
  color: var(--primary);
  font-size: 1rem;
  padding: 14px 28px;
  font-weight: 700;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #eff6ff 0%, var(--bg) 100%);
  padding: 56px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: #dbeafe;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

/* Search Bar */
.search-bar {
  display: flex;
  max-width: 680px;
  margin: 0 auto;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  gap: 8px;
}

.search-input {
  flex: 2;
  border: none;
  padding: 12px 16px;
  font-size: 0.95rem;
  outline: none;
}

.search-select {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.9rem;
  outline: none;
  background: #ffffff;
}

/* Grid de Vagas */
.section-vagas {
  padding: 40px 0 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.count-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.job-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card-featured {
  border: 2px solid #fbbf24;
  background: #fffdfa;
}

.badge-featured {
  position: absolute;
  top: -10px;
  right: 16px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.job-category {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 6px;
}

.job-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.job-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-company {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tag {
  background: #f1f5f9;
  font-size: 0.78rem;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-main);
  font-weight: 500;
}

.tag-salary {
  background: #ecfdf5;
  color: #065f46;
  font-weight: 700;
}

.job-summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  flex-grow: 1;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-content h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-content p {
  opacity: 0.9;
  font-size: 0.95rem;
  max-width: 600px;
}

/* Detalhes da Vaga */
.page-container {
  padding: 40px 20px 80px;
}

.job-detail-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 800px;
  margin: 0 auto;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-block;
  margin-bottom: 20px;
}

.detail-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
  position: relative;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 8px 0 4px;
}

.detail-company {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-body {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.detail-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 12px;
}

.detail-body ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

/* Gate de Conversão */
.apply-gate {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.gate-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.apply-gate h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.apply-gate p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.gate-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.gate-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 32px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-sub {
  font-size: 0.78rem;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .search-bar {
    flex-direction: column;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
  .hero-title {
    font-size: 1.7rem;
  }
}

/* Botão de Compartilhar (Setinha no Canto do Card) */
.btn-share {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-share:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: scale(1.08);
}

.card-featured .btn-share {
  top: 22px;
}

/* Botão de Compartilhar Inline (Página da Vaga) */
.detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.back-link {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-share-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: #eff6ff;
  color: var(--primary);
  border: 1px solid #bfdbfe;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-share-inline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Toast de Notificação */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Funil em 2 Etapas */
.funnel-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.funnel-step {
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.step-unlocked {
  border-left: 4px solid var(--primary);
  background: #f8fafc;
}

.step-locked {
  border-left: 4px solid #f59e0b;
  background: #fffdfa;
}

.step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.badge-warning {
  color: #b45309;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.step-criteria {
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.criterion {
  color: #78350f;
  margin-bottom: 4px;
}

.criterion:last-child {
  margin-bottom: 0;
}

.btn-full {
  width: 100%;
}

/* Caixa de Requisitos Eliminatórios */
.eliminatory-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 8px;
  padding: 18px 20px;
  margin: 24px 0;
}

.eliminatory-box h4 {
  color: #991b1b;
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.eliminatory-desc {
  color: #7f1d1d;
  font-size: 0.88rem;
  margin-bottom: 12px;
}

.criteria-list {
  padding-left: 20px;
  color: #450a0a;
  font-size: 0.9rem;
}

.criteria-list li {
  margin-bottom: 6px;
}

/* Nota de Privacidade / Contato Oculto */
.privacy-note {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.84rem;
  color: #1e40af;
  margin-bottom: 16px;
}

/* Caixa de Compatibilidade Automática */
.compatibility-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comp-header {
  font-size: 0.88rem;
  color: var(--text-main);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.comp-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.comp-item .icon {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  padding-top: 2px;
}

.comp-success {
  color: #065f46;
}

.comp-success .icon {
  color: #10b981;
}

.comp-warning {
  color: #991b1b;
}

.comp-warning .icon {
  color: #ef4444;
}

.action-locked-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

/* Bloco Convidativo de Candidatura (Página da Vaga) */
.apply-action-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.apply-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.apply-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.apply-microcopy {
  margin-top: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-extra-info {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Modal de Validação Dinâmica de Submissão */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-open {
  display: flex !important;
}

.modal-card {
  background: #ffffff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

@keyframes modalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal-icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.5;
}

.modal-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.modal-callout {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: #991b1b;
  margin-bottom: 24px;
  text-align: left;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Spinner */
.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
