/**
 * Shared Navigation Styles
 * Based on the pricing mockup design
 */

.shared-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color, #3b3754);
  background: rgba(30, 27, 49, 0.95);
  backdrop-filter: blur(10px);
  width: 100%;
}

.navbar-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 100px ;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 24px;
  font-weight: bold;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  cursor: pointer;
  user-select: none;
}

.navbar-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar-link {
  color: var(--text-secondary, #cbd5e1);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 16px;
  font-weight: 500;
  position: relative;
}

.navbar-link:hover {
  color: var(--primary-color, #8b5cf6);
}

.navbar-link.active {
  color: var(--primary-color, #8b5cf6);
}

.navbar-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(135deg, #8b5cf6, #a78bfa);
  border-radius: 2px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    gap: 15px;
  }

  .navbar-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .navbar-logo {
    font-size: 20px;
  }

  .navbar-link {
    font-size: 14px;
  }
}

/* Adjust Docsify content to account for navbar */
body {
  --navbar-height: 80px;
}

#app {
  margin-top: var(--navbar-height);
}

/* For mobile */
@media (max-width: 768px) {
  body {
    --navbar-height: 120px;
  }
}

/* Dark theme compatibility */
body[data-theme="dark"] .shared-navbar,
body.dark .shared-navbar,
.shared-navbar {
  --primary-color: #8b5cf6;
  --primary-hover: #7c3aed;
  --bg-primary: #1e1b31;
  --bg-secondary: #252140;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border-color: #3b3754;
}

/* Light theme (if you add it later) */
body[data-theme="light"] .shared-navbar {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: #e2e8f0;
}

body[data-theme="light"] .navbar-link {
  color: #64748b;
}

body[data-theme="light"] .navbar-link:hover,
body[data-theme="light"] .navbar-link.active {
  color: #8b5cf6;
}
