/* NAV BAR CSS */

.user-dropdown-toggle::after {
  display: none !important;
}

.nav-search-wrapper {
  margin-left: auto;
}

.navbar-logo {
  max-width: 45px;
  max-height: 45px;
  filter: drop-shadow(0 3px 7px rgba(255, 223, 0, 0.25));
}

.bg-body-tertiary {
  border-radius: 12px;
  border-top: none !important;
}

.dm-badge {
  position: absolute;
  bottom: 0;
  left: 100%;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.70rem;
  line-height: 1;
  transform: translate(-70%, 5%);
  font-weight: 700;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active {
  background-color: rgba(255, 223, 0, 0.15);
  color: #ffdf00;
}

#nav-search-input:focus,
#nav-search-input-mobile:focus {
  border-color: rgba(255, 223, 0, 0.35);
  box-shadow: 0 0 0 0.2rem rgba(255, 223, 0, 0.15);
  outline: none;
}

/* Desktop navbar */
@media (min-width: 768px) {
  nav.navbar {
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    position: sticky;
    top: 0;
    z-index: 1060;
  }

  .navbar,
  .navbar .container-fluid,
  .gh-navbar-desktop,
  .gh-desktop-actions {
    overflow: visible !important;
  }

  .gh-navbar-desktop {
    display: flex !important;
    align-items: center;
    gap: 0.9rem;
    justify-content: space-between;
  }

  .gh-desktop-nav,
  .gh-desktop-actions {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    background: rgba(15, 15, 18, 0.55);
    border: 1px solid rgba(255, 223, 0, 0.12);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
  }

  .gh-desktop-actions {
    background: rgba(15, 15, 18, 0.45);
    border-color: rgba(255, 223, 0, 0.10);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.40);
  }

  .gh-desktop-nav-link,
  .gh-action-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #c9c9c9;
    transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
  }

  .gh-desktop-nav-link i,
  .gh-action-icon i {
    font-size: 1.15rem;
    line-height: 1;
  }

  .gh-desktop-nav-link:hover,
  .gh-action-icon:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  }

  .gh-desktop-nav-link.active,
  .gh-action-icon.active {
    background: rgba(255, 223, 0, 0.14);
    color: #ffdf00;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.45);
  }

  .gh-desktop-search {
    flex: 1 1 auto;
    justify-content: center;
    margin: 0;
  }

  .gh-desktop-search .nav-search-wrapper {
    margin-left: 0;
    width: min(520px, 100%);
  }

  .gh-user-pill {
    padding: 0.25rem 0.55rem;
    border-radius: 14px;
    transition: background-color 120ms ease, box-shadow 120ms ease;
  }

  .gh-user-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.30);
  }

  .notif-dropdown-menu,
  .profile-dropdown-menu {
    min-width: 280px;
    background: rgba(11, 11, 12, 0.96);
    border: 1px solid rgba(255, 223, 0, 0.14);
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(10px);
    overflow: hidden;
    padding: 0;
  }

  .notif-dropdown-menu {
    z-index: 2000 !important;
    position: absolute;
  }

  .gh-desktop-actions .dropdown {
    position: relative;
    z-index: 2001;
  }

  .profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.70rem 0.85rem;
    color: #e6e6e6;
    font-weight: 600;
  }

  .profile-dropdown-menu .dropdown-item i {
    font-size: 1.05rem;
    line-height: 1;
    opacity: 0.95;
  }

  .profile-dropdown-menu .dropdown-item:hover {
    background-color: transparent !important;
    color: #ffdf00;
  }

  .profile-dropdown-menu .dropdown-divider {
    margin: 0;
    border-top: 1px solid rgba(255, 223, 0, 0.10);
  }

  .gh-has-tip {
    position: relative;
  }

  .gh-has-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    top: calc(100% + 10px);
    transform: translateX(-50%) translateY(-4px);
    white-space: nowrap;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255, 223, 0, 0.22);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
    color: #ffdf00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    opacity: 0;
    pointer-events: none;
    z-index: 2100;
    transition: opacity 120ms ease, transform 120ms ease;
  }

  .gh-has-tip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: calc(100% + 4px);
    width: 8px;
    height: 8px;
    background: rgba(15, 15, 18, 0.95);
    border-left: 1px solid rgba(255, 223, 0, 0.22);
    border-top: 1px solid rgba(255, 223, 0, 0.22);
    transform: translateX(-50%) rotate(45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 2100;
    transition: opacity 120ms ease;
  }

  .gh-has-tip:hover::after,
  .gh-has-tip:focus-visible::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .gh-has-tip:hover::before,
  .gh-has-tip:focus-visible::before {
    opacity: 1;
  }

  .dropdown.show > .gh-has-tip::after,
  .dropdown.show > .gh-has-tip::before {
    opacity: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container {
    max-width: 92%;
  }
}

