/* Estilos mais recentes da loja (separados de combo-hero.css, que chegou ao limite de 64 KB do envio do tema) */

/* ── Combos de franquias (components/franquias.html) ── */
/* Card da vitrine: 3 jogos da franquia dividem a capa em 3 faixas, no padrão do Top da semana */
html body .gz-fr-card__capa {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #0a0c10;
}

html body .gz-fr-card__fatia {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

html body .gz-fr-card__fatia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

html body .gz-fr-card:hover .gz-fr-card__fatia img {
  transform: scale(1.06);
}

html body .gz-fr-card__qtd {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: #0a0c10;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

html body .gz-fr-card__all {
  margin-top: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  color: hsl(var(--primary));
}

/* Página da franquia (/franquia?f=...) */
html body .gz-fr-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  html body .gz-fr-head {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 2rem;
  }
}

html body .gz-fr-head__capa {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  aspect-ratio: 3 / 4;
  max-width: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  background: #0a0c10;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

html body .gz-fr-head__capa span {
  background-size: cover;
  background-position: center;
}

html body .gz-fr-eyebrow {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--primary));
}

html body .gz-fr-head__title {
  margin-top: 0.25rem;
  font-family: Kanit, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
}

html body .gz-fr-head__lead {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.5;
}

html body .gz-fr-head__lead strong {
  color: #fff;
}

html body .gz-fr-head__prices {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

html body .gz-fr-head__prices s {
  color: rgba(255, 255, 255, 0.45);
  font-size: 15px;
}

html body .gz-fr-head__prices strong {
  color: #fff;
  font-size: 2rem;
  font-weight: 800;
}

html body .gz-fr-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.9rem 1.4rem;
  border-radius: 0.8rem;
  background: #34a853;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 10px 26px rgba(52, 168, 83, 0.35);
  transition: filter 0.2s, transform 0.2s;
}

html body .gz-fr-buy:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

html body .gz-fr-buy.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

html body .gz-fr-head__note {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

html body .gz-fr-vazio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  html body .gz-fr-head__capa {
    max-width: 200px;
  }
}

/* ── Marca "Game [logo] Zone" no cabeçalho: letras em degradê branco → azul com brilho e um rastro de luz atrás.
      Mesmo tamanho de antes (texto 13,8/15,6 px e logo 41/48 px, em combo-hero.css). ── */
html body .site-topbar__brand {
  position: relative;
  isolation: isolate;
}

/* Rastro de luz horizontal atrás da marca */
html body .site-topbar__brand::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -10%;
  right: -10%;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  /* Translúcida: nasce invisível no centro (atrás da logo) e vai ganhando cor para a esquerda e para a direita,
     sumindo só bem na ponta */
  background: linear-gradient(90deg, transparent 0%, rgba(160, 215, 255, 0.55) 9%, rgba(150, 210, 255, 0.34) 24%, rgba(150, 210, 255, 0.12) 40%, transparent 50%, rgba(150, 210, 255, 0.12) 60%, rgba(150, 210, 255, 0.34) 76%, rgba(160, 215, 255, 0.55) 91%, transparent 100%);
  filter: blur(0.6px);
  pointer-events: none;
}

/* Halo azul suave atrás das letras */
html body .site-topbar__brand::after {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 15% -8%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(95, 180, 240, 0.28), transparent 70%);
  pointer-events: none;
}

html body .site-topbar .site-topbar__name {
  font-weight: 900;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #ffffff 0%, #e6f4ff 45%, #9fd3fb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(95, 180, 240, 0.65)) drop-shadow(0 1px 1px rgba(0, 20, 50, 0.6));
}

html body .site-topbar .site-topbar__logo {
  filter: drop-shadow(0 0 6px rgba(95, 180, 240, 0.6));
}

/* ── Computador (≥ 1024 px): logo e nome no canto esquerdo e a busca "Encontre seu próximo jogo" sempre aberta
      no meio da barra (no celular e no tablet continua abrindo pela lupa) ── */
@media (min-width: 1024px) {
  html body .site-topbar__inner { position: relative; }
  html body .site-topbar__nav { grid-template-columns: auto 1fr auto; }
  html body .site-topbar__left { display: none; }
  html body .site-topbar__brand { justify-content: flex-start; }
  html body .king-nav-action-btn--search { display: none; }

  html body #kingdom-home-search-panel,
  html body #kingdom-home-search-panel.hidden {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 42vw);
    height: 4.75rem;
    margin: 0;
    padding: 0;
  }

  html body #kingdom-home-search-panel > div { max-width: none; }
}

/* ── Demonstração do "Monte seu combo" com capas deitadas (2 colunas x 3 fileiras) ── */
html body .cdemo__grid { grid-template-columns: repeat(2, 1fr); }
html body .cdemo__tile img { aspect-ratio: 460 / 215; }
html body .cdemo__tile:nth-child(n+7) { display: none; }
/* Resumo "Seu combo": miniatura deitada, na mesma proporção da capa */
html body .cdemo__li img { width: auto; height: 2.25rem; aspect-ratio: 460 / 215; }

