/* ===== SITEWIDE MERCH-STYLE VERTICAL NAVIGATION START ===== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sidebar-layout .menu-button {
  display: none !important;
}

.merch-hover-nav {
  position: fixed !important;
  top: 15vh !important;
  left: 0 !important;
  right: auto !important;
  z-index: 2000 !important;
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: min(315px, calc(100vw - 16px)) !important;
  max-height: calc(85vh - 18px);
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: translateX(calc(-100% + 54px)) !important;
  transition: transform 230ms ease !important;
}

.merch-hover-nav:hover,
.merch-hover-nav:focus-within,
.merch-hover-nav.open {
  transform: translateX(0) !important;
}

.merch-nav-tab {
  order: 2;
  width: 54px;
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(221, 91, 255, 0.48);
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background:
    radial-gradient(circle at 45% 20%, rgba(242, 55, 212, 0.32), transparent 48%),
    linear-gradient(180deg, rgba(107, 26, 171, 0.96), rgba(32, 7, 52, 0.98));
  box-shadow: 12px 0 31px rgba(83, 12, 122, 0.28);
  flex-shrink: 0;
}

.merch-nav-tab span {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.merch-nav-panel {
  order: 1;
  width: calc(100% - 54px);
  max-height: calc(85vh - 18px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  padding: 0.8rem;
  border: 1px solid rgba(212, 83, 255, 0.38);
  border-left: 0;
  border-radius: 0 0 22px 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(235, 54, 210, 0.18), transparent 38%),
    rgba(13, 3, 24, 0.96);
  box-shadow: 20px 24px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(15px);
}

.merch-hover-nav .merch-nav-panel > a,
.merch-hover-nav .member-nav-actions .member-link,
.merch-hover-nav .member-nav-actions button.member-link {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 2.7rem;
  width: 100%;
  padding: 0.67rem 0.82rem !important;
  border: 1px solid rgba(191, 75, 249, 0.16) !important;
  border-radius: 12px !important;
  color: #e7d8f5 !important;
  font: inherit;
  font-size: 0.94rem !important;
  font-weight: 700 !important;
  text-align: left;
  text-decoration: none !important;
  background: rgba(83, 21, 130, 0.12) !important;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 100ms ease;
}

.merch-hover-nav .merch-nav-panel > a:hover,
.merch-hover-nav .member-nav-actions .member-link:hover,
.merch-hover-nav .member-nav-actions button.member-link:hover {
  color: #fff !important;
  border-color: rgba(226, 95, 255, 0.5) !important;
  background: rgba(153, 39, 226, 0.23) !important;
  box-shadow: 0 0 23px rgba(170, 42, 240, 0.17);
}

.merch-hover-nav .merch-nav-panel > a:active,
.merch-hover-nav .member-nav-actions .member-link:active {
  transform: translateY(1px) scale(0.98);
}

.merch-hover-nav .merch-nav-panel > a.active,
.merch-hover-nav .merch-nav-panel > a[aria-current="page"],
.merch-hover-nav .member-nav-actions .member-link.register,
.merch-hover-nav .member-nav-actions .member-link.profile {
  color: #fff !important;
  border-color: rgba(245, 128, 255, 0.52) !important;
  background: linear-gradient(110deg, #7525df, #bd38fa 56%, #e53ccc) !important;
  box-shadow: 0 8px 22px rgba(171, 41, 245, 0.32);
}

.merch-hover-nav .member-nav-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0.42rem 0 0.18rem;
  background: rgba(205, 79, 255, 0.25);
}

.merch-hover-nav .member-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.merch-hover-nav .member-nav-actions .member-link.admin {
  color: #d9ffcc !important;
  border-color: rgba(83, 252, 24, 0.3) !important;
  background: rgba(83, 252, 24, 0.08) !important;
}

.sitewide-mobile-menu {
  display: none;
}

.sidebar-layout .forum-header {
  justify-content: flex-start;
}

.sidebar-layout .events-watch-button,
.sidebar-layout .nb-header-button {
  margin-left: auto;
}

@media (max-width: 760px) {
  .sitewide-mobile-menu {
    position: fixed;
    top: 1.2rem;
    right: 1rem;
    z-index: 2001;
    width: 47px;
    height: 45px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(219, 92, 255, 0.4);
    border-radius: 12px;
    background: rgba(17, 4, 29, 0.88);
    cursor: pointer;
  }

  .sitewide-mobile-menu span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    background: #f8eaff;
  }

  .merch-hover-nav {
    top: 5.1rem !important;
    left: 1rem !important;
    width: calc(100vw - 2rem) !important;
    max-height: calc(100vh - 6.2rem);
    display: none !important;
    transform: none !important;
  }

  .merch-hover-nav.open {
    display: flex !important;
  }

  .merch-nav-tab {
    display: none;
  }

  .merch-nav-panel {
    width: 100%;
    max-height: calc(100vh - 6.2rem);
    border-left: 1px solid rgba(212, 83, 255, 0.38);
    border-radius: 20px;
  }
}

/* ===== SITEWIDE MERCH-STYLE VERTICAL NAVIGATION END ===== */
