/* header.css — Vibrant Premium Glass Bar */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* Deep Glassmorphism */
  background: rgba(10, 12, 16, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  max-width: 1080px; /* Aligns perfectly with the leaderboard container */
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
}

.main-logo-img {
  height: 54px; /* Slightly refined height */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.main-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.2));
}

/* ── NAV WRAPPER ── */
.nav-and-selector-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  gap: 24px;
  min-width: 0;
}

/* ── NAV LINKS ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #94a3b8; /* text-muted */
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
  padding: 6px 0;
}

.nav-link:hover {
  color: #ffffff;
}

/* Clean Animated Underline */
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  border-radius: 999px;
  background: #3b82f6; /* Vibrant accent blue */
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #ffffff;
  font-weight: 600;
}

/* ── SITE SLIDER (Header) ── */
.site-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 500px;
  
  /* Adds a subtle fade effect to the edges so it doesn't just cut off */
  mask-image: linear-gradient(to right, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.site-slider::-webkit-scrollbar {
  display: none;
}

.site-slider-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  cursor: pointer;
  padding: 6px 12px 6px 6px;
  border-radius: 100px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.site-slider-item:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.site-slider-item img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.site-slider-item span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
  transition: color 0.2s ease;
}

/* Active State */
.site-slider-item.active {
  background: rgba(59, 130, 246, 0.1); /* Soft blue tint */
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.site-slider-item.active span {
  color: #ffffff;
  font-weight: 600;
}

.site-slider-item.active img {
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}


/* ── RESPONSIVE ── */
body {
  padding-top: 80px;
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-and-selector-wrapper { justify-content: flex-end; }
  .site-slider { max-width: 100%; mask-image: none; -webkit-mask-image: none; }
}

@media (max-width: 768px) {
  .header-content {
    min-height: 64px;
    padding: 0 16px;
    gap: 16px;
  }
  .main-logo-img { height: 42px; }
  .site-slider-item { padding: 4px 10px 4px 4px; }
  .site-slider-item img { width: 22px; height: 22px; }
  body { padding-top: 64px; }
}

@media (max-width: 480px) {
  .header-content { min-height: 56px; }
  .main-logo-img { height: 32px; }
  .site-slider-item span { font-size: 0.75rem; }
  body { padding-top: 56px; }
}