/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS E BODY
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-image: url('../imgs/background.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: top center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

/* ==========================================================================
   2. NAVEGAÇÃO PRINCIPAL (HEADER)
   ========================================================================== */
.navigation {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 15px 0;
  text-align: center;
}

.nav-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.nav-buttons a {
  font-family: 'Cinzel Decorative', serif;
  text-decoration: none;
  padding: 5px 20px;
  color: #fff;
  font-size: 1.2em;
  border-radius: 5px;
  transition: transform 0.3s, color 0.3s;
  font-weight: bold;
}

.nav-buttons a.active,
.nav-buttons a:hover {
  transform: scale(1.20);
  color: #ffcc00;
}

/* ==========================================================================
   3. ESTRUTURA E CONTAINERS PRINCIPAIS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  margin: 0 auto;
}

.content {
  background-color: rgba(0, 0, 0, 0.90);
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 1);
  margin-bottom: 20px;
}

.title {
  text-align: center;
  margin-bottom: 20px;
}

.title1 h2 {
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  color: #ffcc00;
  font-size: 3.2em;
}

/* Título Dourado Padrão para Seções */
.title h2 {
  font-family: 'Cinzel Decorative', serif;
  color: #ffcc00;
  font-size: 2.2em;
}

/* Título Dourado Padrão para Seções */
.title h3 {
  text-align: left;
  font-family: 'Cinzel Decorative', serif;
  color: #ffcc00;
  font-size: 1.1em;
}

/* ==========================================================================
   4. SEÇÃO INICIAL (HOME) - ESTILOS RESTAURADOS
   ========================================================================== */
.server-name {
  padding: 15px 20px;
  text-align: center;
}

.server-name h1 {
  font-family: 'Cinzel Decorative', serif;
  font-size: 38px;
  font-weight: bold;
  color: #fff; /* Garante a cor branca */
}

.server-name h2 {
  font-family: 'Cinzel Decorative', serif;
  margin-bottom: 5px;
  font-size: 1.3em;
  color: #e43804; /* Garante a cor vermelha/laranja */
}

.main-play {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}

.start-button {
  background-image: url("../imgs/start-background1.png");
  background-size: cover;
  background-position: center;
  color: #4e0202;
  padding: 15px 20px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 5px;
  margin: 5px;
}

.start-button:hover {
  transform: scale(1.10);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.8);
}

