/* c:\Xampp\htdocs\emprego\styles.css */
:root {
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --ink: #111827;
  --primary: #EA580C;       /* Laranja vibrante (energia KangooVagas) */
  --primary-dark: #C2410C;
  --dark: #18181B;          /* Grafite/Carvão moderno */
  --action: #10B981;        /* Verde esmeralda para botões de ação */
  --action-hover: #059669;
  --muted: #4B5563;
  --light: #6B7280;
  --ad-bg: #F1F5F9;
  --ad-border: #CBD5E1;
  --radius: 12px;
  --sticky-h: 50px;
}

@media (min-width: 768px) {
  :root {
    --sticky-h: 90px;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-bottom: calc(var(--sticky-h) + 24px);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navbar Branca Limpa (Zero monotonia azul) */
.navbar {
  background: #FFFFFF;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill-stat {
  display: none;
  font-size: 12px;
  font-weight: 700;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
  padding: 5px 11px;
  border-radius: 99px;
}

@media (min-width: 640px) {
  .pill-stat {
    display: inline-block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13.5px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-action {
  background: var(--action);
  color: #FFFFFF;
}

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

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

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

.btn-outline {
  background: #FFFFFF;
  color: var(--ink);
  border-color: var(--border);
}

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

/* Hero Moderno Grafite + Laranja + Esmeralda */
.hero {
  background: linear-gradient(135deg, #18181B 0%, #27272A 65%, #3F2316 100%);
  color: #FFFFFF;
  padding: 26px 16px 24px;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #D1FAE5;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 28px;
  }
}

.hero p {
  margin: 0 0 16px;
  color: #D4D4D8;
  font-size: 14px;
}

.search-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

@media (min-width: 768px) {
  .search-bar {
    flex-direction: row;
    align-items: center;
  }
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink);
  font-family: inherit;
  min-width: 0;
}

.search-divider {
  display: none;
  width: 1px;
  height: 26px;
  background: var(--border);
}

@media (min-width: 768px) {
  .search-divider {
    display: block;
  }
}

.search-bar button {
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.search-bar button:hover {
  background: var(--primary-dark);
}

/* Pills de Cidades */
.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.r-pill {
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  color: #F4F4F5;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: 0.15s;
}

.r-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

.r-pill.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* Faixa de Áreas */
.area-strip-wrap {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}

.area-strip {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.a-chip {
  white-space: nowrap;
  padding: 6px 13px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 600;
  background: #F9FAFB;
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: 0.15s;
}

.a-chip:hover {
  border-color: #FDBA74;
  color: var(--primary);
}

.a-chip.active {
  background: var(--dark);
  color: #FFFFFF;
  border-color: var(--dark);
}

/* Main Grid (minmax(0, 1fr) impede QUALQUER vazamento horizontal!) */
.main {
  max-width: 1200px;
  margin: 20px auto 32px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (min-width: 960px) {
  .main {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
  }
}

.sidebar {
  display: none;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sidebar.open {
  display: flex;
}

@media (min-width: 960px) {
  .sidebar {
    display: flex;
    position: sticky;
    top: 74px;
  }
}

.filter-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.filter-head h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.clear-link {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.f-group {
  margin-bottom: 12px;
}

.f-group:last-child {
  margin-bottom: 0;
}

.f-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.f-group select,
.f-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #FFFFFF;
  color: var(--ink);
}

/* Toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.result-count {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.toolbar select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  background: #FFFFFF;
  max-width: 100%;
}

.mobile-filter-btn {
  display: inline-flex;
}

@media (min-width: 960px) {
  .mobile-filter-btn {
    display: none;
  }
}

/* Job Cards (Blindados contra overflow) */
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.job-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.job-card.featured {
  border-color: #FDBA74;
  background: linear-gradient(to bottom, #FFF7ED 0%, #FFFFFF 46px);
}

.job-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.job-head-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  flex: 1 1 240px;
}

.co-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FED7AA;
}

.job-title {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.job-company {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  overflow-wrap: anywhere;
}

.job-company span {
  color: var(--muted);
  font-weight: 500;
}

.feat-badge {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  white-space: nowrap;
}

.date-badge {
  font-size: 11.5px;
  color: var(--light);
  white-space: nowrap;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.badge {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  background: #F3F4F6;
  color: #374151;
}

@media (max-width: 479px) {
  .badge-secondary {
    display: none;
  }
}

.badge-sal {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.badge-night {
  background: #F5F3FF;
  color: #5B21B6;
}

.badge-rem {
  background: #FFF7ED;
  color: #C2410C;
}

.job-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.quick-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.qc-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #374151;
  background: #F3F4F6;
  padding: 4px 8px;
  border-radius: 6px;
}

/* =========================================================
   ADTECH PLACEHOLDERS (Anti-CLS com min-height definidos)
   ========================================================= */
.ad-slot {
  background: var(--ad-bg);
  border: 1.5px dashed var(--ad-border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  color: var(--muted);
}

.ad-slot-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  background: #E2E8F0;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.ad-slot-dims {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.ad-infeed-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
  min-height: 126px;
}

.ad-infeed-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ad-sponsored-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 8px;
  border-radius: 4px;
}

.ad-infeed-box {
  min-height: 82px;
  width: 100%;
}

.ad-sidebar-box {
  min-height: 250px;
  width: 100%;
}

.ad-content-top {
  width: 100%;
  min-height: 100px;
  margin: 16px 0;
}

@media (min-width: 768px) {
  .ad-content-top {
    min-height: 90px;
  }
}

.ad-content-rect {
  width: 100%;
  max-width: 336px;
  min-height: 250px;
  margin: 20px auto;
}

.ad-sticky-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sticky-h);
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(17, 24, 39, 0.08);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 36px 4px 12px;
  transition: transform 0.2s ease;
}

.ad-sticky-footer.collapsed {
  transform: translateY(100%);
}

.ad-sticky-inner {
  width: 100%;
  max-width: 728px;
  height: 100%;
  background: var(--ad-bg);
  border: 1.5px dashed var(--ad-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.ad-sticky-close {
  position: absolute;
  top: -12px;
  right: 10px;
  width: 24px;
  height: 24px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.ad-sticky-restore {
  position: fixed;
  right: 12px;
  bottom: 10px;
  z-index: 49;
  background: var(--dark);
  color: #FFFFFF;
  border: none;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.ad-sticky-restore.visible {
  display: inline-block;
}

/* Interstitial Modal */
.interstitial-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.8);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: none;
  place-items: center;
  padding: 16px;
}

.interstitial-backdrop.open {
  display: grid;
}

.interstitial-box {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.interstitial-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.interstitial-ad-area {
  width: 100%;
  max-width: 336px;
  min-height: 250px;
  margin: 10px auto 12px;
}

.interstitial-timer {
  font-size: 12px;
  color: var(--light);
  font-weight: 600;
}

/* Job Details Page */
.detail-wrap {
  max-width: 860px;
  margin: 22px auto 40px;
  padding: 0 16px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 600;
}

.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  overflow-wrap: anywhere;
}

.detail-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.detail-body {
  font-size: 14.5px;
  color: var(--ink);
  white-space: pre-line;
  margin: 16px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.contact-box {
  background: #F9FAFB;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}

.contact-box strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(24, 24, 27, 0.6);
  display: none;
  place-items: center;
  z-index: 60;
  padding: 16px;
}

.modal-bg.open {
  display: grid;
}

.modal {
  background: #FFFFFF;
  border-radius: 14px;
  max-width: 420px;
  width: 100%;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.modal input, .modal select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  font: inherit;
  font-size: 13.5px;
}

.empty-state {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}

.load-more-wrap {
  text-align: center;
  margin: 18px 0 8px;
}

.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  padding: 24px 16px;
  margin-top: 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 600;
  color: var(--primary);
}
