/* === Navbar Styles === */
.navbar {
  background: #1a1a1a;
  border-bottom: 2px solid #222;
  position: relative;
  z-index: 10;
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1rem;
  padding: 0.75rem 1rem;
  transition: max-height 0.3s ease;
}

.nav-links a {
  color: #f4f4f4;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s, color 0.3s;
  text-decoration: none;
}

.nav-links a:hover {
  background: #ff3ec9;
  color: #111;
}

/* Disabled links */
.nav-links .disabled > a,
.nav-links .disabled a {
  color: #888 !important;
  pointer-events: none;
  cursor: not-allowed;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 0.5rem;
  flex-direction: column;
  z-index: 10;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #f4f4f4;
  padding: 0.5rem 1rem;
  user-select: none;
}

/* Mobile Styles */
@media (max-width: 700px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    background: #1a1a1a;
    position: absolute;
    top: 100%;
    left: 0;
    border-top: 2px solid #222;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    max-height: 500px; /* arbitrary large value for smooth animation */
  }

  .dropdown-content {
    position: static;
    border: none;
    background: #222;
    opacity: 1;
    transform: translateY(0);
    transition: none;
  }
}
