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

:root {
  --accent:      #818cf8;   /* indigo-400 */
  --accent-dim:  rgba(129, 140, 248, 0.12);
  --text:        #f4f4f5;   /* zinc-100 */
  --muted:       #a1a1aa;   /* zinc-400 */
  --subtle:      #71717a;   /* zinc-500 */
  --border:      #3f3f46;   /* zinc-700 */
  --border-dim:  #2d2d33;
  --bg:          #18181b;   /* zinc-900 */
  --bg-card:     #27272a;   /* zinc-800 */
  --bg-hover:    #303036;
  --bg-input:    #1f1f23;
  --radius:      8px;
  --radius-lg:   12px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header / Hero ─────────────────────────────────────────────────────────── */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-dim);
  padding: 4rem 0 3.5rem;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-brand {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero-brand span { color: var(--accent); }

.hero-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 2.25rem;
  max-width: 420px;
}

/* ── Search bar ────────────────────────────────────────────────────────────── */
.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 580px;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--subtle);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.search-input {
  flex: 1;
  padding: 0.8rem 1rem 0.8rem 2.75rem;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
}

.search-input::placeholder { color: var(--subtle); }

.search-btn {
  flex-shrink: 0;
  margin: 0.3rem 0.3rem 0.3rem 0;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: calc(var(--radius-lg) - 4px);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.15s;
}

.search-btn:hover { opacity: 0.85; }

.search-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60%  { transform: translateX(-5px); }
  40%, 80%  { transform: translateX(5px); }
}

.chips-shake { animation: shake 0.35s ease; }

/* ── Search filters ────────────────────────────────────────────────────────── */
.search-filters {
  display: flex;
  gap: 0.5rem;
  max-width: 580px;
  width: 100%;
  margin: 0.6rem 0 0;
  flex-wrap: wrap;
}

.filter-select {
  flex: 1;
  min-width: 120px;
  padding: 0.48rem 2rem 0.48rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%2371717a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: border-color 0.12s, color 0.12s;
}

.filter-select option {
  background: #27272a;
  color: var(--text);
}

.filter-select:focus,
.filter-select.active {
  border-color: var(--accent);
  color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%23818cf8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
}

.filter-city-wrap {
  position: relative;
  flex: 1;
  min-width: 120px;
  display: flex;
  align-items: center;
}

.filter-city-icon {
  position: absolute;
  left: 0.6rem;
  color: var(--subtle);
  pointer-events: none;
}

.filter-city {
  width: 100%;
  padding: 0.48rem 0.75rem 0.48rem 1.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.12s, box-shadow 0.12s;
}

.filter-city::placeholder { color: var(--subtle); }

.filter-city:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

/* ── Clear filters button ──────────────────────────────────────────────────── */
.clear-btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 99px;
  font: inherit;
  font-size: 0.78rem;
  color: var(--subtle);
  cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}

.clear-btn:hover {
  border-color: #f87171;
  color: #f87171;
}

/* ── Main area ─────────────────────────────────────────────────────────────── */
main.container { padding-top: 2rem; }

/* ── Filter chips ──────────────────────────────────────────────────────────── */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.chip {
  padding: 0.3rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 99px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Status ────────────────────────────────────────────────────────────────── */
.status {
  font-size: 0.8rem;
  color: var(--subtle);
  margin-bottom: 0.875rem;
  min-height: 1.1rem;
}

/* ── Job list ──────────────────────────────────────────────────────────────── */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
  border-left: 3px solid transparent;
  transition: background 0.12s, border-left-color 0.12s;
  cursor: default;
}

.job-card:hover {
  background: var(--bg-hover);
  border-left-color: var(--accent);
}

.job-info { flex: 1; min-width: 0; }

.job-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.job-company {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.job-location {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.job-location::before { content: '·'; margin-right: 0.35rem; color: var(--border); }

.job-salary {
  font-size: 0.72rem;
  color: #4ade80;   /* green — destaque positivo para salário */
  white-space: nowrap;
}

.job-salary::before { content: '·'; margin-right: 0.35rem; color: var(--border); }

.job-date {
  font-size: 0.72rem;
  color: var(--subtle);
  white-space: nowrap;
}

.job-date::before { content: '·'; margin-right: 0.35rem; color: var(--border); }

.job-link {
  flex-shrink: 0;
  padding: 0.4rem 0.875rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.12s, color 0.12s, background 0.12s;
  white-space: nowrap;
}

.job-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ── Skeleton ──────────────────────────────────────────────────────────────── */
.skeleton-card {
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
}

.skeleton {
  background: linear-gradient(90deg, #2e2e34 25%, #38383f 50%, #2e2e34 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Empty / error ─────────────────────────────────────────────────────────── */
.empty-state {
  padding: 3.5rem 1rem;
  text-align: center;
  color: var(--subtle);
  font-size: 0.875rem;
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius);
}

/* ── Pagination ────────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 2.5rem 0;
}

.page-btn {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.page-btn:disabled { opacity: 0.3; cursor: default; }

.page-info {
  font-size: 0.8rem;
  color: var(--subtle);
  padding: 0 0.35rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-dim);
  padding: 1.5rem 0;
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: var(--subtle);
}

.footer a { color: var(--subtle); text-decoration: none; }
.footer a:hover { color: var(--muted); text-decoration: underline; }

.footer-disclaimer {
  margin-top: 0.75rem;
  padding: 0.6rem 0.875rem;
  border: 1px solid #78350f40;
  border-left: 3px solid #f59e0b;
  border-radius: var(--radius);
  background: #78350f18;
  color: #a3845a;
  font-size: 0.75rem;
  line-height: 1.5;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-brand { font-size: 2.75rem; }
  .hero-title { font-size: 1.15rem; }
  .hero-sub   { font-size: 0.875rem; }
  .header     { padding: 2.5rem 0 2.5rem; }

  .search-input {
    padding-left: 2.25rem;
    font-size: 0.875rem;
  }

  .search-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .search-filters { flex-direction: column; }
  .filter-select,
  .filter-city-wrap { min-width: unset; }

  .job-card   { flex-direction: column; align-items: flex-start; }
  .job-link   { margin-top: 0.25rem; }
}
