/* =========================================================================
   Hub de landing pages — lp.nexb.com.br
   Depende de /assets/css/base.css
   ========================================================================= */

.hub-hero {
  position: relative;
  padding-block: clamp(48px, 8vw, 96px) clamp(56px, 9vw, 110px);
  background: var(--ink);
  color: var(--text-onink);
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg,
    rgba(78, 197, 193, .10) 0 2px, transparent 2px 90px);
}
.hub-hero::after {
  content: '';
  position: absolute;
  right: -160px; top: -190px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(78, 197, 193, .32), transparent 62%);
}
.hub-hero > * { position: relative; z-index: 1; }

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(32px, 5vw, 56px);
  text-decoration: none;
}
.hub-brand img { width: 110px; height: auto; }
.hub-brand span {
  padding: 5px 11px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
}

.hub-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 18px 0 16px;
  max-width: 16ch;
}
.hub-hero h1 em { font-style: normal; color: var(--yellow); }
.hub-hero p {
  margin: 0;
  max-width: 52ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
}

/* Grade de landing pages */
.hub-list { padding-block: clamp(48px, 7vw, 80px); }

.hub-count {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hub-count::after {
  content: '';
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}

.hub-grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 28px);
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.lp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--paper);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.lp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.lp-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.lp-card__thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(112deg,
    rgba(78, 197, 193, .12) 0 2px, transparent 2px 74px);
}
.lp-card__thumb::after {
  content: '';
  position: absolute;
  right: -70px; bottom: -120px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(230, 228, 55, .3), transparent 62%);
}
.lp-card__glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 18px;
  background: var(--yellow);
  color: var(--ink);
}
.lp-card__glyph svg { width: 32px; height: 32px; }

.lp-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 12px;
  padding: clamp(22px, 2.8vw, 30px);
}
.lp-card__body h2 { font-size: 1.3125rem; margin: 0; letter-spacing: -.015em; }
.lp-card__body h2 a { text-decoration: none; }
.lp-card__body h2 a::after { content: ''; position: absolute; inset: 0; }
.lp-card__body h2 a:hover { color: var(--teal-600); }
.lp-card__body p { margin: 0; color: var(--text-muted); font-size: .9375rem; }

.lp-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: auto;
  padding-top: 8px;
  font-size: .8125rem;
  color: var(--text-muted);
}
.lp-card__url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  color: var(--teal-600);
  word-break: break-all;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--ativa { background: #e3f6ee; color: #0f6b47; }
.badge--dot::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Estado vazio, caso o hub fique sem LPs */
.hub-empty {
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-xl);
  background: var(--paper-2);
  color: var(--text-muted);
}

/* Em contexto flex a etiqueta esticava até a largura do card */
.lp-card__body .badge { align-self: flex-start; }
