/*
 * Header — Stadium Deco top navigation bar
 * Fixed position with gold accents, art deco typography, and update badge
 */
.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  height: var(--header-height);
  background: linear-gradient(180deg,
    rgba(10, 61, 46, 0.98) 0%,
    rgba(10, 61, 46, 0.92) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-cream);
}

.header-logo:hover { text-decoration: none; }

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  color: var(--color-emerald-dark);
  font-family: var(--font-display);
  font-weight: 900;
  position: relative;
  overflow: hidden;
}

.logo-icon::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(10, 61, 46, 0.3);
  border-radius: 2px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-cream);
}

.logo-text span {
  color: var(--color-gold);
}

/* Navigation */
.header-nav {
  display: flex;
  gap: var(--space-1);
}

.nav-tab {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray-400);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-tab:hover {
  color: var(--color-cream);
  background: rgba(255,255,255,0.05);
  text-decoration: none;
}

.nav-tab.active {
  color: var(--color-gold);
  background: rgba(212, 175, 55, 0.08);
}

.nav-tab.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

/* Update badge */
.update-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--color-gold-light);
}

.update-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
}

.update-badge.fresh .dot {
  background: #00E676;
  animation: livePulse 2s ease-in-out infinite;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-cream);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-2);
}

@media (max-width: 640px) {
  .header-nav {
    display: none;
  }
  .header-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 61, 46, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: var(--space-4);
    gap: var(--space-2);
  }
  .nav-toggle {
    display: block;
  }
  .update-badge {
    display: none;
  }
}
