/* STICKY SITE NAVIGATION HEADER - Shared CSS */
/* Use !important to override phpBB styles */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 60px !important;
  background: #1e3a5f !important;
  background: linear-gradient(to bottom, #2a5080 0%, #1e3a5f 2px, #1a3050 100%) !important;
  border-bottom: 1px solid #3a3a3a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  z-index: 10000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 30px !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.site-logo-nav {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.site-logo-nav img {
  height: 40px;
  width: auto;
}

.site-name {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 1px;
}

.site-name:hover {
  color: #6ab7ff;
}

.nav-links {
  display: flex !important;
  gap: 30px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  background: rgba(74, 158, 255, 0.2);
  color: #6ab7ff;
}

.nav-links a.active {
  background: rgba(74, 158, 255, 0.3);
  color: #4a9eff;
  border-bottom: 2px solid #4a9eff;
}

/* User menu section */
.user-menu {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.user-menu a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95em;
  padding: 6px 12px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.user-menu a:hover {
  background: rgba(74, 158, 255, 0.2);
  color: #6ab7ff;
}

.user-menu .username {
  color: #4CAF50;
  font-weight: 600;
}

.user-menu .login-btn {
  background: rgba(76, 175, 80, 0.3);
  border: 1px solid rgba(76, 175, 80, 0.5);
}

.user-menu .login-btn:hover {
  background: rgba(76, 175, 80, 0.5);
}

.user-menu .logout-btn {
  color: #ff8a80;
}

.user-menu .logout-btn:hover {
  background: rgba(255, 82, 82, 0.2);
  color: #ff6b6b;
}

/* Add padding to body to prevent content hiding under fixed header */
body {
  padding-top: 60px;
}

/* Forum-specific: Add margin to wrap instead of body padding */
#wrap.wrap {
  margin-top: 60px;
}

@media (max-width: 768px) {
  .site-header {
    padding: 0 10px;
    flex-wrap: wrap;
    height: auto;
    min-height: 60px;
  }

  .site-logo-nav {
    display: none;
  }

  .nav-links {
    flex: 1;
    justify-content: center;
    gap: 5px;
  }

  .nav-links a {
    text-align: center;
    padding: 8px 10px;
    font-size: 0.9em;
    font-weight: 600;
  }

  .user-menu {
    gap: 8px;
  }

  .user-menu a {
    font-size: 0.85em;
    padding: 5px 8px;
  }

  .user-menu .username {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    font-size: 0.8em;
    padding: 8px 6px;
  }

  .user-menu a {
    font-size: 0.8em;
    padding: 4px 6px;
  }
}

