/* Scoped to .hub so the rest of sexspielzeug.net is untouched. */

.hub-page {
  display: flex;
  justify-content: center;
  padding: 12px 12px calc(20px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
}

.hub {
  --hub-bg: #1b1016;
  --hub-card: #2a1822;
  --hub-card-2: #351d29;
  --hub-text: #fdf6f8;
  --hub-muted: #d7b8c2;
  --hub-line: rgba(255, 255, 255, 0.12);
  --hub-radius: 22px;
  --hub-shadow: 0 18px 50px rgba(20, 6, 12, 0.35);
  box-sizing: border-box;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  color: var(--hub-text);
  background: radial-gradient(1200px 420px at 50% -10%, #4a2233 0%, var(--hub-bg) 58%);
  border: 1px solid var(--hub-line);
  border-radius: var(--hub-radius);
  box-shadow: var(--hub-shadow);
  padding: 18px 12px 12px;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
}

.hub *,
.hub *::before,
.hub *::after {
  box-sizing: border-box;
}

.hub-head {
  padding: 0 6px 12px;
}

.hub-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.hub-lead {
  margin: 6px 0 0;
  color: var(--hub-muted);
  font-size: 0.95rem;
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hub-item {
  margin: 0;
}

.hub-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--hub-line);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hub-card:active {
  background: var(--hub-card-2);
}

.hub-card:focus-visible {
  outline: 2px solid #ff8fab;
  outline-offset: 2px;
}

.hub-thumb {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 14px;
  object-fit: cover;
  background: #140810;
}

.hub-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: 2px;
}

.hub-meta {
  color: var(--hub-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hub-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

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

.hub-go {
  margin-top: 4px;
  color: var(--hub-text);
  font-size: 0.92rem;
  font-weight: 700;
}

.hub-go::after {
  content: " →";
}

@media (max-width: 359px) {
  .hub {
    padding: 16px 10px 10px;
  }

  .hub-card {
    gap: 10px;
    padding: 8px;
    min-height: 0;
  }

  .hub-thumb {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
    border-radius: 12px;
  }

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

  .hub-text {
    font-size: 0.84rem;
  }
}

@media (min-width: 640px) {
  .hub-page {
    padding-top: 16px;
  }

  .hub {
    padding: 22px 16px 16px;
  }

  .hub-card {
    gap: 14px;
    padding: 12px;
  }

  .hub-thumb {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .hub-name {
    font-size: 1.15rem;
  }
}

@media (hover: hover) {
  .hub-card:hover {
    background: var(--hub-card-2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card {
    transition: none;
  }
}
