/* nav.css -- extracted from xanguard.tech blog posts */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav__logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #000;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text-primary); }

.nav__links a.active { color: var(--accent); }

.nav__dropdown { position: relative; }

.nav__dropdown-toggle {
  display: flex; align-items: center; gap: 5px;
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  cursor: pointer; background: none; border: none;
  font-family: var(--font-sans); padding: 0; transition: color 0.2s;
}

.nav__dropdown-toggle:hover { color: var(--text-primary); }

.nav__dropdown-toggle svg { transition: transform 0.2s; }

.nav__dropdown.open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: none; position: absolute;
  top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  min-width: 280px;
  background: rgba(20, 26, 46, 0.98); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4); z-index: 200;
}

.nav__dropdown.open .nav__dropdown-menu {
  display: block; animation: fadeInUp 0.15s ease both;
}

.nav__dropdown-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  transition: background 0.15s; text-decoration: none;
}

.nav__dropdown-item:hover { background: var(--bg-card-hover); }

.nav__dropdown-item__icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.nav__dropdown-item__icon--blue { background: var(--accent-glow); }

.nav__dropdown-item__icon--purple { background: #7b61ff18; }

.nav__dropdown-item__icon--orange { background: #ff8c0018; }

.nav__dropdown-item__icon--red { background: #ff3b3b18; }

.nav__dropdown-item__icon--yellow { background: #ffb02018; }

.nav__dropdown-item__text { flex: 1; }

.nav__dropdown-item__title {
  font-size: 14px; font-weight: 600; color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}

.nav__dropdown-item__title .tag {
  font-size: 10px; font-weight: 600; padding: 1px 6px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px;
}

.tag--new { background: #7b61ff25; color: var(--accent-secondary); }

.tag--free { background: #00e68a18; color: var(--success); }

.nav__dropdown-item__desc {
  font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4;
}

.nav__dropdown-divider { height: 1px; background: var(--border); margin: 4px 12px; }

@media (max-width: 768px) {
  .nav__dropdown-menu {
    position: static; transform: none; min-width: unset;
    background: transparent; backdrop-filter: none;
    border: none; box-shadow: none; padding: 0 0 0 8px;
    display: none;
  }
  .nav__dropdown.open .nav__dropdown-menu { display: block; animation: none; }
  .nav__dropdown-item { padding: 8px; }
  .nav__dropdown-divider { margin: 4px 8px; }
}

.nav__mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-primary); font-size: 24px;
  cursor: pointer; padding: 4px;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav__mobile-toggle { display: block; }
  .nav__cta-mobile { display: inline-flex !important; }
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.nav.scrolled {
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav__dropdown-item__icon--blue { background: #00d4ff18; }

.nav__dropdown-item__icon--green { background: #00e68a18; }

.tag--new { background: #ff3b3b25; color: var(--accent); }

.nav__logo:hover { color: var(--text-primary); }

.nav__dropdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.nav__dropdown-dot--blue { background: #3b82f6; }
.nav__dropdown-dot--purple { background: #a855f7; }
.nav__dropdown-dot--orange { background: #f97316; }
.nav__dropdown-dot--red { background: #ff3b3b; }
.nav__dropdown-dot--amber { background: #f5a623; }

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(4px);
}
