/* Variáveis de cor */
:root {
  --appgreen-blue: #292929;
}

/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Habilita scroll suave */
html {
  scroll-behavior: smooth;
}

/* BODY */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--appgreen-blue);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  text-align: center;
}

/* CABEÇALHO */
.header {
  background-color: var(--appgreen-blue);
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  width: 150px; /* Ajustei o tamanho da logo */
  height: auto;
}

.status-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-text {
  color: #00ff7f;
  font-weight: 700;
  font-size: 1rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: var(--appgreen-blue);
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* INTRO (título + subtítulo) */
.intro-section {
  padding: 1.5rem 1rem;
}

.intro-section h2 {
  font-size: 1.4rem;
  color: #00ff7f;
  margin-bottom: 0.5rem;
}

.intro-section p {
  font-size: 1rem;
  color: #cccccc;
  max-width: 600px;
  margin: 0 auto;
}

/* GRID DE JOGOS (2 colunas) */
.games-grid {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

/* Responsividade para telas pequenas */
@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .game-card img {
    max-width: 100%;
  }
}

/* CARTÃO DE JOGO */
.game-card {
  border-radius: 8px;
  padding: 0.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}

.game-card:hover {
  transform: translateY(-3px);
}

.game-card a {
  text-decoration: none;
  color: inherit;
}

.game-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

/* Rodapé do card (porcentagem) */
.game-footer {
  margin-top: 0.5rem;
}

.confidence-text {
  font-size: 0.9rem;
  color: #00ff7f;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

/* BARRA DE PROGRESSO */
.progress-bar {
  background-color: #444;
  border-radius: 4px;
  height: 12px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 20px 20px;
  animation: progress-stripes 1s linear infinite;
}

@keyframes progress-stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 40px 0;
  }
}

/* BADGES DE PORCENTAGEM */
.percent-badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.percent-badge.high {
  background-color: #28a745;
}

.percent-badge.medium {
  background-color: #ffc107;
}

.percent-badge.low {
  background-color: #dc3545;
}

/* SEÇÃO BÔNUS */
.bonus-section {
  background-color: #292929;
  text-align: center;
  padding: 1rem;
  margin: 1rem auto;
  border-radius: 8px;
  max-width: 600px;
}

.bonus-section p {
  color: #00ff7f;
  font-weight: 700;
  font-size: 1rem;
}

/* RODAPÉ */
.footer {
  background-color: var(--appgreen-blue);
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.9rem;
}

/* Animação ao rolar a tela */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
