/* ═══════════════════════════════════════════════════════════
   Hub Pages — Rich single-column category hub pages
   Prompt 48: Initial creation | Prompt 49: Richer cards rework
   Mobile-first, consistent with home_v2 design language
   ═══════════════════════════════════════════════════════════ */

.hub-page-wrapper {
  max-width: var(--page-max, 1200px);
  margin: 0 auto;
  padding: var(--page-pad, 16px) var(--page-pad, 16px) 40px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(123,44,191,0.07) 0%, transparent 65%),
    linear-gradient(170deg, #f8f2ff 0%, #f3ecfb 40%, #eee7f6 100%);
  min-height: 60vh;
}

/* ── Breadcrumb (hub pages) ── */
.hub-page-wrapper .breadcrumb-nav,
.hub-page-wrapper .breadcrumb-nav.micro {
  font-size: 0.82rem;
  color: #6c757d;
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .5rem;
  margin: 0 0 4px;
}
.hub-page-wrapper .breadcrumb-nav a {
  color: #7b2cbf;
  text-decoration: none;
  font-weight: 500;
}
.hub-page-wrapper .breadcrumb-nav a:hover {
  text-decoration: underline;
}
.hub-page-wrapper .breadcrumb-nav .sep {
  opacity: .6;
}

.hub-page-header {
  text-align: center;
  padding: 28px 16px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 20px rgba(123,44,191,0.09), 0 1px 4px rgba(123,44,191,0.04);
  border: 1px solid rgba(123,44,191,0.04);
  margin-top: 12px;
  margin-bottom: 24px;
}

.hub-page-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #7b2cbf;
  margin: 0 0 4px;
  line-height: 1.35;
}

.hub-page-subtitle {
  font-size: 0.88rem;
  color: #5e2a9e;
  margin: 0;
  line-height: 1.45;
}

/* ── Rich single-column card list (Prompt 49) ── */
.hub-page-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Ensure home-sourced cards stretch to full width inside hub pages */
.hub-page-cards .affirmation-banner-wrapper,
.hub-page-cards .gt-card-wrap,
.hub-page-cards .lucky-wrap {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}
.hub-page-cards .affirmation-banner,
.hub-page-cards .gt-card,
.hub-page-cards .panch-card,
.hub-page-cards .good-time-card,
.hub-page-cards .lucky-card,
.hub-page-cards .top3-card,
.hub-page-cards .gticker,
.hub-page-cards .yearly-home-card {
  max-width: 100%;
}

.hub-rich-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(123,44,191,0.07);
  box-shadow: 0 2px 12px rgba(123,44,191,0.07);
  text-decoration: none;
  color: #333;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.hub-rich-card:hover {
  border-color: rgba(123,44,191,0.22);
  box-shadow: 0 4px 22px rgba(123,44,191,0.15);
  transform: translateY(-1px);
}

.hub-rich-card-left {
  flex-shrink: 0;
}

.hub-rich-card-icon {
  font-size: 1.8rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5eeff 0%, #ede4ff 100%);
  border-radius: 14px;
}

.hub-rich-card-body {
  flex: 1;
  min-width: 0;
}

.hub-rich-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #5e2a9e;
  line-height: 1.3;
  margin: 0 0 4px;
}

.hub-rich-card-desc {
  font-size: 0.82rem;
  color: #7a5e99;
  line-height: 1.5;
  margin: 0;
}

.hub-rich-card-arrow {
  flex-shrink: 0;
  color: #b89fd4;
  font-size: 1.2rem;
  font-weight: 600;
  transition: color 0.15s;
}

.hub-rich-card:hover .hub-rich-card-arrow {
  color: #7b2cbf;
}

/* ── CTA row (Prompt 49) ── */
.hub-page-cta-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
  text-align: center;
}

.hub-cta-btn {
  display: inline-block;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-align: center;
}

.hub-cta-primary {
  color: #fff;
  background: linear-gradient(135deg, #7b2cbf 0%, #a855f7 100%);
  border: none;
}
.hub-cta-primary:hover {
  background: linear-gradient(135deg, #6b21a8 0%, #9333ea 100%);
  color: #fff;
}

.hub-cta-secondary {
  color: #7b2cbf;
  background: #fff;
  border: 1.5px solid rgba(123,44,191,0.25);
}
.hub-cta-secondary:hover {
  background: #f5eeff;
  border-color: #7b2cbf;
}

/* ── Back / Home link ── */
.hub-page-back {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #7b2cbf;
  background: #fff;
  border: 1.5px solid rgba(123,44,191,0.18);
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.hub-page-back:hover {
  background: #f5eeff;
  border-color: #7b2cbf;
}

/* ═══════════════════════════════════════════════════════════
   Desktop adjustments
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .hub-page-title {
    font-size: 1.5rem;
  }
  .hub-rich-card {
    padding: 20px 20px;
  }
  .hub-rich-card-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
  }
  .hub-rich-card-title {
    font-size: 1rem;
  }
  .hub-rich-card-desc {
    font-size: 0.85rem;
  }
  .hub-page-cta-row {
    flex-direction: row;
    justify-content: center;
    gap: 14px;
  }
  .hub-cta-btn {
    min-width: 200px;
  }
}

@media (min-width: 900px) {
  .hub-rich-card {
    padding: 22px 24px;
    gap: 18px;
  }
  .hub-page-cards {
    gap: 14px;
  }
}
