/* Nexar Header Styles - Scoped to prevent conflicts with game styles */

/* CSS Variables for Nexar Header */
.nexar-header-wrapper {
  --bright: #23e7d8;
  --base-color-brand--white: #fff;
  --base-color-brand--black: #000;
  --base-color-brand--background-blue: #0d1831;
  --base-color-neutral--black: #000;
  --base-color-neutral--white: #fff;
  --link-color--link-primary: #7a4dff;
  --link-color--link-alternate: #fff;
  --background-color--background-primary: #1a1a2e;
  --border-color--border-primary: rgba(255, 255, 255, 0.1);
  --untitled-ui--white: #fff;

  /* Header positioning */
  position: relative;
  z-index: 1000;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Webflow Base Nav Styles */
.nexar-header-wrapper .w-nav {
  position: relative;
  background: transparent;
  z-index: 1000;
  margin: 0;
}

.nexar-header-wrapper .w-nav:before,
.nexar-header-wrapper .w-nav:after {
  content: " ";
  display: table;
  grid-column-start: 1;
  grid-row-start: 1;
  grid-column-end: 2;
  grid-row-end: 2;
}

.nexar-header-wrapper .w-nav:after {
  clear: both;
}

.nexar-header-wrapper .w-nav-brand {
  position: relative;
  float: left;
  text-decoration: none;
  color: #333333;
}

.nexar-header-wrapper .w-nav-link {
  position: relative;
  display: inline-block;
  vertical-align: top;
  text-decoration: none;
  color: #222222;
  padding: 20px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
}

.nexar-header-wrapper .w-nav-link.w--current {
  color: #0082f3;
}

.nexar-header-wrapper .w-nav-menu {
  position: relative;
  float: right;
}

.nexar-header-wrapper [data-nav-menu-open] {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #C8C8C8;
  text-align: center;
  overflow: visible;
  min-width: 200px;
}

.nexar-header-wrapper .w--nav-link-open {
  display: block;
  position: relative;
}

.nexar-header-wrapper .w-nav-overlay {
  position: absolute;
  overflow: hidden;
  display: none;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
}

.nexar-header-wrapper .w-nav-overlay [data-nav-menu-open] {
  top: 0;
}

.nexar-header-wrapper .w-nav[data-animation='over-left'] .w-nav-overlay {
  width: auto;
}

.nexar-header-wrapper .w-nav[data-animation='over-left'] .w-nav-overlay,
.nexar-header-wrapper .w-nav[data-animation='over-left'] [data-nav-menu-open] {
  right: auto;
  z-index: 1;
  top: 0;
}

.nexar-header-wrapper .w-nav[data-animation='over-right'] .w-nav-overlay {
  width: auto;
}

.nexar-header-wrapper .w-nav[data-animation='over-right'] .w-nav-overlay,
.nexar-header-wrapper .w-nav[data-animation='over-right'] [data-nav-menu-open] {
  left: auto;
  z-index: 1;
  top: 0;
}

.nexar-header-wrapper .w-nav-button {
  position: relative;
  float: right;
  padding: 18px;
  font-size: 24px;
  display: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  tap-highlight-color: rgba(0, 0, 0, 0);
  user-select: none;
}

.nexar-header-wrapper .w-nav-button:focus {
  outline: 0;
}

.nexar-header-wrapper .w-nav-button.w--open {
  background-color: transparent;
  color: white;
}

.nexar-header-wrapper .w-nav[data-collapse='all'] .w-nav-menu {
  display: none;
}

.nexar-header-wrapper .w-nav[data-collapse='all'] .w-nav-button {
  display: block;
}

.nexar-header-wrapper .w--nav-dropdown-open {
  display: block;
}

.nexar-header-wrapper .w--nav-dropdown-toggle-open {
  display: block;
}

.nexar-header-wrapper .w--nav-dropdown-list-open {
  position: static;
}

/* Webflow Dropdown Base Styles */
.nexar-header-wrapper .w-dropdown {
  display: inline-block;
  position: relative;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  z-index: 900;
}

.nexar-header-wrapper .w-dropdown-btn,
.nexar-header-wrapper .w-dropdown-toggle,
.nexar-header-wrapper .w-dropdown-link {
  position: relative;
  vertical-align: top;
  text-decoration: none;
  color: #222222;
  padding: 20px;
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
}

.nexar-header-wrapper .w-dropdown-toggle {
  user-select: none;
  display: inline-block;
  cursor: pointer;
  padding-right: 40px;
}

.nexar-header-wrapper .w-dropdown-toggle:focus {
  outline: 0;
}

.nexar-header-wrapper .w-icon-dropdown-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  margin-right: 20px;
  width: 1em;
  height: 1em;
}

