/* ================================================
   ConectaFortaleza — empregos.css
   Paleta verde v1 · Mobile-first · Acessível
   ================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  background: #F7F8FA;
  color: #1A1A2E;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a    { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── VARIÁVEIS ── */
:root {
  --g-dark:  #085041;
  --g-mid:   #0F6E56;
  --g:       #1D9E75;
  --g-light: #5DCAA5;
  --g-pale:  #9FE1CB;
  --g-bg:    #E1F5EE;

  --text-1: #fff;
  --text-2: #FCEBEB;
  --text-3: #9CA3AF;

  --border:   #262625;
  --bg-white: #464646;
  --bg-grey:  #ffff;

  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
  --shadow-s: 0 1px 4px rgba(0,0,0,.08);
  --shadow-m: 0 4px 18px rgba(0,0,0,.11);
  --trans: all .2s ease;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ════════════════════════════════
   NAVBAR (idêntico ao servicos.css)
════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: #30302E; border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-s); transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: 0 2px 14px rgba(0,0,0,.13); }
.nav-inner { display: flex; align-items: center; height: 56px; gap: 12px; }
.nav-logo { font-size: 18px; font-weight: 700; color: var(--text-1); white-space: nowrap; flex-shrink: 0; }
.nav-logo span { color: var(--g); }
.nav-links { display: none; flex: 1; gap: 2px; }
.nav-link { font-size: 14px; color: var(--text-2); padding: 6px 12px; border-radius: var(--r-pill); transition: var(--trans); white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: var(--g-mid); background: var(--g-bg); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-outline { font-size: 13px; font-weight: 500; color: var(--g-mid); border: 1.5px solid var(--g-light); padding: 7px 16px; border-radius: var(--r-pill); transition: var(--trans); }
.btn-outline:hover { background: var(--g-bg); }
.btn-fill { font-size: 13px; font-weight: 600; color: #fff; background: var(--g); padding: 7px 16px; border-radius: var(--r-pill); transition: var(--trans); white-space: nowrap; }
.btn-fill:hover { background: var(--g-mid); }
.hamburger { display: flex; flex-direction: column; gap: 5px; padding: 6px; flex-shrink: 0; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-1); border-radius: 2px; transition: var(--trans); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 56px; left: 0; right: 0;
  background: var(--bg-white); padding: 12px 16px 20px;
  border-bottom: 1px solid var(--border); box-shadow: var(--shadow-m);
  z-index: 199; animation: slideDown .2s ease;
}
@keyframes slideDown { from{opacity:0;transform:translateY(-8px)} to{opacity:1;transform:translateY(0)} }
@media (min-width: 768px) {
  .nav-links { display: flex; position: static; box-shadow: none; padding: 0; border: none; animation: none; }
  .hamburger { display: none; }
}

/* ════════════════════════════════
   BREADCRUMB
════════════════════════════════ */
.breadcrumb { background: var(--bg-white); border-bottom: 1px solid var(--border); padding: 8px 0; font-size: 12px; color: var(--text-3); }
.breadcrumb-inner { display: flex; align-items: center; gap: 6px; }
.bc-link { color: var(--g); transition: var(--trans); }
.bc-link:hover { color: var(--g-mid); }
.bc-sep { color: var(--border); }
.bc-current { color: var(--text-1); font-weight: 500; }

/* ════════════════════════════════
   HERO
════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #E1F5EE 0%, #c5ede1 100%);
  padding: 32px 0 28px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; right: -80px; bottom: -80px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(29,158,117,.07); pointer-events: none;
}

.hero-badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  color: var(--g-mid); background: var(--g-pale);
  padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(22px, 4.5vw, 34px); font-weight: 700;
  color: var(--g-dark); line-height: 1.2; margin-bottom: 8px;
}
.hero-title span { color: var(--g); }
.hero-sub { font-size: 14px; color: var(--g-mid); margin-bottom: 20px; max-width: 520px; }

/* Barra de busca */
.search-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  background: #30302E; border: 2px solid var(--g-light);
  border-radius: var(--r-lg); padding: 6px 6px 6px 12px;
  gap: 8px; max-width: 640px; box-shadow: var(--shadow-m);
  margin-bottom: 20px; transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--g); box-shadow: 0 0 0 4px rgba(29,158,117,.15); }
