/* Header ES (megamenu) specific styles */

.menu {
  /* Do not force display here so responsive rules in style.css can hide/show the menu
     on small screens. display:flex will be applied only on wider viewports below. */
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Ensure the menu is laid out horizontally on desktop */
@media (min-width: 961px) {
  .menu {
    display: flex;
  }
}

.menu a {
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  transition: all 0.3s ease;
}

.menu a:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(0,212,255,0.4);
  transform: translateY(-1px);
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-item .dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.menu-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 280px;
  background: rgba(17,21,33,0.98);
  /* Fallback solid/semi-opaque color for browsers without backdrop-filter */
  background-color: rgba(17,21,33,0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  border: 1px solid rgba(0,212,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(0,212,255,0.15);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.menu-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  margin: 2px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.02);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background: rgba(0,212,255,0.1);
  border-color: rgba(0,212,255,0.4);
  transform: translateX(4px);
}

.dropdown-menu a.agents-link-gradient {
  background: linear-gradient(135deg, #D4AF37, #A855F7) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #D4AF37 !important;
  font-weight: 600;


  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  display: block;
}

.dropdown-menu a.agents-link-gradient:hover {
  background: linear-gradient(135deg, #FFD700, #C084FC) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: #FFD700 !important;
}
