/* ========================================
   TMISOLAR Mega Menu Styles
   ======================================== */

/* Mega Menu Container */
.mega-menu {
  position: relative;
}

.mega-menu-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #13B8FF;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  cursor: pointer;
  transition: color 0.2s;
}

.mega-menu-trigger:hover,
.mega-menu-trigger.active {
  color: #FFF;
}

.mega-menu-trigger::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}

.mega-menu-trigger:hover::after,
.mega-menu-trigger.active::after {
  width: 100%;
}

/* Arrow icon */
.mega-menu-trigger .arrow {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s;
  margin-left: 2px;
}

.mega-menu:hover .mega-menu-trigger .arrow,
.mega-menu.active .mega-menu-trigger .arrow {
  transform: rotate(180deg);
}

/* Mega Menu Dropdown */
.mega-menu-dropdown {
  position: absolute;
  top: 110%;
  left: 50%;
  transform: translateX(-50%) translateY(0px); 
  min-width: 1200px;
  background: #0F1E35;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,200,150,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(0,200,150,0.1);
  padding: 1.5rem;
  border-radius: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 1001;
  display: flex;
  gap: 1.5rem;
}

/* Hover show effect */
.mega-menu:hover .mega-menu-dropdown,
.mega-menu.active .mega-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(12px);
}

/* Inner content column */
.mega-menu-column {
  flex: 1;
  width: 180px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  backdrop-filter: blur(4px);
}

/* Title style */
.mega-menu-column h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0,200,150,0.35);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mega Menu Items */
.mega-menu-items {
  list-style: none;
}

.mega-menu-items li {
  margin-bottom: 0.25rem;
}

.mega-menu-items a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  color: #C8D5E4;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Link hover effect */
.mega-menu-items a:hover {
  background: rgba(0, 200, 150, 0.15);
  color: #FFFFFF;
  padding-left: 1.25rem;
}

/* Icon style */
.mega-menu-items a .item-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.2s;
}

/* Icon hover effect */
.mega-menu-items a:hover .item-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
  border-color: transparent;
}

/* Text container */
.mega-menu-items .item-text {
  flex: 1;
}

.mega-menu-items .item-title {
  font-weight: 500;
  color: #E0EAF4;
  font-size: 0.875rem;
  line-height: 1.3;
}

.mega-menu-items .item-desc {
  font-size: 0.75rem;
  color: #6B7E96;
  margin-top: 2px;
}

/* Hover color correct */
.mega-menu-items a:hover .item-title {
  color: #FFFFFF;
}

/* Featured Product in Mega Menu */
.mega-menu-featured {
  background: linear-gradient(135deg, #071829, #0A2440);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  min-width: 200px;
  border: 1px solid rgba(0,200,150,0.15);
}

.mega-menu-featured .featured-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.mega-menu-featured h5 {
  font-size: 0.95rem;
  color: #FFFFFF;
  margin-bottom: 0.5rem;
}

.mega-menu-featured p {
  font-size: 0.75rem;
  color: #8A9BB0;
  margin-bottom: 0.75rem;
}

.mega-menu-featured .featured-link {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(0,200,150,0.3);
}

.mega-menu-featured .featured-link:hover {
  background: var(--primary-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 16px rgba(0,200,150,0.4);
}

/* Mega Menu Animation */
@keyframes megaMenuFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Mobile Mega Menu Styles */
@media (max-width: 968px) {
  .mega-menu {
    position: relative;
  }

  .mega-menu-trigger {
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    color: #A8B8CC;
  }

  .mega-menu-trigger .arrow {
    transition: transform 0.3s;
  }

  .mega-menu.active .mega-menu-trigger .arrow {
    transform: rotate(180deg);
  }

  .mega-menu-dropdown {
    position: static;
    transform: none;
    min-width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem;
    background: rgba(0,0,0,0.2);
    border: none;
    display: none;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
    visibility: visible;
  }

  .mega-menu.active .mega-menu-dropdown {
    display: flex;
  }

  .mega-menu-column {
    min-width: 100%;
  }

  .mega-menu-column h4 {
    font-size: 0.9rem;
    color: var(--primary);
    border-bottom-color: rgba(0,200,150,0.25);
    margin-bottom: 0.75rem;
  }

  .mega-menu-items a {
    color: #A8B8CC;
    padding: 0.5rem 0.75rem;
  }

  .mega-menu-items a:hover {
    background: rgba(0,200,150,0.1);
    color: #FFF;
  }

  .mega-menu-items a .item-icon {
    background: rgba(255,255,255,0.08);
  }

  .mega-menu-items a:hover .item-icon {
    background: var(--primary);
    color: #fff;
  }

  .mega-menu-items .item-title {
    color: #C8D5E4;
  }

  .mega-menu-items a:hover .item-title {
    color: #FFF;
  }

  .mega-menu-featured {
    display: none;
  }


}
