@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&display=swap");

/* Match student dashboard: keep brand header/footer, hide Astra chrome only */
body.sc4k-games-hub-page .entry-header,
body.sc4k-games-hub-page .entry-title,
body.sc4k-games-hub-page .ast-breadcrumbs-wrapper {
  display: none !important;
}

body.sc4k-games-hub-page,
body.sc4k-games-hub-page #page,
body.sc4k-games-hub-page .site,
body.sc4k-games-hub-page .site-content,
body.sc4k-games-hub-page .ast-container,
body.sc4k-games-hub-page .entry-content {
  background: #e5e4fa !important;
  max-width: none !important;
}

body.sc4k-games-hub-page .ast-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html:has(body.sc4k-games-hub-page),
body.sc4k-games-hub-page {
  overflow-x: hidden;
}

.sc4k-games-hub {
  font-family: "Fredoka", system-ui, sans-serif;
  padding: calc(var(--sc4k-header-h, 90px) + 36px) 20px 20px;
  min-height: 60vh;
  color: #1e293b;
}

.sc4k-games-hub-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.sc4k-games-hub-head {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 24px;
}

.sc4k-games-hub-heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.sc4k-games-hub-title {
  margin: 0;
  flex-shrink: 0;
  white-space: nowrap;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  color: #1e293b;
}

.sc4k-games-hub-title span {
  display: inline-block;
}

.sc4k-games-hub-sub {
  margin: 0;
  color: #64748b;
  font-size: 19px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .sc4k-games-hub-head {
    flex-wrap: wrap;
  }

  .sc4k-games-hub-title {
    white-space: normal;
  }

  .sc4k-games-hub-sub {
    font-size: 17px;
  }

  .sc4k-games-hub-card-title {
    font-size: 1.5rem;
  }

  .sc4k-games-hub-card-sub {
    font-size: 16px;
  }

  .sc4k-games-hub-cta {
    font-size: 17px;
  }
}

.sc4k-games-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
}

.sc4k-games-hub-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px 24px;
  border-radius: 32px;
  text-decoration: none !important;
  color: #1e293b !important;
  background: #fff !important;
  background-color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.06),
    0 0 0 1px color-mix(in srgb, var(--gh-accent) 18%, transparent),
    0 0 24px color-mix(in srgb, var(--gh-accent) 16%, transparent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  min-height: 220px;
}

a.sc4k-games-hub-card:hover,
a.sc4k-games-hub-card:focus,
a.sc4k-games-hub-card:active {
  transform: translateY(-3px);
  background: #fff !important;
  background-color: #fff !important;
  color: #1e293b !important;
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.08),
    0 0 0 2px var(--gh-accent);
}

.sc4k-games-hub-card.is-soon {
  opacity: 0.72;
  filter: grayscale(0.15);
}

.sc4k-games-hub-card-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
}

.sc4k-games-hub-card-sub {
  margin: 0;
  color: #64748b;
  font-size: 18px;
  line-height: 1.4;
  flex: 1;
}

.sc4k-games-hub-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 15px 16px;
  border-radius: 18px;
  font-weight: 700;
  font-size: 19px;
  background: #fff;
  color: var(--gh-accent);
  border: 2px solid var(--gh-accent);
  box-shadow: 0 4px 0 var(--gh-accent);
}

a.sc4k-games-hub-card:hover .sc4k-games-hub-cta {
  background: var(--gh-accent);
  color: #fff;
}

.sc4k-games-hub-card.is-soon .sc4k-games-hub-cta {
  background: #f1f5f9;
  color: #94a3b8;
  border-color: #cbd5e1;
  box-shadow: none;
}

@media (max-width: 640px) {
  .sc4k-games-hub {
    padding: calc(var(--sc4k-header-h, 90px) + 20px) 14px 24px;
  }

  .sc4k-games-hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
