/* Header Top Bar */
.top-bar {
  min-height: 36px;
  height: auto;
  padding: 6px 16px;
  background-color: var(--color-gold-dark);
  color: #0D0D0D;
  font-size: var(--fs-tiny);
  font-weight: var(--fw-semi);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  letter-spacing: 0.5px;
}

/* Header Container */
.site-header {
  height: 60px;
  background-color: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 48px; /* Taller on mobile to account for wrapped 2-line top-bar */
  left: 0;
  width: 100%;
  z-index: var(--z-sticky);
  transition: background-color var(--transition-fast), height var(--transition-fast), top var(--transition-fast);
}

@media (min-width: 768px) {
  .top-bar {
    height: 36px;
    padding: 0 24px;
  }
  .site-header {
    top: 36px;
  }
}

.site-header.scrolled {
  height: 60px;
  background-color: rgba(13, 13, 13, 0.95);
  border-bottom-color: var(--color-gold-primary);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-gold-primary);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: 20px;
  letter-spacing: 1px;
}

.header__logo svg {
  fill: currentColor;
}

/* Navigation - Desktop */
.header__nav {
  display: none;
  height: 100%;
}

.header__nav-list {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 24px;
}

.header__nav-list li {
  height: 100%;
  display: flex;
  align-items: center;
}

.header__nav-list a {
  color: var(--color-text-secondary);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  transition: color var(--transition-fast);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.header__nav-list a:hover {
  color: var(--color-gold-primary);
}

.header__nav-list a.active {
  color: var(--color-gold-primary);
  border-bottom-color: var(--color-gold-primary);
}

/* Actions - Login & Register & Hamburger */
.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__actions .btn-ghost,
.header__actions .btn-primary {
  padding: 8px 16px;
  font-size: var(--fs-small);
  height: 38px;
}

.header__actions .btn-ghost {
  display: none;
}

.header__actions .btn-primary {
  display: none;
}

/* Hamburger button */
.header__hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-gold-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* Hamburger transition to close icon */
.header__hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.header__hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile full-screen navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  background-color: var(--color-bg-primary);
  z-index: calc(var(--z-sticky) - 1);
  padding: 120px 24px 40px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform var(--transition-mid);
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateY(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

.mobile-nav__list a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 12px;
  display: block;
  transition: color var(--transition-fast);
}

.mobile-nav__list a:hover,
.mobile-nav__list a.active {
  color: var(--color-gold-primary);
  border-bottom-color: var(--color-gold-primary);
}

.mobile-nav__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav__actions .btn-ghost,
.mobile-nav__actions .btn-primary {
  width: 100%;
}

/* Desktop styles */
@media (min-width: 1024px) {
  .site-header {
    height: 72px;
  }
  .site-header.scrolled {
    height: 72px;
  }
  .header__nav {
    display: block;
  }
  .header__hamburger {
    display: none;
  }
  .header__actions .btn-ghost,
  .header__actions .btn-primary {
    display: inline-flex;
  }
}
