/* Horizontal Scrolling Navigation */
.horizontal-nav-container {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 0 20px;
}

.horizontal-nav-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.horizontal-nav {
  display: inline-flex;
  padding: 10px 0;
}

/* Left fade effect */
.horizontal-nav-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to right, var(--background-color) 0%, transparent 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Right fade effect */
.horizontal-nav-container::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, var(--background-color) 0%, transparent 100%);
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Show left fade when scrolled left */
.horizontal-nav-container.scrolled-left::before {
  opacity: 1;
}

/* Hide right fade when scrolled to the end */
.horizontal-nav-container.scrolled-right::after {
  opacity: 0;
}

.nav-item {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 4px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-item:hover {
  background-color: var(--hover-color);
  color: var(--hover-text-color);
}

.nav-item.active {
  background-color: var(--primary-color);
  color: white;
}

/* Media query for larger screens */
@media (min-width: 992px) {
  .horizontal-nav-container {
    display: none;
  }
} 