/* Header-specific styling for Alvionixx, built on base.css */

.shell-header {
  z-index: 50;
}

.shell-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

/* Brand / logo */
.shell-header__brand {
  display: flex;
  align-items: center;
}

.shell-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-text);
}

.shell-header__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(245, 212, 155, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 0, rgba(255, 255, 255, 0.4), transparent 50%),
    radial-gradient(circle at 80% 120%, rgba(45, 212, 255, 0.4), transparent 60%),
    rgba(5, 5, 10, 0.98);
  box-shadow: 0 0 18px rgba(45, 212, 255, 0.45);
}

.shell-header__logo-chip {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(245, 212, 155, 0.95);
  box-shadow: inset 0 0 0 2px rgba(5, 5, 10, 0.85);
}

.shell-header__logo-text {
  display: flex;
  flex-direction: column;
}

.shell-header__logo-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shell-header__logo-tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Navigation */
.shell-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.shell-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.shell-header__nav-link {
  /*font-size: var(--font-size-xs);*/
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  color: var(--color-text-muted);
  border: 1px solid transparent;
  transition: color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    text-shadow var(--transition-fast);
  font-size: 12px !important;
}

.shell-header__nav-link:hover,
.shell-header__nav-link:focus-visible {
  color: var(--color-text);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(45, 212, 255, 0.5);
  text-shadow: 0 0 12px rgba(45, 212, 255, 0.7);
}

.shell-header__nav-link--active {
  color: var(--color-accent-gold);
  background:
    radial-gradient(circle at 0 0, rgba(245, 212, 155, 0.32), transparent 60%),
    rgba(7, 7, 14, 0.96);
  border-color: rgba(245, 212, 155, 0.65);
  box-shadow: 0 0 16px rgba(245, 212, 155, 0.45);
}

.shell-header__cta-wrap {
  margin-left: var(--space-4);

}

.shell-header__cta {
  white-space: nowrap;
  padding: 5px 10px !important;
  font-size: 10px !important;
}

/* Mobile toggle */
.shell-header__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 0 0, rgba(45, 212, 255, 0.16), transparent 60%),
    rgba(5, 5, 12, 0.96);
  color: var(--color-text-soft);
  cursor: pointer;
}

.shell-header__toggle-box {
  width: 20px;
  height: 16px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.shell-header__toggle-line {
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold));
  transition: transform var(--transition-base),
    opacity var(--transition-fast);
}

.shell-header__toggle-text {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* Toggle active (X icon) */
.shell-header__toggle[aria-expanded="true"] .shell-header__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.shell-header__toggle[aria-expanded="true"] .shell-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.shell-header__toggle[aria-expanded="true"] .shell-header__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop layout */
@media (min-width: 1080px) {
  .shell-header__toggle {
    display: none;
  }

  .shell-header__nav {
    position: static;
    inset: auto;
    flex-direction: row;
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .shell-header__nav-list {
    flex-direction: row;
  }
}

/* Mobile / tablet navigation (overlay) */
@media (max-width: 1080px) {
  .shell-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 60px;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    background: radial-gradient(circle at 0 0, rgba(45, 212, 255, 0.18), transparent 60%),
      radial-gradient(circle at 100% 0, rgba(245, 212, 155, 0.16), transparent 60%),
      rgba(5, 5, 12, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-soft);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base),
      transform var(--transition-base),
      visibility var(--transition-base);
  }

  .shell-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
    width: 100%;
  }

  .shell-header__nav-item {
    width: 100%;
  }

  .shell-header__nav-link {
    display: block;
    width: 100%;
  }

  .shell-header__cta-wrap {
    margin: var(--space-4) 0 0;
    width: 100%;
  }

  .shell-header__cta {
    width: 100%;
    justify-content: center;
  }

  .shell-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .shell-header__nav,
  .shell-header__toggle-line {
    transition: none !important;
  }
}
