/* Header styles inspired by Mestres Místicos */
header {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--accent-gold);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 🔹 logo + nav ficam alinhados à esquerda */
  height: 70px;
}

/* === LOGO (SVG inline ou texto estilizado) === */
.logo {
  display: flex;
  align-items: center;
  height: 60px; /* garante que o svg nunca passe do header */
  cursor: pointer;
  text-decoration: none;
  margin-right: 50px; /* 🔹 espaço entre logo e menu */
  white-space: nowrap;
}

.logo svg {
  height: 100%;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.logo:hover svg {
  transform: scale(1.05);
}

/* === Navegação === */
nav {
  display: flex;
  align-items: center;
  flex-grow: 1; /* 🔹 ocupa o espaço restante */
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px; /* 🔹 diminui o espaço entre links */
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap; /* 🔹 impede quebra de linha */
}

nav ul li {
  position: relative;
  display: flex;
  align-items: center;
}

nav ul li a {
  display: inline-block;
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  white-space: nowrap; /* 🔹 garante que cada link fique numa linha só */
}

nav ul li a:hover {
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.1);
  transform: translateY(-2px);
}

nav ul li a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
  transition: left 0.5s;
  z-index: -1;
}

nav ul li a:hover::before {
  left: 100%;
}

/* === Botão menu mobile === */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Body padding to account for fixed header */
body {
  padding-top: 70px;
}

/* === Responsivo === */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-top: 1px solid var(--accent-gold);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    padding: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
}


