
/* Performance optimizations */
* {
    box-sizing: border-box;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Optimize rendering */
.will-change-transform {
    will-change: transform;
}

.will-change-scroll {
    will-change: scroll-position;
}

/* Optimize images */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

/* Optimize fonts */
@font-face {
    font-display: swap;
}
/* Header Improvements - Compact, Mobile-First Design */

/* Compact Header Container */
.compact-header {
  background: #fff;
  border-bottom: 2px solid #000;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header Container */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0.5rem 1rem;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Brand Section */
.brand-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Logo Container with White Background */
.logo-container {
  background: #fff;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px rgba(0, 0, 0, 1);
}

.header-logo {
  width: 32px;
  height: 32px;
  display: block;
}

.brand-section h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  font-family: 'Press Start 2P', monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000;
}

.brand-section h1 a {
  text-decoration: none;
  color: inherit;
}

/* Header Auth Container */
#header-auth {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

#header-auth-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
}

/* User Info Display */
#user-info {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  background: #f8f8f8;
  border-radius: 6px;
  border: 2px solid #000;
  min-width: 100px;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: #000;
}

/* Auth Buttons Container */
#auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Improved Button Styling */
#header-auth-container .bnb-btn {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid #000;
  border-radius: 6px;
  background: #fff;
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-height: 32px;
  white-space: nowrap;
}

#header-auth-container .bnb-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 1);
}

#header-auth-container .bnb-btn:active {
  transform: translate(0, 0);
  box-shadow: 3px 3px 0px rgba(0, 0, 0, 1);
}

#header-auth-container .bnb-btn-primary {
  background: #000;
  color: #fff;
}

#header-auth-container .bnb-btn-primary:hover {
  background: #222;
}

#header-auth-container .bnb-btn-secondary {
  background: #fff;
  color: #000;
}

#header-auth-container .bnb-btn-secondary:hover {
  background: #f8f8f8;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .header-content {
    min-height: 48px;
    padding: 0.4rem 0.75rem;
    gap: 0.75rem;
  }
  
  .brand-section h1 {
    font-size: 1.25rem;
    font-weight: 600;
  }
  
  .header-logo {
    width: 28px;
    height: 28px;
  }
  
  #header-auth {
    gap: 0.5rem;
  }
  
  #header-auth-container {
    gap: 0.5rem;
  }
  
  #user-info {
    padding: 0.3rem 0.5rem;
    min-width: 80px;
    font-size: 0.7rem;
  }
  
  #auth-buttons {
    gap: 0.3rem;
  }
  
  #header-auth-container .bnb-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    min-height: 28px;
  }
}

@media (max-width: 480px) {
  .header-content {
    min-height: 44px;
    padding: 0.3rem 0.5rem;
    gap: 0.5rem;
  }
  
  .brand-section h1 {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  .header-logo {
    width: 24px;
    height: 24px;
  }
  
  .logo-container {
    padding: 3px;
    border-width: 1px;
  }
  
  #header-auth {
    gap: 0.4rem;
  }
  
  #header-auth-container {
    gap: 0.4rem;
  }
  
  #user-info {
    padding: 0.25rem 0.4rem;
    min-width: 70px;
    font-size: 0.65rem;
  }
  
  #auth-buttons {
    gap: 0.25rem;
  }
  
  #header-auth-container .bnb-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    min-height: 24px;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .header-content {
    min-height: 40px;
    padding: 0.25rem 0.4rem;
    gap: 0.4rem;
  }
  
  .brand-section h1 {
    font-size: 1rem;
  }
  
  .header-logo {
    width: 20px;
    height: 20px;
  }
  
  .logo-container {
    padding: 2px;
  }
  
  #header-auth-container .bnb-btn {
    padding: 0.2rem 0.4rem;
    font-size: 0.65rem;
    min-height: 20px;
  }
  
  #user-info {
    padding: 0.2rem 0.3rem;
    min-width: 60px;
    font-size: 0.6rem;
  }
}

/* Focus States for Accessibility */
#header-auth-container .bnb-btn:focus {
  outline: 2px solid #4169e1;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  #header-auth-container .bnb-btn {
    transition: none;
  }
  
  #header-auth-container .bnb-btn:hover {
    transform: none;
  }
}

/* Ultra Compact for Very Small Screens */
@media (max-width: 320px) {
  .header-content {
    min-height: 36px;
    padding: 0.2rem 0.3rem;
    gap: 0.3rem;
  }
  
  .brand-section h1 {
    font-size: 0.9rem;
  }
  
  .header-logo {
    width: 18px;
    height: 18px;
  }
  
  #header-auth-container .bnb-btn {
    padding: 0.15rem 0.3rem;
    font-size: 0.6rem;
    min-height: 18px;
  }
  
  #user-info {
    padding: 0.15rem 0.25rem;
    min-width: 50px;
    font-size: 0.55rem;
  }
} 