/* =========================================
   1. SCROLLBAR PERSONALIZADA (FANTASY THEME)
   ========================================= */
/* Funciona no Chrome, Edge e Safari */
::-webkit-scrollbar {
  width: 6px; /* Bem fina e elegante */
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: #eecfa1; /* Dourado */
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d4af37; /* Dourado escuro */
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #eecfa1 #050505;
}

/* =========================================
   2. RESET E ESTRUTURA BÁSICA
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Impede scroll na pagina principal */
  font-family: "Cinzel", serif;
  background-color: #000;
}

/* =========================================
   3. BACKGROUND ANIMADO
   ========================================= */
.bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Escurece a imagem */
  z-index: 1;
}

/* =========================================
   4. NAVBAR PREMIUM (DESKTOP PADRÃO)
   ========================================= */
nav.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px; /* Altura padrão PC */
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(238, 207, 161, 0.1);
  display: flex;
  align-items: center;
  padding: 0 40px;
}

/* LOGO */
.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #eecfa1;
  text-decoration: none;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(238, 207, 161, 0.5);
  z-index: 1001;
}

/* LINKS */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  font-family: "Lato", sans-serif;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1px;
  transition: color 0.3s;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: #eecfa1;
  text-shadow: 0 0 8px #eecfa1;
}

/* BOTÃO JUNTE-SE */
.nav-cta {
  background: transparent;
  border: 1px solid #eecfa1;
  color: #eecfa1;
  padding: 8px 25px;
  border-radius: 2px;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: #eecfa1;
  color: #000;
  box-shadow: 0 0 20px rgba(238, 207, 161, 0.4);
}

/* REGRAS ESPECÍFICAS PARA DESKTOP (> 768px) */
@media (min-width: 769px) {
  nav.navbar {
    justify-content: center;
  }
  .nav-logo {
    position: absolute;
    left: 40px;
  }
  .nav-cta {
    position: absolute;
    right: 40px;
  }
}

/* =========================================
   5. SEÇÕES DE PÁGINA (HOME, LORE, ETC)
   ========================================= */
.page-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 80px; /* Altura Navbar PC */
  padding-bottom: 80px; /* Altura Footer PC */
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  z-index: 10;
}

.active-section {
  opacity: 1;
  visibility: visible;
  z-index: 20;
}

.hidden-section {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  pointer-events: none;
}

/* CONTEÚDO DA HOME */
.content {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #eecfa1;
}

h1.main-title {
  font-size: 4.5rem;
  letter-spacing: 1rem;
  text-shadow: 0 0 30px rgba(238, 207, 161, 0.4);
  opacity: 0;
  animation: fadeIn 2s ease forwards;
}

p.subtitle {
  font-size: 1.1rem;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  border-top: 1px solid rgba(238, 207, 161, 0.5);
  padding-top: 20px;
  margin-top: 10px;
  opacity: 0;
  animation: fadeIn 2s ease forwards 1s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =========================================
   6. LORE (ESTILO PERGAMINHO DARK)
   ========================================= */
.lore-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 50px;
  background: rgba(8, 8, 8, 0.9);
  border: 1px solid rgba(238, 207, 161, 0.2);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.9);
  color: #ddd;
  font-family: "Lato", sans-serif;
  line-height: 1.8;
}

.lore-header {
  text-align: center;
  margin-bottom: 40px;
}
.lore-header h2 {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  color: #eecfa1;
}

