/* Public pages use the Home-page navigation component. */
@import url("public-navigation.css");

:root {
  --public-header-ink: var(--text-primary);
  --public-header-blue: #0f62fe;
  --public-header-bg: #061730;
  --public-header-bg-2: #08254b;
  --public-header-height: 78px;
}

html {
  scroll-padding-top: calc(var(--public-header-height) + 16px);
}

.unified-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 2100 !important;
  width: 100% !important;
  min-height: var(--public-header-height);
  background: linear-gradient(115deg, var(--public-header-bg) 0%, var(--public-header-bg-2) 58%, #06182e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, .14) !important;
  box-shadow: 0 12px 32px rgba(2, 15, 37, .18) !important;
  padding: 0 !important;
  isolation: isolate;
  transform: translateZ(0);
}

.unified-header.navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 2100 !important;
  padding: 12px 0 !important;
}

.public-header-shell,
.unified-header > .container,
.unified-header > .container-fluid {
  width: min(1380px, calc(100% - 32px)) !important;
  max-width: 1380px !important;
  margin: 0 auto;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-height: 54px;
}

.brand-mark,
.unified-header .logo-container,
.unified-header .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
  color: #fff;
  text-decoration: none;
}

.brand-mark:hover,
.unified-header .logo-container:hover,
.unified-header .navbar-brand:hover {
  color: #fff;
}

.brand-mark img,
.unified-header .logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-right: 0 !important;
  filter: drop-shadow(0 6px 12px rgba(15, 98, 254, .32));
}

.brand-name,
.unified-header .brand-text,
.unified-header .navbar-brand {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  color: #fff !important;
}

.brand-sub {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  font-weight: 500;
}

.unified-header .navbar-nav {
  gap: clamp(8px, 1.1vw, 18px) !important;
  align-items: center;
  flex-wrap: nowrap !important;
}

.unified-header .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 !important;
  padding: 12px 4px !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, .88) !important;
  background: transparent !important;
  font-size: clamp(.76rem, .74vw, .94rem) !important;
  font-weight: 600;
  white-space: nowrap;
}

