/* Two-Level Navigation Styles */
.two-level-nav {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f2f4e 50%, #3d2f5e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 60px; /* Below main header */
  z-index: 998;
}

/* Level 1 - Top Level Categories */
.nav-level-1 {
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-level-1-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.nav-level-1-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.nav-category {
  position: relative;
  flex-shrink: 0;
}

.nav-category-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  gap: 8px;
}

.nav-category-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

.nav-category.active .nav-category-link {
  background: rgba(233, 69, 96, 0.3);
  color: white;
  border-bottom-color: #e94560;
}

/* Level 2 - Sub-items */
.nav-level-2 {
  background: rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-sub-items {
  display: none;
  gap: 4px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.nav-sub-items.active {
  display: flex;
}

.nav-sub-items a,
.nav-sub-items .nav-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-category-link .nav-count {
  margin-left: auto;
}

.nav-sub-link .nav-count {
  font-size: 0.7rem;
  padding: 1px 6px;
}

.nav-sub-items a:hover,
.nav-sub-items .nav-sub-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
}

/* Active state for sub-items */
.nav-sub-items a.active,
.nav-sub-items .nav-sub-link.active {
  background: rgba(233, 69, 96, 0.3);
  color: white;
  font-weight: 600;
}

/* Remove left margin from main content since we're not using sidebar anymore */
body:has(.two-level-nav) .main-content {
  margin-left: 0;
  padding: 32px 48px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .two-level-nav {
    top: 60px;
  }

  .nav-level-1-container {
    padding: 0 12px;
    gap: 4px;
  }

  .nav-category-link {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .nav-level-2 {
    padding: 0 12px;
  }

  .nav-sub-items {
    gap: 2px;
    padding: 6px 0;
  }

  .nav-sub-items a {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  body:has(.two-level-nav) .main-content {
    padding: 24px 20px;
  }
}