.nexar-header-wrapper .w-dropdown-list {
  position: absolute;
  background: var(--background-color--background-primary);
  display: none;
  min-width: 100%;
}

.nexar-header-wrapper .w-dropdown-list.w--open {
  display: block;
}

.nexar-header-wrapper .w-dropdown-link {
  padding: 10px 20px;
  display: block;
  color: #222222;
}

.nexar-header-wrapper .w-dropdown-link.w--current {
  color: #0082f3;
}

.nexar-header-wrapper .w-dropdown-link:focus {
  outline: 0;
}

/* Dropdown Chevron */
.nexar-header-wrapper .dropdown-chevron {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 1rem;
  height: 1rem;
  display: flex;
}

.nexar-header-wrapper .dropdown-chevron.color-is-bright {
  color: var(--bright);
}

/* AI Navbar Component */
.nexar-header-wrapper .ai-navbar-component {
  background-color: var(--base-color-brand--background-blue);
  align-items: center;
  width: 100%;
  padding: 1rem 5%;
  margin: 0;
  display: flex;
  position: relative;
}

.nexar-header-wrapper .navbar11_container {
  color: var(--link-color--link-alternate);
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.nexar-header-wrapper .navbar11_logo-link {
  padding-left: 0;
}

.nexar-header-wrapper .navbar11_menu {
  align-items: center;
  display: flex;
  position: static;
}

.nexar-header-wrapper .navbar11_menu-links {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nexar-header-wrapper .navbar11_link {
  padding: .5rem 1rem;
  color: var(--link-color--link-alternate);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nexar-header-wrapper .navbar11_link:hover {
  color: var(--link-color--link-primary);
}

.nexar-header-wrapper .navbar11_link.w--current {
  color: var(--base-color-neutral--black);
}

.nexar-header-wrapper .navbar11_link.link-white {
  color: var(--base-color-brand--white);
}

.nexar-header-wrapper .navbar11_link.link-color {
  color: var(--link-color--link-alternate);
}

.nexar-header-wrapper .navbar11_menu-dropdown {
  position: relative;
}

.nexar-header-wrapper .navbar11_menu-dropdown:hover {
  color: var(--bright);
}

.nexar-header-wrapper .navbar11_dropdown-toggle {
  grid-column-gap: .5rem;
  color: var(--link-color--link-alternate);
  align-items: center;
  padding: .5rem 1rem;
  display: flex;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nexar-header-wrapper .navbar11_dropdown-toggle:hover {
  color: var(--bright);
}

.nexar-header-wrapper .navbar11_dropdown-toggle.link-white {
  color: var(--base-color-brand--white);
}

.nexar-header-wrapper .navbar11_dropdown-toggle.link-color {
  color: var(--link-color--link-alternate);
}

.nexar-header-wrapper .navbar11_dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-color--background-primary);
  width: 17rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.nexar-header-wrapper .navbar11_dropdown-list.w--open {
  background-color: var(--background-color--background-primary);
  width: 17rem;
}

.nexar-header-wrapper .navbar11_dropdown-link-list {
  color: var(--border-color--border-primary);
  flex-flow: column;
  display: flex;
}

.nexar-header-wrapper .navbar11_dropdown-link {
  align-items: flex-start;
  padding: .75rem 1.25rem;
  text-decoration: none;
  display: flex;
  color: var(--link-color--link-alternate);
  transition: background-color 0.2s ease;
}

.nexar-header-wrapper .navbar11_dropdown-link:hover {
  background-color: #7a4dff26;
}

.nexar-header-wrapper .navbar11_text-wrapper {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  display: flex;
}

.nexar-header-wrapper .text-weight-semibold {
  font-weight: 600;
}

.nexar-header-wrapper .navbar11_menu-buttons {
  grid-column-gap: 1rem;
  grid-row-gap: 1rem;
  align-items: center;
  margin-left: 1rem;
  display: flex;
}

/* Menu Icon Styles */
.nexar-header-wrapper .menu-icon1 {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  margin-right: -.5rem;
  padding-bottom: 0;
  padding-right: 0;
  display: flex;
  cursor: pointer;
}

.nexar-header-wrapper .menu-icon1_line-top,
.nexar-header-wrapper .menu-icon1_line-middle,
.nexar-header-wrapper .menu-icon1_line-bottom {
  background-color: var(--base-color-brand--white);
  width: 24px;
  height: 2px;
  transition: all 0.3s ease;
}

.nexar-header-wrapper .menu-icon1_line-middle {
  margin-top: 6px;
  margin-bottom: 6px;
}

/* Button Styles */
.nexar-header-wrapper .button {
  background-color: var(--bright);
  color: var(--base-color-brand--black);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.nexar-header-wrapper .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(182, 125, 237, 0.3);
}

.nexar-header-wrapper .button.is-new {
  border-radius: 4px;
  padding-top: 7px;
  padding-bottom: 7px;
  padding-left: 16px;
  padding-right: 16px;
}

.nexar-header-wrapper .button.is-new.only-arrow {
  border-radius: 4px;
  padding-left: 7px;
  padding-right: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nexar-header-wrapper .icon-embed-small {
  width: 1.2em;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* New AI Button */
.nexar-header-wrapper .new-ai-button {
  grid-column-gap: 4px;
  grid-row-gap: 4px;
  flex-flow: row;
  justify-content: center;
  align-items: center;
  display: flex;
}

/* Hide utility class */
.nexar-header-wrapper .hide {
  display: none !important;
}

/* Tablet Breakpoint (max-width: 991px) */
@media screen and (max-width: 991px) {
  .nexar-header-wrapper .w-nav[data-collapse='medium'] .w-nav-menu {
    display: none;
  }

  .nexar-header-wrapper .w-nav[data-collapse='medium'] .w-nav-button {
    display: block;
  }

  .nexar-header-wrapper .navbar11_menu {
    border-bottom: 1px solid var(--border-color--border-primary);
    background-color: var(--background-color--background-primary);
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
  }

  .nexar-header-wrapper .navbar11_menu.is-page-height-tablet {
    max-height: calc(100vh - 80px);
    padding-bottom: 6.5rem;
    transition: height .5s;
  }

  .nexar-header-wrapper .navbar11_menu-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nexar-header-wrapper .navbar11_link {
    width: 100%;
    padding: .75rem 0;
    font-size: 1.125rem;
  }

  .nexar-header-wrapper .navbar11_link.link-color {
    color: var(--link-color--link-primary);
  }

  .nexar-header-wrapper .navbar11_menu-dropdown {
    width: 100%;
    font-size: 1.125rem;
  }

  .nexar-header-wrapper .navbar11_dropdown-toggle {
    align-items: center;
    padding-top: .75rem;
    padding-bottom: .75rem;
    padding-left: 0;
    display: flex;
  }

  .nexar-header-wrapper .navbar11_dropdown-toggle.link-color {
    color: var(--link-color--link-primary);
  }

  .nexar-header-wrapper .navbar11_dropdown-list {
    position: static;
    overflow: hidden;
    box-shadow: none;
    border-radius: 0;
  }

  .nexar-header-wrapper .navbar11_dropdown-list.w--open {
    width: auto;
    padding: 0;
  }

  .nexar-header-wrapper .navbar11_dropdown-link-list {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .nexar-header-wrapper .navbar11_menu-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
    margin-left: 0;
  }

  .nexar-header-wrapper .menu-icon1_line-middle-inner {
    width: 4px;
    height: 0;
  }
}

/* Mobile Landscape Breakpoint (max-width: 767px) */
@media screen and (max-width: 767px) {
  .nexar-header-wrapper .w-nav[data-collapse='small'] .w-nav-menu {
    display: none;
  }

  .nexar-header-wrapper .w-nav[data-collapse='small'] .w-nav-button {
    display: block;
  }

  .nexar-header-wrapper .ai-navbar-component {
    min-height: 4rem;
  }

  .nexar-header-wrapper .navbar11_menu.is-page-height-tablet {
    padding-bottom: 6rem;
  }

  .nexar-header-wrapper .navbar11_dropdown-link-list {
    grid-row-gap: .5rem;
    max-width: none;
    padding-top: .75rem;
    padding-bottom: .75rem;
  }

  .nexar-header-wrapper .navbar11_dropdown-link {
    padding-top: .5rem;
    padding-bottom: .5rem;
  }
}

/* Mobile Portrait Breakpoint (max-width: 479px) */
@media screen and (max-width: 479px) {
  .nexar-header-wrapper .w-nav[data-collapse='tiny'] .w-nav-menu {
    display: none;
  }

  .nexar-header-wrapper .w-nav[data-collapse='tiny'] .w-nav-button {
    display: block;
  }

  .nexar-header-wrapper .navbar11_dropdown-link {
    padding-left: 0;
  }
}

/* SVG Icon Styles */
.nexar-header-wrapper svg {
  width: 100%;
  height: 100%;
}

/* W-Embed Container */
.nexar-header-wrapper .w-embed {
  display: block;
}
