/* ===================================
   NEON HEADER STYLING - ROYALTECH
   Enhances Astra header with neon effects
   =================================== */

/* Header Container */
.site-header,
.ast-main-header-wrap,
.main-header-bar {
    background: linear-gradient(135deg, #0f172a, #1e293b) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 3px solid #1e38ef !important;
    box-shadow: 0 4px 20px rgba(30, 56, 239, 0.5) !important;
    transition: all 0.3s ease;
}


/* Sticky header enhancement */
.ast-header-sticked .site-header,
.ast-header-sticked .ast-main-header-wrap {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 6px 30px rgba(30, 56, 239, 0.3) !important;
}

/* Logo enhancement */
.site-logo-img,
.custom-logo {
    filter: brightness(1.1) drop-shadow(0 2px 8px rgba(30, 56, 239, 0.2));
    transition: all 0.3s ease;
}

.site-logo-img:hover,
.custom-logo:hover {
    filter: brightness(1.2) drop-shadow(0 4px 12px rgba(30, 56, 239, 0.4));
    transform: scale(1.05);
}

/* Navigation Links */
.main-header-menu a,
.ast-header-navigation a,
.main-navigation a {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0 15px !important;
    transition: all 0.3s ease;
    position: relative;
}



/* Neon underline effect on hover */
.main-header-menu a::after,
.ast-header-navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #1e38ef, #f8bb2f);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(30, 56, 239, 0.5);
}

.main-header-menu a:hover::after,
.ast-header-navigation a:hover::after {
    width: 100%;
}

.main-header-menu a:hover,
.ast-header-navigation a:hover {
    color: #f8bb2f !important;
    text-shadow: 0 0 10px rgba(248, 187, 47, 0.5);
}


/* Active/Current menu item */
.main-header-menu .current-menu-item>a,
.ast-header-navigation .current-menu-item>a {
    color: #1e38ef !important;
    font-weight: 800 !important;
}

.main-header-menu .current-menu-item>a::after,
.ast-header-navigation .current-menu-item>a::after {
    width: 100%;
}

/* Dropdown Menu */
.main-header-menu .sub-menu,
.ast-header-navigation .sub-menu {
    background: linear-gradient(135deg, #1e293b, #0f172a) !important;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(248, 187, 47, 0.3) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(30, 56, 239, 0.5) !important;
    padding: 10px 0 !important;
}

/* Submenu Items */
.main-header-menu .sub-menu a,
.ast-header-navigation .sub-menu a {
    color: #cbd5e1 !important;
    padding: 12px 25px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle separator */
    transition: all 0.3s ease;
    display: block;
    position: relative;
    overflow: hidden;
}

.main-header-menu .sub-menu a:hover,
.ast-header-navigation .sub-menu a:hover {
    background: rgba(30, 56, 239, 0.1) !important;
    color: #fff !important;
    padding-left: 35px !important;
    /* Slide Effect */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.main-header-menu .sub-menu a::before,
.ast-header-navigation .sub-menu a::before {
    content: '➤';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: #f8bb2f;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.main-header-menu .sub-menu a:hover::before,
.ast-header-navigation .sub-menu a:hover::before {
    left: 15px;
    /* Icon slides in */
    opacity: 1;
}

/* === HIGHLIGHT 'SHOP' MENU ITEM === */
/* Targeting both potential URLs for safety */
.main-header-menu a[href*="shop"],
.main-header-menu a[href*="product-for-your-needs"],
.ast-header-navigation a[href*="shop"],
.ast-header-navigation a[href*="product-for-your-needs"] {
    background: rgba(248, 187, 47, 0.1);
    border: 1px solid #f8bb2f;
    border-radius: 50px;
    color: #f8bb2f !important;
    padding: 8px 25px !important;
    box-shadow: 0 0 15px rgba(248, 187, 47, 0.2);
    margin-left: 10px;
}

.main-header-menu a[href*="shop"]:hover,
.main-header-menu a[href*="product-for-your-needs"]:hover,
.ast-header-navigation a[href*="shop"]:hover,
.ast-header-navigation a[href*="product-for-your-needs"]:hover {
    background: #f8bb2f !important;
    color: #000 !important;
    box-shadow: 0 0 30px rgba(248, 187, 47, 0.6);
    transform: translateY(-3px);
}

/* Remove underline from CTA button */
.main-header-menu a[href*="shop"]::after,
.main-header-menu a[href*="product-for-your-needs"]::after,
.ast-header-navigation a[href*="shop"]::after,
.ast-header-navigation a[href*="product-for-your-needs"]::after {
    display: none !important;
}


/* Header Buttons */
.ast-header-button,
.ast-custom-button,
.main-header-bar .button,
.main-header-bar .ast-button {
    background: linear-gradient(135deg, #1e38ef, #4361ee) !important;
    color: #fff !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(30, 56, 239, 0.4) !important;
    transition: all 0.3s ease;
    border: none !important;
}

.ast-header-button:hover,
.ast-custom-button:hover,
.main-header-bar .button:hover,
.main-header-bar .ast-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(30, 56, 239, 0.6) !important;
}

/* Mobile Menu Toggle */
.ast-mobile-menu-buttons,
.menu-toggle {
    color: #1e38ef !important;
    border: 2px solid #1e38ef !important;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.ast-mobile-menu-buttons:hover,
.menu-toggle:hover {
    background: #1e38ef !important;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(30, 56, 239, 0.5);
}

/* Mobile Menu */
.ast-mobile-popup-drawer {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(20px);
}

.ast-mobile-popup-drawer .main-header-menu a {
    color: #cbd5e1 !important;
    border-bottom: 1px solid rgba(30, 56, 239, 0.2);
}

.ast-mobile-popup-drawer .main-header-menu a:hover {
    color: #f8bb2f !important;
    background: rgba(30, 56, 239, 0.1);
}

/* Search Icon */
.ast-search-icon,
.ast-header-search {
    color: #1e38ef !important;
}

.ast-search-icon:hover {
    color: #f8bb2f !important;
}

/* Cart Icon (WooCommerce) */
.ast-cart-menu-wrap,
.ast-header-woo-cart {
    color: #1e38ef !important;
}

.ast-cart-menu-wrap:hover {
    color: #f8bb2f !important;
}

/* Responsive adjustments */
@media (max-width: 921px) {

    .site-header,
    .ast-main-header-wrap {
        padding: 10px 20px !important;
    }
}

/* Neon glow animation for header */
@keyframes headerGlow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(30, 56, 239, 0.2);
    }

    50% {
        box-shadow: 0 4px 25px rgba(30, 56, 239, 0.4);
    }
}

.site-header {
    animation: headerGlow 3s ease-in-out infinite;
}