/* Estilos del hub (la página de inicio de la biblioteca).
   Parte de la misma base que los temas y añade sólo la rejilla de tarjetas. */

@import "base.css";

main.hub { max-width: 62rem; }
.hub > * { max-width: none; }
.hub h1 { font-size: 2.6rem; margin-top: 0; }
.hub .subtitle { max-width: var(--measure); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem 1rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover, .card:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.card h3 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: .6rem 0 .4rem;
}
.card p {
  font-size: .9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  flex: 1;
}

.card-meta, .card-foot {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
}

.badge {
  padding: .1rem .5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.badge-in-progress, .badge-resumed { background: var(--accent-soft); color: var(--accent); }
.badge-paused    { background: var(--code); color: var(--muted); }
.badge-completed { background: var(--ok-soft); color: var(--ok); }
.badge-abandoned { background: var(--bad-soft); color: var(--bad); }
