/* Reset e Normalização */
@font-face {
  font-family: "ChaletComprime";
  src: url("../fontes/ChaletComprime.ttf");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--cor-primaria) var(--cor-fundo);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Estilo da barra de rolagem para Webkit (Chrome, Edge) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cor-secundaria);
}

::-webkit-scrollbar-thumb {
  background-color: var(--cor-secundaria);
  border-radius: 10px;
  border: 2px solid var(--cor-secundaria);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--cor-secundaria);
  border: 2px solid var(--cor-primaria);
}

/* Definindo as cores principais */
:root {
  --cor-primaria: #fcaf17;
  --cor-secundaria: #ffd700;
  --cor-fundo: #003366;
  --cor-texto: #ffffff;
}

/* Tema "shadow" */
[data-theme="shadow"] {
  --cor-primaria: #ff0000;
  --cor-secundaria: #1e1e1e;
  --cor-fundo: #121212;
  --cor-texto: #fcaf17;
}

/* Estilo geral do body */
body {
  background-color: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: 'Chalet', sans-serif;
  background: linear-gradient(180deg, #003366 0%, #0051a2 100%);
  color: #ffffff;
  font-family: "Chalet", sans-serif;
}

/* Estilo do body quando o tema "shadow" é ativado */
[data-theme="shadow"] body {
  background: linear-gradient(180deg, #000000 0%, #121212 100%);
  color: var(--cor-texto);
}

[data-theme="shadow"] .cabecalho {
  background: linear-gradient(90deg, #0c0c0c, #1c1c1c);
  border-bottom: 4px solid var(--cor-primaria);
}

/* Estilo da parte superior (cabecalho) */
.cabecalho {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 80px;
  background: linear-gradient(90deg, #001f4d, #003366);
  border-bottom: 4px solid #fcaf17;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.cabecalho .logo {
  display: flex;
  gap: 15px;
}

.cabecalho .menu {
  display: flex;
  gap: 30px;
}

.cabecalho .menu li a {
  padding: 30px;
  color: #e8e8e8;
  font-weight: bolder;
  font-size: 15px;
  font-family: "Chalet";
  
}

/* Estilo do menu de navegação */
.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 0;
  margin: 0;
}

.menu li a {
  padding: 30px;
  color: #e8e8e8;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo img {
  width: 10%;
  height: auto;
}

#toggle-theme {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#toggle-theme img {
  width: 55px; 
  height: 55px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

#toggle-theme:hover img {
  transform: scale(1.1);
}

/* Estilo da seção home */
.home {
  display: flex;
  position: relative;
  min-height: calc(100vh - 80px);
}

.home::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7) 35%, transparent 65%);
}

.home .imagem-fundo {
  width: 100%;
  object-fit: cover;
}

.home .informacoes {
  position: absolute;
  z-index: 1;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 80px 80px 80px 170px;
  max-width: 780px;
}

.home .informacoes img {
  max-width: 155px;
}

.home .informacoes .lista-de-jogos {
  display: flex;
  gap: 10px;
}

