@use '../assets/scss/variables' as *;

.ntq-app-header {
  position: relative;
  z-index: 2;
  width: 100%;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(6, 6, 18, 0.6);
  border-bottom: 1px solid var(--ntq-white-12);
}

.ntq-app-header__toolbar {
  min-height: $ntq-header-height;
  display: block;
  width: 100%;
}

.ntq-app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: $ntq-header-height;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

.ntq-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;

  &:hover {
    text-decoration: none;
  }
}

.ntq-brand__logo {
  width: auto;
  height: 50px;
  object-fit: contain;
  display: block;
}

.ntq-brand__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

// 与 new-tea 官网 .site-brand .site-name a 一致（紫 → 青 → 绿渐变字标）
.ntq-brand__name {
  display: inline-block;
  font-size: 1.3rem !important;
  font-weight: 800 !important;
  line-height: 1;
  letter-spacing: -0.1em;
  text-transform: uppercase;
  background: var(--ntq-brand-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: var(--ntq-brand-text-glow);

  &.MuiTypography-root {
    background: var(--ntq-brand-text-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
    -webkit-text-fill-color: transparent;
  }
}

.ntq-brand__version {
  color: var(--ntq-text-muted);
  line-height: 1;
}

.ntq-nav {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.ntq-nav-btn {
  height: $ntq-header-height;
  border-radius: 0 !important; // override MUI global button radius
  border: none;
  background: transparent;
  color: var(--ntq-text);
  transition: background 180ms ease, color 180ms ease;
  padding-left: 18px !important;
  padding-right: 18px !important;
  min-width: 0 !important;

  &:hover {
    background: var(--ntq-white-06);
    color: var(--ntq-text);
  }

  &:active {
    background: rgba(255, 255, 255, 0.08);
  }
}

.ntq-nav-btn.is-active {
  color: var(--ntq-cyan);
  background: rgba(255, 255, 255, 0.06);

  &:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--ntq-cyan);
  }
}