/* Mobile top navbar */
@media (max-width: 767.98px) {
  nav.navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }

  nav.navbar .container-fluid {
    flex-wrap: nowrap !important;
    align-items: center;
  }

  .navbar-logo {
    width: 30px !important;
    height: 30px !important;
    max-width: none !important;
    max-height: none !important;
  }

  .navbar-brand {
    flex: 0 0 auto;
    margin-right: 0.4rem;
    padding: 0;
    display: flex;
    align-items: center;
  }

  .gh-mobile-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
  }

  .gh-mobile-search-wrap form,
  .gh-mobile-search-wrap .nav-search-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  #nav-search-input-mobile {
    width: 100%;
    min-width: 0;
    height: 34px;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
  }

  .gh-mobile-pm,
  .gh-mobile-profile {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 0 !important;
    color: #c9c9c9;
  }

  .gh-mobile-pm:active,
  .gh-mobile-profile:active {
    transform: translateY(1px);
  }

  .gh-mobile-pm .dm-badge,
  #notifBellMobile .notif-badge {
    font-size: 0.70rem;
    line-height: 1;
  }

  .dm-badge,
  .notif-badge,
  #dmBadgeMobile,
  #notifBadgeMobile {
    border: 1px dashed #2a2b31 !important;
    color: #b89c01 !important;
    box-shadow: none !important;
  }

  .gh-mobile-top-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 223, 0, 0.18);
  }

  html,
  body {
    height: auto;
    overflow-y: auto;
  }
}

/* Mobile bottom nav */
.gh-mobile-bottom-shell {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1030;
  display: none;
  justify-content: center;
  align-items: flex-end;
  padding: 0 8px 0.75rem;
  pointer-events: none;
}

.gh-mobile-bottom-shell > * {
  pointer-events: auto;
}

.gh-mobile-bottom-nav {
  width: 100%;
  max-width: 560px;
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 62px repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0;
  padding: 0.38rem 0.55rem;
  border-radius: 999px;
  background: #111;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.gh-mobile-nav-item {
  min-width: 0;
  height: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.03rem;
  color: #b8b8b8;
  text-align: center;
  text-decoration: none;
  font-size: 0.58rem;
  line-height: 1.05;
}

.gh-mobile-nav-item:nth-child(4) {
  grid-column: 5;
}

.gh-mobile-nav-item:nth-child(5) {
  grid-column: 6;
}

.gh-mobile-nav-item:nth-child(6) {
  grid-column: 7;
}

.gh-mobile-nav-item i {
  font-size: 1.02rem;
  line-height: 1;
}

.gh-mobile-nav-item span {
  max-width: 46px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gh-mobile-nav-item.active,
.gh-mobile-nav-item.active i {
  color: #ffdf00;
}

.gh-mobile-center-fab {
  position: absolute;
  bottom: 1.72rem;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffdf00;
  color: #000;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.9);
}

.gh-mobile-center-fab i {
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 767.98px) {
  .gh-mobile-bottom-shell {
    display: flex;
  }
}

@media (max-width: 390px) {
  .gh-mobile-bottom-shell {
    padding-inline: 5px;
  }

  .gh-mobile-bottom-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 58px repeat(3, minmax(0, 1fr));
    min-height: 56px;
    padding-inline: 0.45rem;
  }

  .gh-mobile-nav-item {
    font-size: 0.52rem;
  }

  .gh-mobile-nav-item i {
    font-size: 0.94rem;
  }

  .gh-mobile-nav-item span {
    max-width: 40px;
  }

  .gh-mobile-center-fab {
    width: 51px;
    height: 51px;
    bottom: 1.72rem;
  }
}

.gh-mobile-avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.4);
}