/* ===========================
   NAVBAR
   =========================== */

.navbar {
  position: absolute;
  top: var(--announcement-height, 0px);
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled,
.navbar.is-sticky {
  background: rgba(35, 15, 65, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.is-sticky {
  position: fixed;
  top: 0;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10;
}

.navbar__logo img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-round);
  object-fit: cover;
}

.navbar__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: -0.01em;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-xl);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-violet), var(--color-gold));
  border-radius: 1px;
}

/* Mobile Toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(35, 15, 65, 0.98);
    backdrop-filter: blur(30px);
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .navbar__links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.3rem;
    padding: 1rem 2rem;
  }

  .navbar__brand {
    font-size: 0.95rem;
  }
}
