/* CONTENT CONTAINERS */
.discovery-links {
  display: none;
  flex: 1;
}

.navbar-top-subscriber .discovery-links {
  margin-left: 1rem;
}

.discovery-links.visible {
  display: flex;
  flex: 1;
  gap: .5rem;
}

.discovery-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
  background: none;
  border: none;
  cursor: pointer;
}

.discovery-link:hover {
  background-color: #f4f4f5;
}

.discovery-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f4f4f5;
}

.discovery-link:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.nav-selling {
  padding: .5rem;
  width: 100%;
  border-top: 1px solid #e4e4e7;
}

.nav-selling-btn {
  display: flex;
  flex: 1;
  display: block;
  width: 100%;
}

.nav-root {
    font-family: 'Inter', sans-serif !important;
    font-style: normal;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5rem;

    a,
    button {
      font-family: 'Inter', sans-serif !important;
      text-decoration: none !important;
      color: #212832;
    }
  }

  .navbar {
    position: relative;
    width: calc(100% - 252px);
    left: 252px;
    /* Push navbar to the right */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--white, #fff);
    border-width: 0px 0px 1px 0px;
    border-style: solid;
    border-color: #e4e4e7;
    z-index: 1001;
  }

  .w-full {
    width: 100% !important;
    left: 0;
  }

  .navbar-top,
  .navbar-top-noauth {
    display: grid;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    background: var(--white, #fff);
    z-index: 1;

    /* first child justify-start */
    &>*:first-child {
        justify-content: flex-start;
    }

    /* last child justify-end */
    &>*:last-child {
      justify-content: flex-end;
    }
  }

  .navbar-top-capper {
    grid-template-columns: 1fr 1fr;

    /* second to last child is flex-start */
    &>*:nth-last-child(2) {
      justify-content: flex-start;
    }
  }

  .navbar-top-subscriber {
    display: flex;
  }

  .navbar-top-noauth {
    display: flex;
  }

  /* Used for the sub-menu that appears when clicking the account dropdown */
  .nav-submenu {
    display: none;
    width: 252px;
    padding: 0.25rem 0rem;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    right: 1.4375rem;
    top: 3.5rem;
    z-index: 1001;
    border-radius: 0.375rem;
    border: 1px solid #e4e4e7;
    background: white;
    box-shadow:
      0px 4px 6px -1px rgba(0, 0, 0, 0.1),
      0px 2px 4px -1px rgba(0, 0, 0, 0.06);
  }

  .nav-submenu.active {
    display: flex;
  }

  .topnav-submenu-toggle {
    justify-content: center;
    align-items: center;
    border-radius: 0.25rem;
    border-width: 0;
    background-color: transparent;
  }

  .topnav-submenu-toggle .chevron {
    transform: rotate(90deg);
  }

  .topnav-submenu-toggle.active .chevron {
    transform: rotate(-90deg);
  }

  .hamburger-icon {
    width: 30px !important;
    height: 30px !important;
    max-width: none;
  }

  /* CAPPER-ONLY SIDE NAV */
  .nav-side {
    position: fixed;
    /* Fixed positioning ensures the container stays in place when scrolling */
    display: flex;
    justify-content: flex-start;
    transition: left 0.3s ease-in-out;
    top: 0;
    left: 0;
    z-index: 1002;
  }

  .main-with-nav-side {
    margin-left: 252px;
    /* Push content to the right */
  }

  .nav-side-content {
    position: sticky;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--white, #fff);
    padding: 1.5rem 1rem;
    width: 252px;
    overflow: auto;
    border-width: 0px 1px 0px 0px;
    border-style: solid;
    border-color: #e4e4e7;

    .nav-link-primary {
      justify-content: flex-start;
    }
  }

  /* Push the last item to the bottom */
  .nav-side-content>*:last-child {
    margin-top: auto;
  }

  .nav-side-toggle,
  #nav-side-close {
    display: none;
  }

  .nav-side-submenu-toggle {
    justify-content: space-between !important;
    padding: 0.5rem 0rem 0.5rem 1rem !important;
  }

  .nav-side-submenu.hidden {
    display: none;
  }

  .nav-side-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-left: 32px;
    font-size: 14px;
  }

  .nav-side-submenu-toggle .chevron {
    transform: rotate(90deg);
    width: 20px;
    height: 20px;
  }

  .nav-side-submenu-toggle.active .chevron {
    transform: rotate(-90deg);
  }

  /* MAIN ICONS */
  .nav-side-logo,
  .top-navbar-logo {
    justify-content: center;
    align-items: center;

    img {
      width: 99.17px;
      height: 24px;
    }
  }

  .nav-side-logo {
    display: flex;
    padding: 0rem 1rem;
    margin-bottom: 1rem;
  }

  .top-navbar-logo {
    display: none;
  }

  .top-navbar-logo.show {
    display: inline;
  }

  .nav-profile-img {
    width: 32px;
    height: 32px;
    border-radius: var(--Border-Radius-rounded-sm, 1rem);
    filter: none !important;
  }

  /* BUTTONS, LINKS, AND MENU ITEMS */
  .topnav-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem;
    gap: 0.5rem;
    color: black;
    text-align: center;
    font-weight: 500;

    img {
      width: 20px;
      height: 20px;
      filter: brightness(0) saturate(100%) invert(0%) sepia(8%) saturate(34%) hue-rotate(261deg) brightness(100%) contrast(100%);
    }
  }

  .topnav-item:hover {
    color: var(--primary-primary-800, #33be48);
    border-radius: 0.5rem;

    img {
      filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(607%) hue-rotate(78deg) brightness(99%) contrast(82%);
    }
  }

  /* Used in the no-auth state */
  .nav-btn {
    display: inline-flex;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--Spacing-25, 0.625rem);
    color: white !important;
    border-radius: 0.375rem;
    background: #16a34a;
  }

  .nav-btn:hover,
  .nav-btn:active,
  .nav-btn:focus {
    color: #16a34a !important;
    background: none;
  }

  /* Used mainly in the auth state */
  .nav-link-primary {
    display: flex;
    padding: 0.5rem 1rem;
    justify-content: center;
    align-items: center;
    gap: var(--Spacing-2, 0.5rem);
    color: var(--font-color-base, #000);
    font-family: Inter, sans-serif;
    font-weight: 500;
    background: none;
    border: none;
    border-radius: 6.25rem;

    img {
      filter: brightness(0) saturate(100%) invert(0%) sepia(8%) saturate(34%) hue-rotate(261deg) brightness(100%) contrast(100%);
    }
  }

  .nav-menu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 400;

    img {
      width: 18px;
      height: 16px;
      filter: brightness(0) saturate(100%) invert(0%) sepia(93%) saturate(7445%) hue-rotate(216deg) brightness(80%) contrast(102%);
    }
  }

  .nav-link-primary:hover,
  .nav-menu-item:hover {
    color: var(--font-color-base, #000);
    text-decoration: none;
  }

  .nav-link-primary:hover {
    background: var(--backgrounds-bg-color-hover-token, rgba(73, 234, 137, 0.1));
  }

  .nav-link-primary:active,
  a.nav-link-primary:focus,
  .nav-menu-item:hover {
    background: none;
    color: var(--primary-primary-800, #33be48);

    img {
      filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(607%) hue-rotate(78deg) brightness(99%) contrast(82%);
    }
  }

  /* Used to highlight the tab in the capper side nav */
  .nav-link-primary.current {
    color: var(--primary-primary-800, #33be48);

    img {
      filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(607%) hue-rotate(78deg) brightness(99%) contrast(82%);
    }
  }

  .nav-menu-item:active,
  .nav-menu-item:focus {
    color: var(--primary-primary-800, #33be48);
    background: none;
  }

  /* EXTRAS */
  .hidden {
    display: none;
  }

  .desktop-only {
    display: flex;
  }

  .mobile-only {
    display: none;
  }

  .border-top {
    border-top: 1px solid #e4e4e7;
  }

  /* MOBILE BREAKPOINT */
  @media screen and (max-width: 1200px) {
    .main-with-nav-side {
      margin-left: 0;
      /* Push content back to full-screen */
    }

    .navbar {
      width: 100%;
      left: 0;
      padding: 0;
      gap: var(--Spacing-6, 1.5rem);
    }

    .navbar-top,
    .navbar-top-noauth {
      padding: 0.5rem 1rem;
      width: 100%;
      height: 62px;
    }

    .navbar-top-capper {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .navbar-top-subscriber {
        grid-template-columns: 1fr 1fr;
    }

    .navbar-top-noauth {
      grid-template-columns: 1fr 1fr;
    }

    .nav-submenu {
      position: fixed;
      top: -100%;
      left: 0;
      right: 0;
      width: 100%;
      border-right: none;
      border-left: none;
      border-top: 1px solid #e4e4e7;
      border-bottom: 1px solid #e4e4e7;
      border-radius: 0rem;
    }

    .nav-submenu.active {
      top: 62px;
    }

    .top-navbar-logo {
      display: flex;
      padding: 0.5rem;
    }

    .nav-link-primary:hover,
    .nav-link-primary:active,
    .nav-link-primary:focus {
      color: var(--primary-primary-800, #33be48);
      background: none;

      img {
        filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(607%) hue-rotate(78deg) brightness(99%) contrast(82%);
      }
    }

    .nav-menu-item {
      padding: 0.5rem 1.5rem;
    }

    .nav-menu-item:hover,
    .nav-menu-item:active,
    .nav-menu-item:focus {
      color: var(--primary-primary-800, #33be48);
      background: none;

      img {
        filter: brightness(0) saturate(100%) invert(55%) sepia(60%) saturate(607%) hue-rotate(78deg) brightness(99%) contrast(82%);
      }
    }

    /* Side nav toggle only relevant in mobile */
    .nav-side {
      left: -320px;
      /* Hide the side nav by default */
      overflow: auto;
      position: absolute;
    }

    .nav-side-content {
      width: 320px;
      height: 0;
      transition: height;
      transition-delay: 1s;
      padding-bottom: 88px;
    }

    .nav-side.open {
      left: 0;
      /* Show the nav */

      .nav-side-content {
        height: calc(100vh);
        transition-delay: 0s;
      }
    }

    .nav-side-toggle,
    #nav-side-close {
      display: flex;
      justify-content: center;
      align-items: center;
      border: none;
      background: none;
      padding: 0;
    }

    .nav-side-toggle {
      width: 40px;
      height: 40px;
    }

    #nav-side-close img {
      width: 24px;
      height: 24px;
      opacity: 0.4;
    }

    .nav-side-submenu {
      gap: 0.25rem;
    }

    /* EXTRAS */
    .desktop-only {
      display: none !important;
    }

    .mobile-only {
      display: flex;
    }
  }
