/* File UUID: 3e8b2f7a-6d4c-4a9e-8f1b-7c5e9d2f4a6b */
/**
 * ProtoFlow Marketing Site - Navigation Styles
 * Mega menu hover states, transitions, and mobile menu styling
 */

/* Mega Menu Dropdown Positioning */
.group:hover > div {
  pointer-events: auto;
}

/* Smooth backdrop blur for sticky nav */
nav {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Mobile menu slide animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
  max-height: 100vh;
  overflow-y: auto;
}

/* Mobile category accordion animation */
[id^="mobile-category-"] {
  transition: max-height 0.3s ease-in-out, opacity 0.2s ease-in-out;
}

/* Dropdown menu pointer events */
.group > div {
  pointer-events: none;
}

.group:hover > div {
  pointer-events: auto;
}

/* Custom scrollbar for mobile menu */
#mobile-menu::-webkit-scrollbar {
  width: 4px;
}

#mobile-menu::-webkit-scrollbar-track {
  background: hsl(var(--muted));
}

#mobile-menu::-webkit-scrollbar-thumb {
  background: hsl(var(--muted-foreground));
  border-radius: 2px;
}

/* Ensure dropdown stays above content */
nav .group > div {
  z-index: 100;
}

/* Hover state for dropdown links */
nav .group a:hover {
  transform: translateX(2px);
  transition: transform 0.2s ease;
}

/* Active page indicator dot */
nav a[class*="font-medium"]::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: hsl(var(--primary));
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Brand hover effect */
nav a[class*="text-xl"]:hover {
  transform: scale(1.02);
  transition: transform 0.2s ease;
}

/* Button focus states */
nav button:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* Dropdown shadow enhancement */
.group > div > div {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* Mobile menu close button rotation */
#mobile-menu-button svg {
  transition: transform 0.3s ease;
}

/* Category icon rotation */
[id^="mobile-icon-"] {
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  nav .container {
    max-width: 100%;
  }
}

/* Dark mode specific adjustments */
.dark .group > div > div {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  nav *,
  nav *::before,
  nav *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