.s-icon { color: var(--g-pale); flex-shrink: 0; display: flex; }
.s-input { flex: 1; min-width: 120px; border: none; outline: none; font-size: 14px; color: var(--text-1); background: transparent; }
.s-input::placeholder { color: var(--g-pale); }
.s-loc-btn { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--g); background: var(--g-bg); border: none; padding: 6px 12px; border-radius: var(--r-md); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: var(--trans); }
.s-loc-btn:hover { background: var(--g-pale); }
.s-btn { font-size: 13px; font-weight: 600; color: var(--g-dark); background: var(--g-light); padding: 10px 20px; border-radius: var(--r-md); border: none; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: var(--trans); }
.s-btn:hover { background: var(--g); color: #fff; }
@media (max-width: 500px) {
  .search-bar { padding: 8px; }
  .s-input { width: 100%; order: 1; }
  .s-loc-btn { order: 2; }
  .s-btn { order: 3; width: 100%; text-align: center; }
}

/* Stats hero */
.hero-stats {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.hstat { display: flex; flex-direction: column; }
.hstat-val { font-size: 22px; font-weight: 700; color: var(--g-dark); line-height: 1; }
.hstat-label { font-size: 11px; color: var(--g-mid); margin-top: 2px; }

/* ════════════════════════════════
   TABS DE CONTRATO
════════════════════════════════ */
.contrato-tabs-wrap {
  background: #30302E; border-bottom: 1px solid var(--border);
  position: sticky; top: 56px; z-index: 90;
}
.contrato-tabs {
  display: flex; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 0;
}
.contrato-tabs::-webkit-scrollbar { display: none; }
.ctab {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  padding: 13px 18px; cursor: pointer; border: none;
  border-bottom: 2px solid transparent;
  background: none; white-space: nowrap;
  flex-shrink: 0; transition: color .2s, border-color .2s;
}
.ctab:hover { color: var(--g); }
.ctab.active { color: var(--g); border-bottom-color: var(--g); }

/* ════════════════════════════════
   FILTRO MOBILE BAR
════════════════════════════════ */
.filter-mobile-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 4px;
}
.btn-filter-mobile {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--g-mid);
  background: var(--g-bg); border: 1px solid var(--g-pale);
  padding: 8px 16px; border-radius: var(--r-pill);
  cursor: pointer; transition: var(--trans);
}
.btn-filter-mobile:hover { background: var(--g-pale); }
.filter-count-badge {
  font-size: 10px; font-weight: 700; color: #fff; background: var(--g);
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.resultado-mob { font-size: 13px; color: var(--text-2); }
@media (min-width: 900px) { .filter-mobile-bar { display: none; } }

/* ════════════════════════════════
   BODY LAYOUT
════════════════════════════════ */
.body-layout { display: grid; grid-template-columns: 1fr; gap: 0; align-items: start; padding-top: 16px; padding-bottom: 40px; }
@media (min-width: 900px) { .body-layout { grid-template-columns: 240px 1fr; gap: 20px; } }

/* ════════════════════════════════
   SIDEBAR
════════════════════════════════ */
.sidebar {
  background: #30302E; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  position: fixed; top: 0; left: -100%; bottom: 0;
  width: 85%; max-width: 320px;
  z-index: 300; overflow-y: auto;
  transition: left .3s ease; box-shadow: var(--shadow-m);
}
.sidebar.open { left: 0; }
@media (min-width: 900px) {
  .sidebar { position: sticky; top: 80px; left: auto; width: auto; max-width: none; box-shadow: none; max-height: calc(100vh - 100px); }
}
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 299; }
.sidebar-overlay.show { display: block; }
.sidebar-header { display: flex; align-items: center; margin-bottom: 16px; gap: 8px; }
.sidebar-title { font-size: 15px; font-weight: 600; color: var(--text-1); flex: 1; }
.fg-clear-all { font-size: 11px; color: var(--g); cursor: pointer; background: none; border: none; padding: 0; }
.sidebar-close { font-size: 16px; color: var(--text-3); cursor: pointer; padding: 4px 8px; border-radius: var(--r-sm); }
.sidebar-close:hover { background: var(--bg-grey); color: var(--text-1); }
@media (min-width: 900px) { .sidebar-close { display: none; } }

.filter-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; }
.fg-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; }
.fg-clear { font-size: 10px; color: var(--g); cursor: pointer; font-weight: 400; }

