/* VagaScan — refinamento visual clean e premium.
   Mantém a paleta original e prioriza leitura, hierarquia e sensação de produto. */

:root {
  --shadow: 0 10px 28px rgba(8, 26, 51, .06);
  --radius: 14px;
  --soft-line: rgba(8, 26, 51, .10);
  --soft-blue: #eef5fb;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: #f6f8fb;
}

.container {
  width: min(1180px, calc(100% - 2rem));
}

.site-header {
  background: rgba(8, 26, 51, .965);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 62px;
}

.brand {
  font-size: 1.26rem;
  letter-spacing: -.04em;
}

.main-nav {
  gap: 1.2rem;
}

.main-nav a,
.link-button {
  font-size: .88rem;
  font-weight: 650;
  opacity: .88;
  transition: opacity 160ms ease, color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.link-button:hover,
.link-button:focus-visible {
  opacity: 1;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 12%, rgba(22,119,232,.14), transparent 28rem),
    var(--navy);
}

.hero-compact {
  padding: clamp(3rem, 6vw, 5.4rem) 0 2.7rem;
}

.hero-copy {
  max-width: 900px;
}

.hero h1,
.page-header h1,
.search-page-head h1 {
  letter-spacing: -.055em;
  line-height: 1.02;
}

.hero h1 {
  max-width: 940px;
  margin: .5rem 0 1rem;
  font-size: clamp(2.7rem, 5.7vw, 4.7rem);
}

.lead {
  max-width: 760px;
  margin-bottom: 1.2rem;
  color: #c8d8e9;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.7;
}

.hero-indicators {
  gap: .5rem;
}

.hero-indicators span {
  padding: .34rem .62rem;
  border-color: #315476;
  border-radius: 8px;
  font-size: .79rem;
}

/* Busca */
.search-panel {
  gap: .7rem;
  margin-top: 1.7rem;
  padding: .9rem;
  border: 1px solid #d7e0ea;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0,0,0,.12);
}

.search-field label {
  margin-bottom: .28rem;
  font-size: .78rem;
  font-weight: 760;
}

.search-panel input,
.search-panel select {
  min-height: 46px;
  border-color: #c9d4df;
  border-radius: 8px;
  background: #fff;
}

.button {
  border-radius: 8px;
  font-weight: 730;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.quick-searches {
  gap: .45rem;
  margin-top: .85rem;
}

.quick-searches button {
  border-radius: 7px;
  font-size: .78rem;
}

/* Seções */
.section {
  padding: clamp(3.2rem, 5.5vw, 5rem) 0;
}

.compact-section {
  padding: clamp(2.8rem, 4.5vw, 4rem) 0;
}

.section-heading {
  margin-bottom: 1.7rem;
}

.section-heading h2,
.analysis-callout h2 {
  letter-spacing: -.04em;
}

.steps {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--line);
}

