@charset "UTF-8";

/* Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {

	flex-wrap: wrap;
	flex: 1 1 100vw;
  background-color: #0a0a23;
	margin: 3px;
}

a {
	text-decoration: none;
	color: inherit;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 80px;
}

.header-left #logo {
  height: 75px;
}

#openMenu, #closeMenu {
  font-size: 30px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none; /* só aparece no mobile */
}

nav#menu {
  display: flex;
  align-items: center;
  gap: 20px;
}

nav#menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  user-select: none;
}

.dropdown {
  position: relative;
}

.dropbtn {
  cursor: pointer;
  color: white;
  text-decoration: none;
  user-select: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: #1E1E2B;
  border-radius: 4px;
  min-width: 100px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex-direction: column;
  z-index: 1000;
}

.dropdown-content a {
  padding: 10px 15px;
  color: #000;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background: #2B2B3C;
}

.dropdown:hover .dropdown-content {
  display: flex;
}

/* MOBILE */
@media (max-width: 717px) {
  #openMenu {
    display: block;
  }

  nav#menu {
    position: fixed;
    top: 0;
    left: 0;
    background: #2B2B3C;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin: 0;
    display: none; /* começa escondido */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
  }

  nav#menu.open {
    display: flex;
    opacity: 1;
  }

  #closeMenu {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 28px;
    color: black;
  }

  nav#menu a, .dropbtn {
    color: black;
    font-size: 20px;
  }

  .dropdown-content {
    position: static;
    background: transparent;
    box-shadow: none;
    min-width: auto;
    flex-direction: column;
  }

  .dropdown:hover .dropdown-content {
    display: none; /* sem hover no mobile */
  }

  .dropdown-content a:hover {
    background: #1a191a;
  }

  .dropdown.open .dropdown-content {
    display: flex;
  }
}
