/* CENTRALIZED NAVIGATION STYLES - Mercedes-inspired professional navigation */

/* Navigation Base Styles */
.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.w-full {
  width: 100%;
}

.z-40 {
  z-index: 40;
}

.bg-black {
  background-color: #000000;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* Container Styles - EXACT copy from homepage */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* Navigation Links - EXACT copy from homepage */
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.nav-link:hover {
  color: #FFD700;
}

.products-nav-link {
  color: white;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.products-nav-link:hover {
  color: #FFD700;
}

/* Dropdown Styles */
.dropdown,
.products-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content,
.products-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 250px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 8px;
  padding: 8px 0;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  left: 0;
}

.products-dropdown-content {
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
}

/* CRITICAL: Override ALL inline styles for dropdown items */
.dropdown-content a,
.products-dropdown-content a {
  color: var(--blue-darkest) !important;
  padding: 12px 16px !important;
  text-decoration: none !important;
  display: block !important;
  font-size: 14px !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  border-radius: 4px !important;
  margin: 2px 8px !important;
}

/* CRITICAL: Hover effects with high specificity */
.dropdown-content a:hover,
.products-dropdown-content a:hover,
.dropdown-content a:focus,
.products-dropdown-content a:focus {
  background-color: #f1f5f9 !important;
  cursor: pointer !important;
  transform: translateX(2px) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Ensure pointer cursor for all dropdown triggers */
.dropdown .nav-link,
.products-dropdown .products-nav-link {
  cursor: pointer !important;
  user-select: none;
}

/* Secondary Navigation Bar (Blue Bar) Compact Styling */
.secondary-nav {
  background-color: #0A1A8F;
  padding: 8px 0;
}

.secondary-nav .navbar-container {
  max-width: 800px;
  justify-content: center;
}

.secondary-nav .nav-links {
  gap: 25px;
  justify-content: center;
  width: auto;
}

.secondary-nav .nav-link {
  font-weight: 400;
  font-size: 14px;
  padding: 4px 8px;
}

.btn-blue {
  background-color: rgba(255,255,255,0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-blue:hover {
  background-color: rgba(255,255,255,0.3);
}

/* MOBILE RESPONSIVE DROPDOWN FIXES */
@media (max-width: 768px) {
  .dropdown-content,
  .products-dropdown-content {
    min-width: 200px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
  }
  
  .products-dropdown-content {
    transform: translateX(-50%) translateY(-10px);
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .navbar-container {
    padding: 0 10px;
    max-width: 900px;
  }
  
  .logo {
    font-size: 18px;
  }
  
  .logo img {
    height: 35px;
  }
}

@media (max-width: 480px) {
  .dropdown-content,
  .products-dropdown-content {
    min-width: 180px;
    font-size: 13px;
  }
  
  .dropdown-content a,
  .products-dropdown-content a {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .navbar-container {
    padding: 0 10px;
  }
  
  .logo {
    font-size: 16px;
  }
  
  .logo img {
    height: 30px;
    margin-right: 8px;
  }
}

/* Accessibility improvements */
.dropdown .nav-link:focus,
.products-dropdown .products-nav-link:focus {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

.dropdown-content a:focus,
.products-dropdown-content a:focus {
  outline: 2px solid #001D97;
  outline-offset: -2px;
}

/* Animation improvements */
.dropdown-content.show,
.products-dropdown-content.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.products-dropdown-content.show {
  transform: translateX(-50%) translateY(0);
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .dropdown-content a,
  .products-dropdown-content a {
    padding: 14px 16px !important;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .dropdown-content,
  .products-dropdown-content {
    border: 2px solid #000;
  }
  
  .dropdown-content a:hover,
  .products-dropdown-content a:hover {
    background-color: #000 !important;
    color: #fff !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .dropdown-content,
  .products-dropdown-content {
    transition: none;
  }
  
  .dropdown-content a,
  .products-dropdown-content a {
    transition: none !important;
  }
}
