/* ============================================
   Shared Navigation Styles
   ============================================ */

#nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav-brand span {
  font-weight: bold;
  font-size: 1.1em;
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 0.85em;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.2s ease, left 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 24px);
  left: 12px;
}

.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .nav-links a:hover {
  background: rgba(0, 0, 0, 0.06);
}

.nav-links a.active {
  color: var(--color-accent);
  background: rgba(243, 156, 18, 0.15);
}

[data-theme="light"] .nav-links a.active {
  background: rgba(243, 156, 18, 0.12);
}

/* Theme toggle button */
.theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.theme-toggle svg {
  display: block;
}

[data-theme="light"] .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Beta badge */
.beta-badge {
  font-size: 0.6rem;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* Desktop overrides */
@media (min-width: 601px) {
  .nav {
    padding: 12px 20px;
  }

  .nav-brand span {
    display: inline;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    padding: 8px 16px;
    font-size: 0.95em;
  }

  .nav-links a:hover::after,
  .nav-links a.active::after {
    width: calc(100% - 32px);
    left: 16px;
  }

  .nav-actions {
    gap: 15px;
  }

  .theme-toggle {
    padding: 8px;
  }
}
