/* Hub app gallery: a grid of tiles that scales from a few apps to dozens. */

.hub-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.hub-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kis-text-muted);
  margin: 0 0 0.75rem;
}

.hub-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.hub-gallery li {
  display: flex;
}

.hub-tile {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 1rem;
  background: var(--kis-card);
  border: 1px solid var(--kis-border);
  border-radius: 16px;
  box-shadow: var(--kis-shadow);
  color: var(--kis-text);
  text-decoration: none;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

a.hub-tile:hover {
  border-color: var(--kis-accent);
  transform: translateY(-2px);
}

.hub-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 0.4rem;
}

.hub-icon-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: var(--kis-surface);
  border: 1px solid var(--kis-border);
}

.hub-name {
  font-weight: 700;
  font-size: 1rem;
}

.hub-desc {
  font-size: 0.85rem;
  color: var(--kis-text-muted);
  line-height: 1.35;
}

.hub-tile-soon {
  background: transparent;
  box-shadow: none;
  border-style: dashed;
}

.hub-badge {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--kis-text-muted);
}

@media (prefers-reduced-motion: reduce) {
  a.hub-tile:hover {
    transform: none;
  }
}