.filter-opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.filter-opt:hover .f-label { color: var(--text-1); }
.fcheck, .fradio { width: 16px; height: 16px; border: 2px solid var(--border); flex-shrink: 0; transition: var(--trans); }
.fcheck { border-radius: 4px; }
.fradio { border-radius: 50%; }
.fcheck.on, .fradio.on { background: var(--g); border-color: var(--g); }
.f-label { font-size: 13px; color: var(--text-2); transition: var(--trans); }
.f-label.on { color: var(--text-1); font-weight: 500; }
.f-count { font-size: 11px; color: var(--text-3); margin-left: auto; }

.range-bar { height: 5px; background: var(--border); border-radius: var(--r-pill); margin: 10px 0; }
.range-fill { height: 100%; background: var(--g); border-radius: var(--r-pill); width: 55%; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); }
.range-val { font-size: 12px; color: var(--text-2); margin-top: 6px; }

.sidebar-btns { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.btn-aplicar { width: 100%; font-size: 13px; font-weight: 600; color: #fff; background: var(--g); padding: 10px; border-radius: var(--r-md); border: none; cursor: pointer; transition: var(--trans); }
.btn-aplicar:hover { background: var(--g-mid); }
.btn-limpar { width: 100%; font-size: 12px; font-weight: 500; color: var(--g-mid); background: transparent; padding: 9px; border-radius: var(--r-md); border: 1px solid var(--g-pale); cursor: pointer; transition: var(--trans); }
.btn-limpar:hover { background: var(--g-bg); }

/* ════════════════════════════════
   LISTAGEM
════════════════════════════════ */
.listagem { min-width: 0; }
.list-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.list-resultado { font-size: 13px; color: #0F6E56; }
.list-resultado strong { color: #085041; }
.list-controls { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sort-sel { font-size: 12px; color: var(--text-1); border: 1px solid var(--border); background: var(--bg-white); padding: 5px 10px; border-radius: var(--r-md); cursor: pointer; outline: none; }
.sort-sel:focus { border-color: var(--g); }

/* DESTAQUE VAGAS */
.destaque-strip { background: var(--g-bg); border: 1px solid var(--g-pale); border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 16px; }
.ds-label { font-size: 11px; font-weight: 600; color: var(--g-mid); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.ds-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.ds-scroll::-webkit-scrollbar { display: none; }

.ds-card {
  background: var(--bg-white); border: 1px solid var(--g-light);
  border-radius: var(--r-md); padding: 12px 14px;
  min-width: 200px; flex-shrink: 0; cursor: pointer; transition: var(--trans);
}
.ds-card:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.ds-empresa-logo {
  width: 36px; height: 36px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-bottom: 8px; flex-shrink: 0;
}
.ds-cargo { font-size: 12px; font-weight: 600; color: var(--text-1); margin-bottom: 2px; }
.ds-empresa { font-size: 11px; color: var(--text-2); margin-bottom: 4px; }
.ds-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ds-tag {
  font-size: 9px; font-weight: 500; padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--bg-grey); color: var(--text-2); border: 1px solid var(--border);
}
.ds-tag.clt      { background: #E1F5EE; color: var(--g-mid); border-color: var(--g-pale); }
.ds-tag.pj       { background: #E6F1FB; color: #0C447C;      border-color: #B3D4F7; }
.ds-tag.temp     { background: #FAEEDA; color: #633806;      border-color: #FAC775; }
.ds-tag.est      { background: #EEEDFE; color: #3C3489;      border-color: #AFA9EC; }
.ds-tag.aprendiz { background: #FAECE7; color: #7C2D42;      border-color: #F5B8A0; }
.ds-btn { font-size: 10px; font-weight: 500; color: var(--g-mid); text-align: center; background: var(--g-bg); padding: 4px 8px; border-radius: var(--r-sm); display: block; }

/* ALERTA DE VAGA */
.alerta-vaga {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #E1F5EE, #c5ede1);
  border: 1px solid var(--g-pale); border-radius: var(--r-lg);
  padding: 14px 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.alerta-icon { font-size: 24px; flex-shrink: 0; }
.alerta-texto { flex: 1; min-width: 140px; }
.alerta-texto strong { font-size: 13px; color: var(--g-dark); display: block; margin-bottom: 2px; }
.alerta-texto p { font-size: 12px; color: var(--g-mid); }
.alerta-btn {
  font-size: 12px; font-weight: 600; color: var(--g-dark);
  background: var(--g-light); padding: 9px 18px;
  border-radius: var(--r-md); border: none; cursor: pointer;
  white-space: nowrap; transition: var(--trans); flex-shrink: 0;
}
.alerta-btn:hover { background: var(--g); color: #fff; }

/* ── CARDS DE VAGA ── */
.vagas-lista { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.vaga-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px; cursor: pointer;
  transition: var(--trans); position: relative;
}
.vaga-card:hover { box-shadow: var(--shadow-m); border-color: var(--g-pale); }
.vaga-card.destaque { border: 2px solid var(--g-light); }

.vaga-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 8px; }

.vaga-logo {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0; border: 1px solid var(--border);
}
.vaga-info { flex: 1; min-width: 0; }
.vaga-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vaga-cargo { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 2px; }
.vaga-salario { font-size: 13px; font-weight: 600; color: var(--g); white-space: nowrap; }
.vaga-empresa { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }

.vaga-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-3); margin-bottom: 10px;
}
.vaga-meta span { display: flex; align-items: center; gap: 4px; }

.vaga-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.vtag {
  font-size: 10px; font-weight: 500; padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--border); background: var(--bg-grey); color: #0F6E56;
}
.vtag.clt      { background: #E1F5EE; color: var(--g-mid); border-color: var(--g-pale); }
.vtag.pj       { background: #E6F1FB; color: #0C447C;      border-color: #B3D4F7; }
.vtag.temp     { background: #FAEEDA; color: #633806;      border-color: #FAC775; }
.vtag.est      { background: #EEEDFE; color: #3C3489;      border-color: #AFA9EC; }
.vtag.aprendiz { background: #FAECE7; color: #7C2D42;      border-color: #F5B8A0; }
.vtag.remoto   { background: #EAF3DE; color: #2D6A4F;      border-color: #A8D5A2; }

.vaga-desc { font-size: 12px; color: var(--text-2); line-height: 1.6; margin-bottom: 12px; }
.vaga-desc-toggle { font-size: 11px; color: var(--g); cursor: pointer; margin-bottom: 12px; display: inline-block; }

.vaga-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vaga-data { font-size: 11px; color: var(--text-3); }
.vaga-btns { display: flex; gap: 8px; }
.btn-candidatar {
  font-size: 12px; font-weight: 600; color: #fff; background: var(--g);
  padding: 9px 20px; border-radius: var(--r-md); border: none;
  cursor: pointer; transition: var(--trans); white-space: nowrap;
}
.btn-candidatar:hover { background: var(--g-mid); }
.btn-salvar {
  font-size: 12px; font-weight: 500; color: var(--g-mid);
  background: var(--g-bg); border: 1px solid var(--g-pale);
  padding: 9px 14px; border-radius: var(--r-md); cursor: pointer;
  transition: var(--trans); white-space: nowrap;
}
.btn-salvar:hover { background: var(--g-pale); }
.btn-salvar.saved { background: var(--g); color: #fff; border-color: var(--g); }

.vaga-nova-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; font-weight: 700; color: #fff;
  background: var(--g); padding: 2px 8px; border-radius: var(--r-pill);
}

/* ════════════════════════════════
   PAGINAÇÃO
════════════════════════════════ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-btn { min-width: 34px; height: 34px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 13px; color: #085041; border: 1px solid var(--border); cursor: pointer; transition: var(--trans); padding: 0 8px; }
.page-btn:hover { background: var(--g-bg); border-color: var(--g-pale); color: var(--g); }
.page-btn.active { background: var(--g); color: #fff; border-color: var(--g); font-weight: 600; }
.page-btn.arr { color: var(--g); font-size: 16px; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }
.page-ellipsis { font-size: 13px; color: var(--text-3); padding: 0 4px; }

/* ════════════════════════════════
   FOOTER MINI
════════════════════════════════ */
.footer-mini { background: #30302E; border-top: 1px solid var(--border); padding: 16px 0; margin-top: 16px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.fm-logo { font-size: 15px; font-weight: 700; color: var(--text-1); }
.fm-logo span { color: var(--g); }
.fm-links { display: flex; flex-wrap: wrap; gap: 16px; }
.fm-link { font-size: 12px; color: var(--text-3); transition: var(--trans); }
.fm-link:hover { color: var(--g); }

/* ════════════════════════════════
   ANIMAÇÕES
════════════════════════════════ */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%{transform:translateX(-6px)} 40%{transform:translateX(6px)} 60%{transform:translateX(-4px)} 80%{transform:translateX(4px)} }
.shake { animation: shake .4s ease; }
