/* Neo Security - CSS Dropdown Menus */

/* Dropdown container */
.nav-dropdown {
  position: relative;
}

/* Dropdown menu - hidden by default */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  padding: 8px 0;
  background: rgba(13, 16, 20, 0.98);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(8px);
  z-index: 100;
  backdrop-filter: blur(12px);
}

/* Show dropdown on hover */
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Dropdown menu items */
.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #d1d5db;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 209, 178, 0.1);
  color: #00d1b2;
}

/* Dropdown divider */
.nav-dropdown-divider {
  height: 1px;
  margin: 8px 12px;
  background: rgba(55, 65, 81, 0.5);
}

/* Arrow/caret for better UX - bridge between trigger and menu */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Mobile menu styles */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: #0d1014;
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(55, 65, 81, 0.5);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(55, 65, 81, 0.5);
}

.mobile-menu-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-close:hover {
  color: white;
}

.mobile-menu-nav {
  padding: 16px 0;
}

.mobile-menu-item {
  display: block;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #e5e7eb;
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.mobile-menu-item:hover {
  color: #00d1b2;
  background: rgba(0, 209, 178, 0.05);
}

.mobile-menu-submenu {
  padding-left: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.mobile-menu-submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #9ca3af;
  text-decoration: none;
}

.mobile-menu-submenu a:hover {
  color: #00d1b2;
}

/* Remove pointer-events-none from nav when using CSS dropdowns */
nav[role="navigation"] {
  pointer-events: auto !important;
}

nav[role="navigation"] > div {
  pointer-events: auto !important;
}