.divider-gold {
  height: 2px;
  width: 100px;
  background: linear-gradient(90deg, transparent, #eecfa1, transparent);
  margin: 20px auto;
}

.lore-block {
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(238, 207, 161, 0.1);
  padding-bottom: 20px;
}

.lore-block h3 {
  font-family: "Cinzel", serif;
  color: #eecfa1;
  font-size: 1.6rem;
  margin-bottom: 15px;
}

.special-highlight {
  background: rgba(238, 207, 161, 0.05);
  padding: 30px;
  border: 1px solid rgba(238, 207, 161, 0.2);
  text-align: center;
  margin-top: 40px;
}

/* =========================================
   7. FOOTER (PADRÃO PC)
   ========================================= */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #050505;
  border-top: 1px solid #222;
  padding: 15px 0;
  z-index: 1000;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-link {
  font-family: "Lato", sans-serif;
  font-size: 0.75rem;
  color: #666;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}
.footer-link:hover {
  color: #eecfa1;
}
.separator {
  color: #333;
}

/* =========================================
   8. MODAL E COMPONENTES
   ========================================= */
.audio-btn {
  position: fixed;
  bottom: 70px;
  right: 30px;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid #eecfa1;
  color: #eecfa1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s;
}

/* Modal Newsletter */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #111;
  border: 1px solid #eecfa1;
  padding: 40px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.modal-title {
  font-family: "Cinzel", serif;
  color: #eecfa1;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.modal-desc {
  color: #888;
  font-family: "Lato", sans-serif;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mystic-input {
  width: 100%;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 10px;
  margin-bottom: 15px;
  font-family: "Lato", sans-serif;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #eecfa1;
  border: none;
  font-weight: bold;
  cursor: pointer;
  font-family: "Cinzel", serif;
}
.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}
.hidden {
  display: none;
}
.icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.form-message {
  margin-top: 10px;
  font-size: 0.8rem;
}
.form-message.success {
  color: #4caf50;
}
.form-message.error {
  color: #f44336;
}

/* =========================================
   9. MOBILE & HAMBURGER MENU (< 768px)
   [AQUI ESTÃO OS AJUSTES FINOS QUE VOCÊ PEDIU]
   ========================================= */
.hamburger {
  display: none; /* Escondido no PC */
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 2000;
}

.line {
  width: 30px;
  height: 3px;
  background-color: #eecfa1;
  transition: all 0.3s ease;
}

/* Animação Hamburger */
.hamburger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active .line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* --- REGRAS GERAIS MOBILE --- */
@media (max-width: 768px) {
  /* 1. NAVBAR MAIS FINA */
  nav.navbar {
    height: 60px; /* Reduzido de 80px */
    justify-content: space-between;
    padding: 0 20px;
    background: rgba(0, 0, 0, 0.95); /* Fundo mais sólido */
  }

  .nav-logo {
    position: static;
    font-size: 1.1rem; /* Logo menor */
  }

  .hamburger {
    display: flex; /* Mostra o ícone */
    transform: scale(0.8); /* Ícone um pouco menor */
  }

  /* 2. MENU GAVETA */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 75%;
    background: #080808;
    border-left: 1px solid #333;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1500;
  }

  .nav-links.nav-active {
    transform: translateX(0%);
  }

  /* Botão Juntar-se no Mobile */
  .nav-cta {
    position: static;
    width: 80%;
    text-align: center;
  }

  /* 3. CONTEÚDO E TÍTULOS */
  h1.main-title {
    font-size: 2.5rem;
  }

  .lore-container {
    padding: 20px;
    margin-top: 20px;
  }

  /* Ajuste de Espaçamento das Seções */
  .page-section {
    padding-top: 70px; /* Ajuste para navbar menor */
    padding-bottom: 50px; /* Ajuste para footer menor */
  }

  /* 4. FOOTER COMPACTO (LINHA ÚNICA) */
  footer {
    padding: 8px 0; /* Padding mínimo */
    background-color: #000;
    bottom: 0;
  }

  .footer-content {
    gap: 8px; /* Aproxima os itens */
    flex-wrap: nowrap; /* Tenta não quebrar linha */
    padding: 0 5px;
  }

  .footer-link {
    font-size: 0.6rem; /* Letra estilo bula (bem pequena e chique) */
    white-space: nowrap; /* Proíbe quebrar linha */
    letter-spacing: 0px;
  }

  .separator {
    font-size: 0.6rem;
  }
}

/* =========================================
   10. MAPA (LAYOUT BONITO)
   ========================================= */
.map-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.map-title {
  font-family: "Cinzel", serif;
  font-size: 3rem;
  color: #eecfa1;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(238, 207, 161, 0.5);
}

.map-image-wrapper {
  position: relative;
  width: 90%;
  max-width: 1000px;
  border: 4px solid #d4af37;
  border-radius: 10px;
  box-shadow:
    0 0 50px rgba(0, 0, 0, 0.8),
    0 0 20px rgba(212, 175, 55, 0.5);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.map-image-wrapper:hover {
  transform: scale(1.02);
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(212, 175, 55, 0.7);
}

#main-map-image {
  width: 100%;
  height: auto;
  display: block;
  content: url("../../assets/images/mapa.png");
}

.map-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.map-btn {
  background: linear-gradient(145deg, #222, #111);
  border: 2px solid #eecfa1;
  color: #eecfa1;
  padding: 15px 30px;
  font-family: "Cinzel", serif;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(238, 207, 161, 0.3);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.map-btn:hover {
  background: #eecfa1;
  color: #000;
  box-shadow: 0 0 20px rgba(238, 207, 161, 0.6);
  transform: translateY(-3px);
}

/* Responsividade Mapa */
@media (max-width: 768px) {
  .map-title {
    font-size: 2rem;
  }
  .map-image-wrapper {
    width: 95%;
    border-width: 3px;
  }
  .map-buttons {
    gap: 10px;
  }
  .map-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    flex: 1 1 40%;
  }
}