.steps article {
  padding: 1.3rem;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.steps span {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: .8rem;
}

.steps h3 {
  margin: .75rem 0 .3rem;
  font-size: 1.02rem;
}

.steps p {
  font-size: .88rem;
  line-height: 1.55;
}

.analysis-callout {
  gap: 3rem;
}

.notice {
  padding: 1.1rem 1.2rem;
  border-left-width: 3px;
  border-radius: 8px;
}

/* Página de busca */
.search-page-head {
  padding: 2.6rem 0 2rem;
  background:
    linear-gradient(180deg, #eef5fb 0%, #f6f8fb 100%);
}

.search-page-head h1 {
  margin-bottom: .5rem;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
}

.search-panel-light {
  margin-top: 1.25rem;
  box-shadow: 0 9px 26px rgba(8, 26, 51, .06);
}

/* Resultados */
.results-section {
  padding-top: 2.6rem;
}

.results-heading {
  align-items: center;
  margin-bottom: 1.25rem;
}

.results-heading h2 {
  margin-bottom: .2rem;
  font-size: 1.85rem;
}

.results-summary,
.summary-bar {
  gap: .45rem 1.15rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.results-summary span,
.summary-bar span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: .78rem;
}

.results-summary strong,
.summary-bar strong {
  color: var(--navy);
}

.results-layout {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.3rem;
}

.jobs-list {
  gap: 1rem;
}

.job-card {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.job-card:hover {
  border-color: #b7c8d9;
  box-shadow: 0 10px 26px rgba(8, 26, 51, .07);
  transform: translateY(-1px);
}

.job-card-horizontal {
  grid-template-columns: 48px minmax(0, 1fr) 96px;
  gap: 1rem;
  padding: 1.25rem;
}

.company-avatar {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  font-size: .76rem;
}

.job-top {
  align-items: flex-start;
}

.source {
  font-size: .65rem;
  letter-spacing: .08em;
}

.job-top .small {
  font-size: .74rem;
}

.job-card h3 {
  margin: .35rem 0 .08rem;
  font-size: 1.22rem;
  line-height: 1.28;
  letter-spacing: -.02em;
}

.job-card h3 a {
  text-decoration: none;
}

.job-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.company {
  font-size: .92rem;
  font-weight: 700;
}

.metadata {
  margin: .22rem 0 .6rem;
  font-size: .82rem;
}

.inference-note {
  margin: -.3rem 0 .55rem;
  font-size: .73rem;
}

.analysis-badges {
  gap: .55rem;
  margin: .45rem 0;
  align-items: center;
}

.analysis-badges > span {
  padding: .06rem 0;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: .74rem;
}

.analysis-badges > .confidence {
  padding: .25rem .5rem;
  border: 1px solid #d1dbe5;
  border-radius: 7px;
}

.low-confidence-warning {
  margin: .6rem 0;
  padding: .65rem .75rem;
  border-left-width: 3px;
  font-size: .8rem;
}

.chip-groups {
  gap: .7rem;
  margin: .7rem 0;
}

.chip-groups strong {
  margin-bottom: .3rem;
  font-size: .77rem;
}

.chips {
  gap: .3rem;
}

.chip {
  padding: .22rem .46rem;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 650;
}

.attribution {
  margin-top: .8rem;
  padding-top: .6rem;
  font-size: .72rem;
}

.card-actions {
  gap: .5rem;
  margin-top: .9rem;
}

.button-small {
  min-height: 36px;
  padding: .42rem .7rem;
  font-size: .81rem;
}

.compatibility-score {
  width: 90px;
  height: auto;
  min-height: 78px;
  padding: .75rem .4rem;
  border-width: 1px;
  border-radius: 12px;
  background: #f4faf7;
}

.compatibility-score strong {
  font-size: 1.42rem;
}

.compatibility-score span {
  font-size: .63rem;
}

/* Sidebar */
.search-sidebar {
  top: 76px;
  gap: .85rem;
}

.sidebar-panel {
  padding: 1.1rem;
  border-radius: 12px;
  box-shadow: none;
}

.sidebar-panel h2 {
  margin-bottom: .9rem;
  font-size: .98rem;
}

.sidebar-metrics {
  gap: 0 .8rem;
}

.sidebar-metrics div {
  padding: .62rem 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.sidebar-metrics strong {
  font-size: 1.22rem;
}

.tech-bar {
  margin-top: .7rem;
}

.tech-bar progress {
  height: 6px;
}

/* Rodapé */
.site-footer {
  padding-top: 2.6rem;
  font-size: .88rem;
}

.footer-grid {
  gap: 2.2rem;
}

@media (max-width: 960px) {
  .results-layout {
    grid-template-columns: 1fr;
  }

  .search-sidebar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 58px;
  }

  .main-nav {
    top: 58px;
  }

  .hero-compact {
    padding: 2.2rem 0 1.8rem;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .lead {
    font-size: .98rem;
  }

  .search-panel {
    padding: .8rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .results-summary,
  .summary-bar {
    gap: .35rem .75rem;
  }

  .job-card-horizontal {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 1rem;
  }

  .job-card-horizontal .job-card-content {
    grid-column: 1 / -1;
  }

  .job-card-horizontal .compatibility-score {
    grid-column: 2;
    grid-row: 1;
    width: 82px;
    min-height: 66px;
  }

  .chip-groups,
  .search-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 1.25rem, 1180px);
  }

  .hero-compact {
    padding: 1.7rem 0 1.45rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-indicators span,
  .quick-searches button {
    border-radius: 6px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .job-card h3 {
    font-size: 1.08rem;
  }

  .card-actions .button {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button:hover,
  .job-card:hover {
    transform: none;
  }
}