/* ── Faixa do combo (components/navbar.html): abaixo da barra, fixa com ela ── */
:root { --gz-faixa: 44px; }
@media (max-width: 639px) { :root { --gz-faixa: 40px; } }

html body .site-topbar__spacer { height: calc(4rem + var(--gz-faixa)); }
@media (min-width: 640px) { html body .site-topbar__spacer { height: calc(4.5rem + var(--gz-faixa)); } }
@media (min-width: 1024px) { html body .site-topbar__spacer { height: calc(4.75rem + var(--gz-faixa)); } }

html body .gz-faixa-combo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  height: var(--gz-faixa);
  padding: 0 1rem;
  overflow: hidden;
  background: linear-gradient(90deg, #0a4f8f 0%, hsl(var(--primary)) 50%, #0a4f8f 100%);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Brilho passando de tempos em tempos */
html body .gz-faixa-combo::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: gz-faixa-brilho 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gz-faixa-brilho {
  0%, 55% { left: -40%; }
  100% { left: 120%; }
}

html body .gz-faixa-combo__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #07090d;
  color: hsl(var(--primary));
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html body .gz-faixa-combo__tag svg { width: 14px; height: 14px; }

html body .gz-faixa-combo__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
html body .gz-faixa-combo__txt strong { font-weight: 900; }
html body .gz-faixa-combo__sub { font-weight: 600; opacity: 0.9; }

html body .gz-faixa-combo__off {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border-radius: 6px;
  background: #34a853;
  color: #fff;
  animation: gz-faixa-pulso 1.6s ease-in-out infinite;
}

@keyframes gz-faixa-pulso {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

html body .gz-faixa-combo__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  color: #0a4f8f;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s;
}

html body .gz-faixa-combo__cta svg { width: 15px; height: 15px; animation: gz-faixa-seta 1.2s ease-in-out infinite; }
html body .gz-faixa-combo:hover .gz-faixa-combo__cta { transform: scale(1.05); }

@keyframes gz-faixa-seta {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

/* Celular: só o essencial (oferta + botão curto) */
@media (max-width: 767px) {
  html body .gz-faixa-combo__sub { display: none; }
}
@media (max-width: 639px) {
  html body .gz-faixa-combo { gap: 0.5rem; padding: 0 0.6rem; font-size: 12.5px; }
  html body .gz-faixa-combo__tag { display: none; }
  html body .gz-faixa-combo__cta { padding: 0.3rem 0.65rem; font-size: 12px; }
  html body .gz-faixa-combo__cta-txt { font-size: 0; }
  html body .gz-faixa-combo__cta-txt::before { content: 'Montar'; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html body .gz-faixa-combo::after,
  html body .gz-faixa-combo__off,
  html body .gz-faixa-combo__cta svg { animation: none; }
}

/* ── Botão Voltar (components/voltar.html): fixo no canto superior esquerdo, pulsando nas cores do tema ── */
html body .gz-voltar {
  position: fixed;
  left: 16px;
  top: calc(88px + var(--gz-faixa));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.7);
  background: hsl(var(--primary));
  color: #0a0c10;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 0 0 hsl(var(--primary) / 0.6);
  animation: gz-voltar-pulso 1.8s ease-out infinite;
  transition: transform 0.2s, filter 0.2s;
}

html body .gz-voltar:hover {
  transform: translateX(-2px);
  filter: brightness(1.08);
}

@keyframes gz-voltar-pulso {
  0% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0.6); }
  70% { box-shadow: 0 0 0 14px hsl(var(--primary) / 0); }
  100% { box-shadow: 0 0 0 0 hsl(var(--primary) / 0); }
}