.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.nav-count-blue { background: #2f7cff; }
.nav-count-orange { background: #f59e0b; }
.nav-count-green { background: #16a34a; }
.nav-count-purple { background: #7c3aed; }
.nav-count-cyan { background: #06b6d4; }
.nav-count-red { background: #ef4444; }

.unified-header .nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: #2f7cff;
  opacity: 0;
  transform: scaleX(.35);
  transition: .2s ease;
}

.unified-header .nav-link:hover,
.unified-header .nav-link.active {
  color: #fff !important;
  background: transparent !important;
}

.unified-header .nav-link:hover::after,
.unified-header .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  gap: 10px;
  flex: 0 0 auto;
}

.unified-header .btn-login,
.unified-header .btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: clamp(.76rem, .74vw, .9rem) !important;
  text-decoration: none;
  transition: .2s ease;
  white-space: nowrap;
}

.unified-header .btn-login {
  min-width: 92px;
  padding: 9px 14px !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  color: #fff !important;
  background: rgba(255, 255, 255, .04) !important;
}

.unified-header .btn-login:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, .13) !important;
}

.unified-header .btn-register {
  min-width: 112px;
  padding: 9px 16px !important;
  border: 1px solid var(--public-header-blue) !important;
  color: #fff !important;
  background: linear-gradient(180deg, #1269ff, #0757e8) !important;
  box-shadow: 0 12px 26px rgba(15, 98, 254, .28);
}

.unified-header .btn-register:hover {
  color: #fff !important;
  transform: translateY(-1px);
}

.unified-header .navbar-toggler {
  border-color: rgba(255, 255, 255, .36) !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  padding: 7px 9px !important;
}

.unified-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, .88%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (min-width: 992px) and (max-width: 1240px) {
  .public-header-shell,
  .unified-header > .container,
  .unified-header > .container-fluid {
    width: min(100% - 24px, 1180px) !important;
  }

  .brand-mark,
  .unified-header .logo-container,
  .unified-header .navbar-brand {
    min-width: 150px;
    gap: 9px;
  }

  .brand-mark img,
  .unified-header .logo {
    width: 46px;
    height: 46px;
  }

  .brand-name,
  .unified-header .brand-text,
  .unified-header .navbar-brand {
    font-size: 1.08rem;
  }

  .brand-sub {
    font-size: .66rem;
  }

  .unified-header .btn-login,
  .unified-header .btn-register {
    min-width: auto;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

@media (max-width: 991.98px) {
  :root {
    --public-header-height: 68px;
  }

  body {
    padding-top: var(--public-header-height);
  }

  .unified-header,
  .unified-header.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2100 !important;
    min-height: var(--public-header-height);
    padding: 9px 0 !important;
  }

  .public-header-shell,
  .unified-header > .container,
  .unified-header > .container-fluid {
    width: min(100% - 24px, 760px) !important;
    min-height: 50px;
  }

  .unified-header .navbar-collapse {
    position: absolute;
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    max-height: calc(100vh - var(--public-header-height) - 20px);
    overflow-y: auto;
    padding: 10px 12px 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 0 0 10px 10px;
    background: linear-gradient(180deg, #061730 0%, #071f44 100%);
    box-shadow: 0 18px 35px rgba(2, 15, 37, .28);
  }

  .unified-header .navbar-nav {
    align-items: stretch;
    gap: 3px !important;
    padding: 4px 0;
    flex-wrap: nowrap !important;
  }

  .unified-header .nav-link {
    justify-content: space-between;
    padding: 10px 12px !important;
    border-radius: 7px !important;
    font-size: .88rem !important;
  }

  .unified-header .nav-link::after {
    display: none;
  }

  .unified-header .nav-link:hover,
  .unified-header .nav-link.active {
    background: rgba(255, 255, 255, .12) !important;
  }

  .nav-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
  }

  .unified-header .btn-login,
  .unified-header .btn-register {
    width: 100%;
    min-height: 42px;
  }
}

@media (max-width: 767.98px) {
  .brand-mark {
    min-width: 0;
  }

  .brand-mark img {
    width: 46px;
    height: 46px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-sub {
    font-size: .68rem;
  }
}

@media (max-width: 420px) {
  .public-header-shell,
  .unified-header > .container,
  .unified-header > .container-fluid {
    width: calc(100% - 18px) !important;
  }

  .brand-mark img,
  .unified-header .logo {
    width: 40px;
    height: 40px;
  }

  .brand-name,
  .unified-header .brand-text,
  .unified-header .navbar-brand {
    font-size: .98rem;
  }

  .brand-sub {
    font-size: .62rem;
  }

  .unified-header .navbar-collapse {
    left: 9px;
    right: 9px;
  }
}

@media (max-width: 767.98px) {
  .public-header-shell,
  .unified-header > .container,
  .unified-header > .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .brand-mark,
  .unified-header .logo-container,
  .unified-header .navbar-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 62px) !important;
    gap: 9px !important;
    white-space: normal !important;
  }

  .brand-mark img,
  .unified-header .logo {
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 38px !important;
  }

  .brand-mark > span,
  .unified-header .logo-container > span {
    display: block !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .brand-name,
  .brand-sub,
  .unified-header .brand-text {
    display: block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    word-break: normal !important;
  }

  .brand-name,
  .unified-header .brand-text,
  .unified-header .navbar-brand {
    font-size: clamp(.96rem, 4.2vw, 1.1rem) !important;
    line-height: 1.1 !important;
  }

  .brand-sub {
    font-size: .64rem !important;
    line-height: 1.2 !important;
  }

  .unified-header .navbar-toggler {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 44px !important;
    margin-left: auto !important;
    padding: 7px !important;
  }
}

@media (max-width: 360px) {
  .brand-name,
  .unified-header .brand-text,
  .unified-header .navbar-brand {
    font-size: .9rem !important;
  }

  .brand-sub {
    display: none !important;
  }
}
