/* -------------------------------
   NAVBAR.CSS - Avalon Creators
-------------------------------- */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}

/* NAVBAR CONTAINER */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background-color: #ffffff;
  color: #222222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1000;
}

/* LOGO BUTTON */
.logo {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  color: #FF0033;
  text-transform: uppercase;
  transition: color 0.3s;
}

.logo:hover {
  color: #cc0029;
}

/* ❌ Remove mobile tap highlight globally */
a, button {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent; /* estándar, por si acaso */
}

/* MENU LIST */
.navbar-right .nav-menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-item a {
  text-decoration: none;
  color: #222222;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  height: 2px;
  width: 0;
  background-color: #FF0033;
  transition: width 0.3s;
}

.nav-item a:hover {
  color: #FF0033;
}

.nav-item a:hover::after {
  width: 100%;
}

/* DARK MODE STYLES */
body.dark-mode {
  background-color: #121212;
  color: #f1f1f1;
}

body.dark-mode .navbar {
  background-color: #121212;
  color: #f1f1f1;
  box-shadow: 0 2px 8px rgba(255, 0, 51, 0.2);
}

body.dark-mode .logo {
  color: #FF0033;
}

body.dark-mode .nav-item a {
  color: #f1f1f1;
}

body.dark-mode .nav-item a::after {
  background-color: #FF0033;
}

/* HAMBURGER BUTTON */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  padding: 0.25rem;
  color: #FF0033;
  transition: color 0.3s;
}

.hamburger svg {
  width: 28px;
  height: 28px;
}

.hamburger:hover {
  color: #cc0029;
}

/* MOBILE MENU */
@media (max-width: 768px) {
  .hamburger {
    display: block !important;
  }

  .nav-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    left: auto !important;
    width: 180px !important;
    background-color: #ffffff !important;
    flex-direction: column !important;
    gap: 0.1rem !important;
    padding: 0.4rem !important;
    border-radius: 0 !important;
    border: 2px solid #FF0033 !important;
    box-shadow: 0 0 8px #FF0033 !important;
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
  }

  .nav-menu.show {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
  }

  .nav-menu .nav-item {
    width: 100% !important;
  }

  .nav-menu .nav-item a {
    display: block !important;
    width: 100% !important;
    padding: 0.4rem 0.5rem !important;
    text-align: left !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #222222 !important;
    text-decoration: none !important;
    border-radius: 2px !important;
    background-color: transparent !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
  }

  .nav-menu .nav-item a:hover {
    background-color: #f1f1f1 !important;
    color: #FF0033 !important;
  }

  body.dark-mode .nav-menu {
    background-color: #1A1A1A !important;
    border-color: #FF0033 !important;
    box-shadow: 0 0 8px #FF0033 !important;
  }

  body.dark-mode .nav-menu .nav-item a {
    color: #f1f1f1 !important;
  }

  body.dark-mode .nav-menu .nav-item a:hover {
    background-color: #2a2a2a !important;
    color: #FF0033 !important;
  }

  body.dark-mode .hamburger {
    color: #FF0033 !important;
  }
}
