/* Guest Navbar for SOLO API Documentation
 * Provides a DMS-styled navbar for public documentation pages
 * Links redirect to DMS app (authentication required)
 */

.dms-guest-navbar {
  background: linear-gradient(90deg, #1976d2 0%, #2196f3 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guest-navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  height: 56px;
}

.guest-navbar-brand a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-navbar-brand a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.guest-navbar-links {
  display: flex;
  gap: 4px;
}

.guest-navbar-links .nav-link {
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 24px;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.guest-navbar-links .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.guest-navbar-links .nav-login {
  background-color: rgba(255, 255, 255, 0.2);
  margin-left: 8px;
}

.guest-navbar-links .nav-login:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Active link indicator */
.guest-navbar-links .nav-active {
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
}

/* Dropdown menu styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-toggle::after {
  content: "▼";
  font-size: 0.6rem;
  margin-left: 4px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  padding: 8px 0;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-item {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.nav-dropdown-item:hover {
  background-color: #f5f5f5;
  color: #1976d2;
}

/* Dark mode dropdown */
[data-theme="dark"] .nav-dropdown-menu,
html[data-theme="dark"] .nav-dropdown-menu {
  background: #2d2d2d;
}

[data-theme="dark"] .nav-dropdown-item,
html[data-theme="dark"] .nav-dropdown-item {
  color: #e0e0e0;
}

[data-theme="dark"] .nav-dropdown-item:hover,
html[data-theme="dark"] .nav-dropdown-item:hover {
  background-color: #3d3d3d;
  color: #64b5f6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .guest-navbar-container {
    padding: 0 0.5rem;
  }

  .navbar-title {
    font-size: 0.95rem;
  }

  .guest-navbar-links .nav-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .navbar-title {
    display: none;
  }

  .guest-navbar-brand a::before {
    content: "DMS";
    font-weight: 600;
  }
}

/* Dark mode support */
[data-theme="dark"] .dms-guest-navbar,
html[data-theme="dark"] .dms-guest-navbar {
  background: linear-gradient(90deg, #1565c0 0%, #1976d2 100%);
}
