/* =========================================================
   INDEX.CSS — Estilos específicos da home (hero + catálogo)
   Depende de: global.css
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--grey-line);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-ps);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.5px;
  max-width: 720px;
  color: var(--text-main);
}

.hero__title span {
  color: var(--blue-ps);
}

.hero__subtitle {
  color: var(--grey-text);
  font-size: 1rem;
  max-width: 520px;
  margin-top: 14px;
}

/* =========================================================
   FILTROS DE CATEGORIA
   ========================================================= */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 28px 0;
}

.filter-chip {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--grey-line);
  background: var(--bg-elevated);
  color: var(--grey-text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s var(--ease);
}

.filter-chip:hover {
  border-color: var(--blue-ps);
  color: var(--text-main);
}

.filter-chip.is-active {
  background: var(--blue-ps);
  border-color: var(--blue-ps);
  color: var(--white);
}

/* =========================================================
   GRID DE CATÁLOGO
   ========================================================= */

.catalog {
  padding: 8px 0 64px;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.catalog__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--grey-text);
  padding: 60px 0;
  font-size: 0.95rem;
}

.game-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

/* Barra de status — assinatura visual: referência à light bar do console.
   Cinza por padrão, azul quando o jogo está no carrinho. */
.game-card__bar {
  height: 4px;
  width: 100%;
  background: var(--grey-line);
  transition: background 0.25s var(--ease);
}

.game-card.is-in-cart .game-card__bar {
  background: var(--blue-ps);
}

.game-card__cover {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
}

.game-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.game-card:hover .game-card__cover img {
  transform: scale(1.04);
}

.game-card__body {
  padding: 14px 16px 16px;
}

.game-card__platform {
  color: var(--grey-text);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.game-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-main);
  /* Trava em 2 linhas para manter os cards alinhados */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.game-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-main);
}

.game-card__price-old {
  display: block;
  color: var(--grey-text);
  font-size: 0.75rem;
  font-weight: 400;
  text-decoration: line-through;
  margin-bottom: -2px;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--blue-ps);
  color: var(--white);
  flex-shrink: 0;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.add-btn:hover {
  background: #3aa3ff;
}

.add-btn:active {
  transform: scale(0.92);
}

.add-btn.is-added {
  background: var(--success);
}

.add-btn svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (max-width: 1100px) {
  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .hero {
    padding: 36px 0 28px;
  }

  .game-card__title {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .catalog__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .game-card__body {
    padding: 10px 12px 12px;
  }

  .game-card__price {
    font-size: 1rem;
  }
}