/* Header styles scoped to PLAY JOURNEY HUB */

.pjh-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 20, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.pjh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.pjh-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.pjh-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 20%, #ffb547, transparent 55%),
              radial-gradient(circle at 70% 80%, #e6397f, transparent 55%),
              #050814;
  box-shadow: var(--shadow-glow-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(248, 250, 252, 0.14);
}

.pjh-header__logo-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(248, 250, 252, 0.9);
  box-shadow: 0 0 0 2px rgba(5, 8, 20, 0.9);
}

.pjh-header__brand-text {
  display: flex;
  flex-direction: column;
}

.pjh-header__brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pjh-header__brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.pjh-header__nav {
  display: flex;
  align-items: center;
}

.pjh-header__nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pjh-header__nav-link {
  position: relative;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  padding-bottom: 0.15rem;
}

.pjh-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #e6397f, #ffb547);
  transition: width var(--transition-base);
}

.pjh-header__nav-link:hover::after,
.pjh-header__nav-link[aria-current="page"]::after {
  width: 100%;
}

.pjh-header__nav-link--cta {
  padding-inline: 1.1rem;
  padding-block: 0.55rem;
}

.pjh-header__nav-item--cta {
  margin-left: 0.5rem;
}

/* Mobile toggle */
.pjh-header__toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(15, 23, 42, 0.85);
  color: var(--color-text);
}

.pjh-header__toggle-box {
  width: 20px;
  height: 16px;
  position: relative;
}

.pjh-header__toggle-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e6397f, #ffb547);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.pjh-header__toggle-line--top {
  top: 0;
}

.pjh-header__toggle-line--middle {
  top: 50%;
  transform: translateY(-50%);
}

.pjh-header__toggle-line--bottom {
  bottom: 0;
}

.pjh-header__toggle-text {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.pjh-header__backdrop {
  display: none;
}

/* Mobile menu open state */
.pjh-header--menu-open .pjh-header__toggle-line--top {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.pjh-header--menu-open .pjh-header__toggle-line--middle {
  opacity: 0;
}

.pjh-header--menu-open .pjh-header__toggle-line--bottom {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.pjh-header--menu-open .pjh-header__backdrop {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
}

/* Responsive layout */
@media (max-width: 900px) {
  .pjh-header__toggle {
    display: inline-flex;
  }

  .pjh-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 64px;
    background: radial-gradient(circle at top, #151a33 0, #050814 55%, #000 100%);
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.25rem 1.25rem 1.75rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
  }

  .pjh-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .pjh-header__nav-item--cta {
    width: 100%;
    margin-left: 0;
  }

  .pjh-header__nav-link--cta {
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 520px) {
  .pjh-header__brand-name {
    font-size: 0.8rem;
  }

  .pjh-header__brand-tagline {
    display: none;
  }
}
