/* ===== NAVEGAÇÃO ===== */
nav.menu {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background-color: rgba(26, 26, 26, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.menu:hover {
  background-color: rgba(26, 26, 26, 1);
}

.logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.logo img {
  max-width: 50%;
  margin: 3px;
  animation: fade-down 1s ease;
}

.navegacao {
  flex: 2;
  display: flex;
  justify-content: center;
  gap: 25px;
  animation: fade-down 0.4s ease;
}

.navegacao a {
  text-decoration: none;
  color: white;
  font-size: 1.2em;
  margin: 0 5px;
  transition: text-decoration 0.2s ease;
}

.navegacao a:hover {
  text-decoration: underline;
}

.navegacao a:focus {
  outline: 2px solid purple;
  outline-offset: 2px;
  border-radius: 4px;
}

.botoes {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  animation: fade-down 0.5s ease;
}

/* ===== MENU HAMBÚRGUER ===== */
.menu-hamburguer {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 1000;
}

.menu-hamburguer span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.menu-hamburguer.active span:nth-child(1) {
  transform: rotate(-40deg) translate(-7px, 6px);
}

.menu-hamburguer.active span:nth-child(2) {
  opacity: 0;
}

.menu-hamburguer.active span:nth-child(3) {
  transform: rotate(40deg) translate(-7px, -6px);
}

/* ===== BOTÕES ===== */
.login,
.register {
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.login {
  background: orange;
  color: white;
}

.register {
  background: purple;
  color: white;
}

.login:hover {
  background: rgb(26, 26, 26);
  color: orange;
  border: 1px solid orange;
}

.register:hover {
  background: rgb(26, 26, 26);
  color: purple;
  border: 1px solid purple;
}

.login:focus,
.register:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* ===== BOTÕES MOBILE ===== */
.botoes-mobile {
  display: none;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
  width: 100%;
}

.botoes-mobile .login,
.botoes-mobile .register {
  width: 100%;
  padding: 15px 20px;
  font-size: 1.1em;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  nav.menu {
    padding: 0 20px;
    background-color: rgba(26, 26, 26, 1);
  }

  .navegacao {
    gap: 15px;
  }

  .navegacao a {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  nav.menu {
    background-color: rgba(26, 26, 26, 1);
    padding: 0 15px;
  }

  .logo img {
    max-width: 40%;
  }

  .navegacao {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: left 0.3s ease;
    z-index: 999;
  }

  .navegacao.active {
    left: 0;
  }

  .navegacao a {
    font-size: 1.5em;
    padding: 15px 0;
  }

  .botoes {
    display: none;
  }

  .botoes-mobile {
    display: flex;
  }

  .menu-hamburguer {
    display: flex;
  }
}

@media (max-width: 480px) {
  nav.menu {
    background-color: rgba(26, 26, 26, 1);
    padding: 0 10px;
  }

  .logo img {
    max-width: 35%;
  }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fade-down {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