@media (max-width: 639px) {
  html body .gz-voltar {
    left: 12px;
    top: calc(76px + var(--gz-faixa));
    padding: 0.5rem 0.85rem 0.5rem 0.7rem;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .gz-voltar {
    animation: none;
  }
}

/* "Ver todos →" das fileiras (scripts/home-rows.js): link para a página com a categoria inteira */
html body a.home-more--link {
  text-decoration: none;
  color: inherit;
}

html body a.home-more--link:hover .home-more__icon {
  transform: translateX(3px);
}

/* Páginas com o botão Voltar fixo: o conteúdo começa abaixo dele */
html body .gz-com-voltar {
  margin-top: 2.5rem;
}

html body .gz-franquias-lista {
  margin-top: 2.5rem;
}
/* ── Página do jogo: combo compacto abaixo dos botões (o "Comprar já" cabe na tela sem rolar) ── */
html body .pp-combo-cta--compacto {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.7rem;
}

html body .pp-combo-cta--compacto .pp-combo-cta__text {
  gap: 0.3rem;
  min-width: 0;
}

html body .pp-combo-cta--compacto .pp-combo-cta__text strong {
  font-size: 0.85rem;
  line-height: 1.25;
}

html body .pp-combo-cta--compacto .pp-combo-cta__go {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

/* Botão Voltar fixo no canto superior esquerdo: a página do jogo começa logo abaixo dele */
html body .pp--com-voltar {
  padding-top: 4.25rem;
}

/* Grade das páginas de categoria e de franquia: mesmas colunas das fileiras da página inicial
   (styles/home-carousel.css), para os cards terem o mesmo tamanho em todo o site */
html body .gz-grade-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) { html body .gz-grade-cards { gap: 1rem; } }
@media (min-width: 768px) { html body .gz-grade-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { html body .gz-grade-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { html body .gz-grade-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* "Ver todos" de uma categoria, franquia ou dos mais pedidos (/pack?categoria=, ?franquia=, ?top=1):
   mesma capa deitada da Steam (460:215) de todos os cards do site, sem corte */
html body [data-combo-builder] [data-sem-limite] .combo-card__media,
html body [data-combo-builder] [data-sem-limite] .king-card-offer-img {
  aspect-ratio: 460 / 215;
}

/* Botão Gêneros ao lado do "Buscar jogo...": mesma borda, fundo, altura e letra do campo de busca (vitrine e combo) */
html body .gz-vitrine-bar #mobile-category-toggle {
  height: 40px;
  padding: 0 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--primary) / 0.45);
  background: rgba(10, 12, 16, 0.55);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.7);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html body .gz-vitrine-bar #mobile-category-toggle:hover,
html body .gz-vitrine-bar #mobile-category-toggle[data-state="open"] {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.2);
}

html body .gz-vitrine-bar #mobile-category-toggle svg {
  color: hsl(var(--primary));
}

@media (max-width: 639px) {
  html body .gz-vitrine-bar #mobile-category-toggle {
    font-size: 18px;
  }
}

/* ── Verde único da loja (#34a853, o mesmo do selo "Compra 100% segura" do rodapé) ──
   Repete as regras verdes do core.css, que passou do limite de 64 KB e não é enviado ao site. */
html body .pkg-status__dot { background: #34a853; box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.18); }
html body .pkg-pix,
html body .combo-summary__savings,
html body .combo-result__text em,
html body .nav-combo-btn__off { color: #34a853; }
html body .combo-badge--off { color: #34a853; background: rgba(52, 168, 83, 0.1); border-color: rgba(52, 168, 83, 0.35); }
html body .combo-cta__sticker { background: #34a853; box-shadow: 0 10px 30px rgba(52, 168, 83, 0.45); }
html body .combo-summary__savings { background: rgba(52, 168, 83, 0.08); }
html body .text-green-400,
html body .text-green-500 { color: #34a853; }
html body .price-off-tag { color: #34a853; border-color: rgba(52, 168, 83, 0.35); background: rgba(52, 168, 83, 0.1); }

/* Página da franquia: valor médio de cada jogo no pacote */
html body .gz-fr-head__cada {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
}

html body .gz-fr-head__cada strong {
  color: #fff;
}

/* ── Visual da faixa do combo só no que é do Combo Pack e no botão Voltar: azul em degradê com brilho ── */
html body .combo-btn:not(:disabled),
html body .pp-combo-cta { position: relative; }

html body .combo-btn:not(:disabled),
html body .pp-combo-cta,
html body .gz-voltar {
  overflow: hidden;
  background: linear-gradient(90deg, #0a4f8f 0%, hsl(var(--primary)) 50%, #0a4f8f 100%);
  color: #fff;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

html body .combo-btn:not(:disabled) svg,
html body .pp-combo-cta__go svg { animation: gz-faixa-seta 1.2s ease-in-out infinite; }

html body .combo-btn:not(:disabled)::after,
html body .pp-combo-cta::after,
html body .gz-voltar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-130%) skewX(-20deg);
  animation: gz-brilho-passa 3.6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gz-brilho-passa {
  0%, 55% { transform: translateX(-130%) skewX(-20deg); }
  100% { transform: translateX(450%) skewX(-20deg); }
}

html body .pp-combo-cta { border-color: rgba(255, 255, 255, 0.14); }
html body .pp-combo-cta .pp-offer { color: #fff; }

html body .pp-combo-cta .pp-combo-cta__go {
  border-radius: 999px;
  background: #fff;
  color: #0a4f8f;
  font-weight: 900;
  text-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  html body .combo-btn::after,
  html body .pp-combo-cta::after,
  html body .gz-voltar::after { display: none; }
  html body .combo-btn svg,
  html body .pp-combo-cta__go svg { animation: none; }
}
