/* =====================================================
   RXPASSION.ID
   NAVIGATION
===================================================== */

/* ---------- DESKTOP NAVIGATION ---------- */

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  flex: 0 0 auto;
  color: #f8fafc;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.navbar-brand span {
  color: #67e8f9;
}

.desktop-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.desktop-navigation button {
  appearance: none;
  padding: 9px 13px;

  border: 1px solid transparent;
  border-radius: 10px;

  color: #94a3b8;
  background: transparent;

  font: inherit;
  font-size: 13px;
  font-weight: 600;

  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.desktop-navigation button:hover,
.desktop-navigation button.active {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.12);
  background: rgba(34, 211, 238, 0.08);
}

/* ---------- MOBILE MENU BUTTON ---------- */

.mobile-menu-button {
  display: none;
  position: relative;
  z-index: 1201;

  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 12px;

  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.mobile-menu-button span {
  position: absolute;
  left: 11px;

  width: 18px;
  height: 2px;

  border-radius: 999px;
  background: #e2e8f0;

  transition:
    top 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.mobile-menu-button span:nth-child(1) {
  top: 13px;
}

.mobile-menu-button span:nth-child(2) {
  top: 19px;
}

.mobile-menu-button span:nth-child(3) {
  top: 25px;
}

.mobile-menu-button.open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}

/* ---------- MOBILE OVERLAY ---------- */

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1090;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  background: rgba(2, 6, 23, 0.64);
  backdrop-filter: blur(4px);

  transition:
    opacity 0.22s ease,
    visibility 0.22s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ---------- MOBILE SIDE MENU ---------- */

.mobile-navigation {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;

  width: min(300px, 84vw);
  padding: 22px;

  overflow-y: auto;

  border-left: 1px solid rgba(34, 211, 238, 0.16);
  background: rgba(4, 10, 27, 0.98);
  box-shadow: -20px 0 60px rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(18px);

  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;

  transition:
    transform 0.25s ease,
    visibility 0.25s ease;
}

.mobile-navigation.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.mobile-navigation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding-bottom: 18px;
  margin-bottom: 18px;

  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.mobile-menu-close {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  padding: 0;

  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;

  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);

  font-size: 22px;
  cursor: pointer;
}

.mobile-navigation-links {
  display: grid;
  gap: 8px;
}

.mobile-navigation-links button {
  appearance: none;
  width: 100%;
  padding: 13px 14px;

  border: 1px solid transparent;
  border-radius: 11px;

  color: #cbd5e1;
  background: transparent;

  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;

  cursor: pointer;
}

.mobile-navigation-links button:hover,
.mobile-navigation-links button.active {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.16);
  background: rgba(34, 211, 238, 0.08);
}

/* ---------- MOBILE BREAKPOINT ---------- */

@media (max-width: 700px) {
  .navbar {
    gap: 12px;
  }

  .navbar-brand {
    font-size: 17px;
  }

  .desktop-navigation {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }
}

/* ---------- DESKTOP SAFETY ---------- */

@media (min-width: 701px) {
  .mobile-navigation,
  .mobile-menu-overlay {
    display: none;
  }
}