.start-button-caption {
  font-family: 'Cinzel Decorative', serif;
  font-size: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.start-button-desc {
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 3px;
  margin-left: 8px;
  letter-spacing: 0.24em;
}

/* ==========================================================================
   5. SEÇÃO DE NOTÍCIAS (NEWS) - ESTILOS RESTAURADOS
   ========================================================================== */
.news {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.news-post {
  position: relative;
  width: calc(25% - 15px);
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.news-post:hover {
  transform: scale(1.03);
}

.video-container {
  position: relative;
  width: calc(50% - 15px);
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.news-post::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 60%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.news-date {
  position: absolute;
  top: 5px;
  left: 5px;
  background-image: url("../imgs/news-date.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 74px;
  height: 76px;
  z-index: 2;
  color: #fff;
  text-align: center;
}

.news-date-day {
  color: #ffd200; /* Cor dourada original */
  padding-top: 18px;
  font-size: 20px;
}

.news-date-month {
  font-size: 10px;
  line-height: 1.2; /* Espaçamento corrigido */
  text-transform: uppercase;
  color: #fff;
}

.news-content {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  padding: 5px 10px;
  border-radius: 5px;
}

.news-caption {
  font-family: 'Cinzel Decorative', serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 5px;
}

.news-link {
  font-size: 16px;
  color: #fff;
  text-decoration: underline;
  transition: color 0.3s;
}

.news-link:hover {
  color: #ffd200;
}

/* ==========================================================================
   6. SEÇÃO DE FEATURES (ESTILOS ADICIONADOS)
   ========================================================================== */

/* --- Título H1 específico para a seção Features --- */
#features .title h1 {
  font-family: 'Cinzel Decorative', serif;
  color: #ffcc00;
  font-size: 2.2em;
}

/* --- Container principal da seção Features (Sidebar + Conteúdo) --- */
.container-features {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 500px; /* Altura fixa para permitir scroll no conteúdo */
}

/* --- Sidebar (Menu lateral) --- */
.sidebar {
  width: 220px;
  padding: 10px;
  font-size: 1.2em;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin-bottom: 10px;
}

.sidebar ul li a {
  font-family: 'MedievalSharp', cursive;
  text-decoration: none;
  color: #a5a4a2;
  font-size: 1.15em;
  transition: all 0.3s;
}

.sidebar ul li a.active,
.sidebar ul li a:hover {
  color: #ffcc00;
  font-weight: bold;
  margin-left: 5px;
}

/* --- Área de descrição do conteúdo --- */
.content-description {
  flex: 1; /* Ocupa o espaço restante */
  padding: 5px 20px; /* Adiciona espaçamento interno */
  overflow-y: auto; /* Adiciona barra de rolagem se o conteúdo for maior */
  color: #fff;
}

/* --- Estilo para cada linha de feature (ícone + texto) --- */
.row {
  display: flex;
  align-items: center;
  /* Alinha o ícone e o texto verticalmente */
  gap: 10px;
  /* Espaçamento entre as divs de ícone e texto */
}

.icon,
.text {
  margin: 0;
  /* Garante que não haja margem nas divs */
  font-family: 'Lora', serif;
  font-size: 15px;
  color: #fefefe;
}

/* --- Divisores para a página de Rates --- */
.features-divisor {
  display: flex;
  justify-content: flex-start;
  width: 600px;
  gap: 50px; /* Espaço entre as colunas Normal e VIP */
}

.feature-div {
  width: 300px;
}



/* ==========================================================================
   7. SEÇÃO DE DOWNLOADS (Layout Centralizado)
   ========================================================================== */
.downloads-container {
  width: 100%;
  padding: 20px 0;
}

.download-step {
  text-align: center;
  margin-bottom: 50px;
}

.download-step:last-child {
  margin-bottom: 20px;
}

.step-title {
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.6em;
  font-weight: bold;
  color: #ffcc00;
  margin-bottom: 15px;
}

.download-step p {
  margin: 0;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.step-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-download {
  background-color: #ffb400;
  color: #000;
  padding: 12px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-download:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

.tutorial-link,
.account-link {
  color: #33aaff;
  text-decoration: underline;
  font-weight: bold;
}

.account-link {
  font-size: 1.3em;
}

/* ==========================================================================
   8. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1160px;
  margin-top: 10px;
  padding-top: 10px;
}

.footer-div {
  flex: 1;
  min-width: 280px;
  padding: 10px 15px;
  color: #6e6e6e;
}

.footer-div a {
  color: #6e6e6e;
  text-decoration: none;
  transition: color 0.3s;
  line-height: 1.8;
}

.footer-div a:hover {
  color: #ffcc00;
}

.footer-div:nth-child(1) { text-align: left; }
.footer-div:nth-child(2) { text-align: center; }
.footer-div:nth-child(3) { text-align: right; }

.footer-div p img {
  width: auto;
  max-height: 40px;
  margin-bottom: 10px;
}

.footer-div:nth-child(1) img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
  transition: transform 0.2s;
}

.footer-div:nth-child(1) img:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   9. CLASSES UTILITÁRIAS (ADICIONADO)
   ========================================================================== */
.hidden {
  display: none !important;
}

/* ==========================================================================
   10. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
  .news-post {
    width: calc(50% - 15px);
  }
  .video-container {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-div {
    text-align: center !important;
    min-width: 100%;
  }

  /* --- Ajustes na seção Features para telas menores --- */
  .container-features {
    flex-direction: column; /* Coloca a sidebar em cima do conteúdo */
    height: auto; /* Remove a altura fixa */
  }

  .sidebar {
    width: 100%;
    margin-bottom: 20px;
  }

  .content-description {
    height: 400px; /* Define uma altura para o conteúdo ter rolagem */
  }
}

@media (max-width: 480px) {
  .news-post {
    width: 100%;
    height: 250px;
  }
}