/* ESTILOS DA PÁGINA PRINCIPAL DE JOGOS PEDAGÓGICOS (TEACHEASY) */
:root {
  --primary-gradient: linear-gradient(135deg, #4a0715, #7a1730 55%, #a34058);
  --bg-page: #fff8f3;
  --text-dark: #20352b;
  --text-title: #1a3328;
  --kicker-color: #a34058;
  --card-bg: #ffffff;
  --card-border: #e6edd8;
  --grid-container-bg: #f9fbf5;
  --grid-container-border: #edf3e4;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --radius-outer: 24px;
  --radius-card: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.games-hub-page {
  font-family: var(--font-main);
  background: var(--bg-page);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CABEÇALHO DA SEÇÃO DE JOGOS */
.hub-header {
  background: #ffffff;
  padding: 40px 24px 20px;
}

.hub-header-inner {
  max-width: 960px;
  margin: 0 auto;
}

.hub-back {
  display: inline-block;
  color: #76525d;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.hub-back:hover {
  text-decoration: underline;
}

.hub-kicker {
  color: var(--kicker-color);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hub-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-title);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.hub-subtitle {
  font-size: 1.25rem;
  color: #5c6b63;
  line-height: 1.5;
  max-width: 780px;
}

/* CONTAINER CENTRAL DE CARDS */
.hub-main {
  max-width: 960px;
  width: calc(100% - 32px);
  margin: 32px auto 60px;
  flex: 1;
}

.games-container-card {
  background: var(--grid-container-bg);
  border: 1px solid var(--grid-container-border);
  border-radius: var(--radius-outer);
  padding: 28px;
  box-shadow: 0 12px 36px rgba(40, 60, 48, 0.06);
}

/* GRADE DE CARDS (RESPONSIVO: 3 COLUNAS DESKTOP, 2 TABLET, 1 CELULAR) */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 820px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .games-grid {
    grid-template-columns: 1fr;
  }
}

/* CARDS DOS JOGOS */
.game-card {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-card);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: var(--text-title);
  min-height: 220px;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: #20352b;
  box-shadow: 0 14px 28px rgba(32, 53, 43, 0.12);
}

.game-card.featured-card {
  border-color: #ffb703;
  box-shadow: 0 6px 18px rgba(255, 183, 3, 0.15);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ffb703;
  color: #4a2800;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.05em;
  z-index: 2;
}

/* ESTILOS ESPECÍFICOS DE ILUSTRAÇÃO E IMAGENS */
.card-icon-box {
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.game-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.2s ease;
}

.game-card:hover .game-card-image {
  transform: scale(1.06);
}

.card-content h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.3;
}

/* RODAPÉ */
.hub-footer {
  text-align: center;
  padding: 24px;
  font-size: 0.85rem;
  color: #88998f;
  border-top: 1px solid #e8f0e4;
}
