/* --- RESET BÁSICO E VARIÁVEIS GLOBAIS (TEMA ESCURO) --- */
:root {
  --primary-color: #00aaff; /* Azul vibrante principal */
  --secondary-color: #aa55ff; /* Roxo/Magenta para gradientes */
  --dark-bg-primary: #121212; /* Fundo principal super escuro */
  --dark-bg-secondary: #1e1e1e; /* Fundo para elementos (cards, footer) */
  --text-primary: #e0e0e0; /* Cor de texto principal (quase branco) */
  --text-secondary: #a0a0a0; /* Cor de texto para parágrafos */
  --border-color: rgba(255, 255, 255, 0.1); /* Cor sutil para bordas */
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
  font-family: "Open Sans", "Poppins", sans-serif;
  background-color: var(--dark-bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--text-primary);
  font-family: "Montserrat", sans-serif;
}

/* --- CABEÇALHO UNIFICADO (TEMA ESCURO) --- */
.main-header {
  background-color: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--primary-color);
}

/* --- SEÇÃO DE JOGOS (JÁ ERA ESCURA, MANTIDA) --- */
.games-section-wrapper {
  font-family: "Poppins", Arial, sans-serif;
  padding: 4rem 20px;
  background-image: radial-gradient(
    circle at 50% 0%,
    rgba(42, 50, 77, 0.5),
    transparent 70%
  );
  background-repeat: no-repeat;
  text-align: center;
}

.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 16px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
}

.main-container h1 {
  font-size: 2.8em;
  font-weight: 700;
  margin: 0 0 40px 0;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.site-description {
  font-size: 1.1em;
  line-height: 1.6;
  max-width: 90%;
  margin: -20px auto 30px auto;
  color: var(--text-secondary);
}

.game-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.game-list a {
  display: block;
  width: 80%;
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  font-weight: 700;
  padding: 18px 30px;
  border-radius: 10px;
  background: linear-gradient(45deg, #007bff, #0056b3);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.game-list a:hover {
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
  filter: brightness(1.1);
}

.toggle-button {
  background: none;
  border: none;
  color: var(--primary-color);
  font-size: 1em;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 10px;
  margin-top: 25px;
  font-family: "Poppins", sans-serif;
}

.game-descriptions {
  display: none;
  width: 90%;
  margin: 20px auto 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.game-descriptions.visible {
  display: block;
}

.game-descriptions h2 {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.3em;
}

.game-descriptions p {
  font-size: 0.95em;
  line-height: 1.7;
  text-align: justify;
  margin-bottom: 25px;
}

/* --- SEÇÃO DO BLOG (ADAPTADA PARA TEMA ESCURO) --- */
#blog-section {
  scroll-margin-top: 80px;
}

.articles-overview {
  padding: 4rem 0;
  background-color: var(--dark-bg-primary); /* Fundo escuro */
}

.articles-overview h2,
.full-articles-content h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--dark-bg-secondary); /* Fundo de card escuro */
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.article-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary); /* Texto do título claro */
}

.article-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  color: var(--text-secondary); /* Texto do parágrafo mais suave */
}

.article-card a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  align-self: flex-start;
}

.article-card a:hover {
  text-decoration: underline;
}

.article-separator {
  height: 1px;
  background-color: var(--border-color);
  margin: 1rem auto;
  border: none;
}

.full-articles-content {
  padding: 3rem 0;
  background-color: var(--dark-bg-primary);
}

.full-articles-content article {
  background-color: var(--dark-bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
}

.full-articles-content article:last-child {
  margin-bottom: 0;
}

.full-articles-content h2 {
  text-align: left;
  font-size: 1.8rem;
}

.full-articles-content p,
.full-articles-content li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.full-articles-content strong {
  color: var(--text-primary);
}

.full-articles-content ul,
.full-articles-content ol {
  margin-left: 1.5rem;
}

/* --- RODAPÉ UNIFICADO (JÁ ERA ESCURO, MANTIDO) --- */
.main-footer {
  background-color: #1e1e1e;
  color: #a0a0a0;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--border-color);
}
.footer-links {
  margin-bottom: 1rem;
}
.footer-links a {
  color: #007bff;
  text-decoration: none;
  margin: 0 15px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 640px) {
  .main-header .container {
    flex-direction: column;
    gap: 1rem;
  }
  .main-container {
    padding: 30px 20px;
  }
  .main-container h1 {
    font-size: 2.2em;
  }
  .game-list a {
    width: 95%;
  }
  .full-articles-content article {
    padding: 1.5rem;
  }
}
