/**
 * Navigation Styles
 * Shared CSS for navigation bar and dropdown menus
 */

/* Navigation Bar */
nav {
  background: var(--bg-darker, #0f1419);
  border-bottom: 1px solid var(--border-dark, #444);
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent, #4a5fc1);
  padding: 16px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand:hover {
  background: transparent;
}

.nav-divider {
  width: 1px;
  height: 32px;
  background: var(--border-dark, #444);
  margin: 0 4px;
}

nav a {
  color: var(--text-light, #e6eef8);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

nav a:hover {
  background: var(--bg-medium, #1a2332);
  color: var(--text-light, #e6eef8);
}

nav a.active {
  background: var(--accent, #4a5fc1);
  color: #fff;
  font-weight: 600;
}

.nav-spacer {
  flex: 1;
}

.nav-settings {
  margin-left: auto;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 12px;
  }

  nav a {
    padding: 10px 12px;
    font-size: 13px;
  }

  .nav-brand {
    padding: 12px 16px;
    font-size: 1.1rem;
  }
}

/* Dropdown Container */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Toggle Button */
.nav-dropdown-toggle {
  color: var(--text-light, #e6eef8);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-dropdown-toggle:hover {
  background: var(--bg-medium, #1a2332);
  color: var(--text-light, #e6eef8);
}

.nav-dropdown.active > .nav-dropdown-toggle,
.nav-dropdown-toggle.active {
  background: var(--accent, #4a5fc1);
  color: #fff;
  font-weight: 600;
}

/* Dropdown Arrow */
.nav-dropdown-arrow {
  font-size: 10px;
  transition: transform 0.2s ease;
  margin-left: 4px;
}

.nav-dropdown.active > .nav-dropdown-toggle .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-medium, #1a2332);
  border: 1px solid var(--border-dark, #444);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  margin-top: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 4px 0;
}

.nav-dropdown.active > .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown Menu Items */
.nav-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text-light, #e6eef8);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
  border-radius: 0;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-darker, #0f1419);
  color: var(--text-light, #e6eef8);
}

.nav-dropdown-menu a.active {
  background: var(--accent, #4a5fc1);
  color: #fff;
  font-weight: 600;
}

/* Platform-specific colors (optional) */
.nav-dropdown-tiktok.active > .nav-dropdown-toggle {
  background: #ff2d55;
}

.nav-dropdown-twitch.active > .nav-dropdown-toggle {
  background: #9146ff;
}

.nav-dropdown-discord.active > .nav-dropdown-toggle {
  background: #5865f2;
}

.nav-dropdown-youtube.active > .nav-dropdown-toggle {
  background: #ff0000;
}

