/* ============================================================================
 * hub.css — estilos das páginas /entreprises e /emplois
 * Depende de offer.css (variáveis + header + footer)
 * ============================================================================ */

/* ---------- HERO ---------- */
.hub-hero {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 40px 20px;
}
.hub-hero-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.hub-hero h1 {
  font-size: 32px; margin: 0 0 12px; letter-spacing: -0.02em;
}
.hub-lead {
  font-size: 16px; color: var(--text-muted); margin: 0 0 24px;
}
.hub-lead strong { color: var(--text); font-weight: 600; }
.hub-filter {
  width: 100%; max-width: 460px; padding: 12px 18px;
  border: 1px solid var(--border); border-radius: 999px;
  font: inherit; background: #fff; box-shadow: var(--shadow-sm);
}
.hub-filter:focus { outline: 2px solid var(--brand); outline-offset: -1px; }

@media (max-width: 700px) {
  .hub-hero h1 { font-size: 24px; }
  .hub-hero { padding: 24px 16px; }
}

/* ---------- TOP CARDS ---------- */
.hub-top {
  max-width: 1200px; margin: 30px auto 0; padding: 0 20px;
}
.hub-top h2 {
  font-size: 20px; margin: 0 0 16px;
}
.hub-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
}
.hub-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.hub-card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md);
  border-color: var(--brand); text-decoration: none;
}
.hub-card .company-logo { width: 40px; height: 40px; font-size: 13px; }
.hub-card .city-icon.sm {
  width: 40px; height: 40px; font-size: 20px; border-radius: 8px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hub-card .category-icon.sm {
  width: 40px; height: 40px; font-size: 20px; border-radius: 8px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hub-card-body { min-width: 0; flex: 1; }
.hub-card-title {
  font-weight: 600; font-size: 14px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hub-card-meta {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}

/* ---------- NAV A-Z ---------- */
.alphabet-nav {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 60px; z-index: 10;
  margin-top: 30px;
}
.alphabet-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 20px;
  display: flex; flex-wrap: wrap; gap: 4px; justify-content: center;
}
.alphabet-nav a {
  min-width: 30px; padding: 6px 8px; text-align: center;
  font-size: 13px; font-weight: 600;
  color: var(--brand); text-decoration: none;
  border-radius: 6px;
}
.alphabet-nav a:hover { background: var(--chip-bg); text-decoration: none; }
.alphabet-nav a.disabled {
  color: var(--border); pointer-events: none; cursor: default;
  font-weight: 400;
}

/* ---------- LISTA A-Z ---------- */
.hub-list-wrapper {
  background: var(--bg); padding: 30px 20px 40px;
}
.hub-list-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 30px;
}

.letter-group { scroll-margin-top: 130px; }
.letter-heading {
  font-size: 24px; margin: 0 0 14px;
  color: var(--brand); border-bottom: 2px solid var(--chip-bg);
  padding-bottom: 6px;
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.parent-count {
  font-size: 13px; font-weight: 400; color: var(--text-muted);
}

.hub-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 4px 20px;
}
.hub-list-item a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-radius: 6px;
  text-decoration: none; color: var(--text);
  transition: background .1s;
}
.hub-list-item a:hover {
  background: var(--surface); text-decoration: none;
}
.hub-item-name {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 14px;
}
.hub-item-count {
  color: var(--text-muted); font-size: 12px; font-variant-numeric: tabular-nums;
  margin-left: 8px;
  background: var(--chip-bg); padding: 2px 8px; border-radius: 999px;
}

@media (max-width: 600px) {
  .hub-list { grid-template-columns: 1fr; }
}