.home .informacoes .lista-de-jogos img {
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.home .informacoes .lista-de-jogos img:hover {
  transform: scale(1.1);
}

.home .informacoes .titulo {
  font-family: "ChaletComprime";
  font-size: 55px;
}

.home .informacoes .texto {
  font-family: "Chalet";
  font-size: 18px;
  line-height: 1.6;
}

/* Estilo dos botões padrão */
.btn-comprar,
.btn-plataforma {
  background-color: #005eff7c;
  border: 0.5px solid #fff;
  color: #fff;
  border-radius: 4px;
  font-family: "ChaletComprime";
  font-size: 28px;
  text-align: center;
  padding: 20px 40px;
  text-transform: uppercase;
  width: 50%;
  cursor: pointer;
  transition: all 0.3s ease-in;
}

.btn-plataforma {
  width: 100%;
}

/* Efeito hover nos botões */
.btn-comprar:hover,
.btn-plataforma:hover {
  background-color: var(--cor-fundo);
  color: var(--cor-primaria);
}

.btn-comprar:hover {
  background-color: #fff;
  border: 0.5px solid #fff;
  color: #000;
}

/* Estilo dos botões no tema shadow */
[data-theme="shadow"] .btn-comprar,
[data-theme="shadow"] .btn-plataforma {
  background-color: #1e1e1e;
  border: 0.5px solid #fcaf17;
  color: #fcaf17;
}

[data-theme="shadow"] .btn-plataforma:hover {
  color: #ff0000;
}

[data-theme="shadow"] .btn-comprar:hover {
  background-color: #000;
  border: 0.5px solid #000;
  color: #fff;
}

/* Cartão e informações para a seção "Compre Agora" */
.compre-agora .cartao {
  background-color: #1e1e1e;
  border: 2px solid #fcaf17;
}

[data-theme="shadow"] .compre-agora .cartao {
  border-color: #ff0000;
}

.compre-agora .informacoes h3 {
  color: #fcaf17;
}

[data-theme="shadow"] .compre-agora .informacoes h3 {
  color: #ff0000;
}

.compre-agora .capa-do-jogo {
  width: 270px;
}

.compre-agora {
  display: flex;
  flex-direction: column;
  text-align: center;
  padding: 50px;
  align-items: center;
}

.compre-agora .titulo {
  font-family: "ChaletComprime";
  font-size: 50px;
  font-weight: 700;
  margin-bottom: 50px;
}

.compre-agora .cartao {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000;
  width: 50%;
  border-radius: 10px;
  padding: 80px;
  gap: 40px;
}

.compre-agora .informacoes {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.compre-agora .informacoes h3 {
  font-family: "ChaletComprime";
  font-size: 52px;
  font-weight: 700;
}

.compre-agora .informacoes p {
  color: #e8e8e8;
  font-family: "Chalet";
  font-size: 16px;
  line-height: 1.6;
}

.compre-agora .informacoes .plataformas {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.compre-agora .btn-plataforma .plataformas {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.3s ease-in;
  display: none;
  opacity: 0;
}

.compre-agora .btn-plataforma .plataformas.ativo {
  display: flex;
  opacity: 1;
}

.compre-agora .btn-plataforma .plataformas li {
  padding: 20px;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(1) {
  border: 1px solid #1c58fd;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(1):hover {
  background-color: #1c58fd;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(2) {
  border: 1px solid #8220f1;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(2):hover {
  background-color: #8220f1;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(3) {
  border: 1px solid #55b939;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(3):hover {
  background-color: #55b939;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(4) {
  border: 1px solid #850202;
}

.compre-agora .btn-plataforma .plataformas li:nth-child(4):hover {
  background-color: #850202;
}

/* Ícone flutuante do anel do Sonic */
.sonic-ring {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 95px;
  cursor: pointer;
  animation: floatRing 2s infinite ease-in-out;
  z-index: 1000;
}

/* Imagem dentro do ícone do anel */
.sonic-ring img {
  width: 100%;
  transition: transform 0.3s;
}

/* Efeito ao passar o mouse no anel */
.sonic-ring:hover img {
  transform: scale(1.1);
}

/* Animação de flutuação contínua */
@keyframes floatRing {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Anel coletado (efeito de subida e desaparecimento) */
.ring {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: 60px;
  transform: translateX(-50%);
  animation: ringAnimation 0.5s forwards;
  z-index: 1001;
}

/* Animação para o anel subir e desaparecer */
@keyframes ringAnimation {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -100px);
    opacity: 0;
  }
}

/* Classe para reutilizar a animação do anel */
.bounce {
  animation: ringAnimation 0.8s forwards;
}

/* Estilização do rodapé */
footer {
  background: linear-gradient(90deg, #001f4d, #003366);
  color: var(--cor-texto);
  text-align: center;
  padding: 18px;
  font-size: 14px;
  font-family: 'Chalet', sans-serif;
  border-top: 2px solid var(--cor-primaria);
  box-shadow: 0 -4px 10px color-mix(in srgb, var(--cor-primaria) 50%, transparent);
}

/* Estilo alternativo para modo escuro ou sombra */
[data-theme="shadow"] footer {
  background: linear-gradient(90deg, #0c0c0c, #1c1c1c); /* Degradê escuro */
}

/* Link do GitHub no rodapé */
footer .github-link {
  color: var(--cor-primaria);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* Efeito ao passar o mouse no link */
footer .github-link:hover {
  text-decoration: underline;
}
