/* Shared hub styles (also copied to oppo-image.com root). */

.hub-page {
  min-height: 100dvh;
  padding: clamp(20px, 4vw, 48px) clamp(16px, 3vw, 32px) 40px;
  background: #1e1e1e;
  color: #f2f2f2;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.hub-page__head {
  text-align: center;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.hub-page__head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hub-page__head p {
  margin: 0;
  color: rgba(245, 245, 245, 0.62);
  font-size: 0.95rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  max-width: 760px;
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hub-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 960px;
  }
}

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

.hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(18px, 2.5vw, 24px) clamp(14px, 2vw, 20px) 22px;
  border-radius: 14px;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.hub-card--new {
  position: relative;
}

.hub-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  color: #fff8ee;
  background: linear-gradient(135deg, #d9955a 0%, #b87240 100%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  user-select: none;
}

.hub-card__illus {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
}

.hub-card__illus svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hub-card__illus--photowalk {
  position: relative;
}

.hub-card__illus--photowalk .hub-card__illus-easter {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.hub-card__illus--photowalk:hover .hub-card__illus-easter,
.hub-card__illus--photowalk:focus-within .hub-card__illus-easter {
  opacity: 1;
}

.hub-card__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: #f5f5f5;
}

.hub-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 4px;
  font-size: 0.9rem;
}

.hub-card__link {
  color: #5b9bd5;
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 4px;
}

.hub-card__link:hover {
  text-decoration: underline;
  background: rgba(91, 155, 213, 0.12);
}

.hub-card__actions--single {
  min-height: 1.75rem;
}

.hub-card__sep {
  color: rgba(245, 245, 245, 0.35);
  user-select: none;
}
