/* HighPass Mega Menu Styles */

/* Basic menu layout - DESKTOP ONLY */
@media (min-width: 1025px) {
    .hp-main-menu {
        --hp-mega-link-color: #ffffff;
        --hp-mega-link-hover: #6b7cff;
        --hp-mega-dropdown-bg: rgba(20, 25, 60, 0.98);
        --hp-mega-padding: 0.75rem 1.25rem;
        --hp-mega-gap: 0.5rem;
        --hp-mega-radius: 6px;
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: var(--hp-mega-gap);
    }

    .hp-main-menu > li {
        position: relative;
    }

    .hp-main-menu > li > a {
        display: block;
        padding: var(--hp-mega-padding);
        color: var(--hp-mega-link-color);
        text-decoration: none;
        border-radius: var(--hp-mega-radius);
        transition: all 0.3s ease;
    }

    .hp-main-menu > li > a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--hp-mega-link-hover);
    }

    /* Regular dropdown */
    .hp-main-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--hp-mega-dropdown-bg);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 0.5rem;
        min-width: 200px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        list-style: none;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        width: auto;
        max-width: none;
        margin: 0;
    }

    .hp-main-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .hp-main-menu .sub-menu li {
        margin: 0;
        width: 100%;
    }

    .hp-main-menu .sub-menu a {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--hp-mega-link-color);
        text-decoration: none;
        border-radius: 6px;
        transition: background 0.2s;
        white-space: nowrap;
    }

    .hp-main-menu .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--hp-mega-link-hover);
    }
}

/* Elementor Template Panel */
.hp-mega-template-panel {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--hp-mega-dropdown-bg);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.hp-main-menu li:hover > .hp-mega-template-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* MEGA MENU */
.mega-menu-item {
    position: static;
}

.mega-menu-item > .sub-menu {
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    display: grid;
    min-width: auto;
    padding: 2rem;
    gap: 2rem;
}

.mega-menu-item:hover > .sub-menu {
    transform: translateX(-50%) translateY(0);
}

/* Mega menu widths */
.mega-width-default > .sub-menu {
    max-width: 800px;
}

.mega-width-wide > .sub-menu {
    max-width: 1000px;
}

.mega-width-full > .sub-menu {
    left: 0;
    right: 0;
    max-width: 100%;
    transform: translateY(-10px);
}

.mega-width-full > .hp-mega-template-panel {
    left: 0;
    right: 0;
    width: 100%;
    transform: translateY(-10px);
}

.mega-width-full:hover > .sub-menu {
    transform: translateY(0);
}

/* Mega menu columns */
.mega-cols-2 > .sub-menu { grid-template-columns: repeat(2, 1fr); }
.mega-cols-3 > .sub-menu { grid-template-columns: repeat(3, 1fr); }
.mega-cols-4 > .sub-menu { grid-template-columns: repeat(4, 1fr); }
.mega-cols-5 > .sub-menu { grid-template-columns: repeat(5, 1fr); }
.mega-cols-6 > .sub-menu { grid-template-columns: repeat(6, 1fr); }

/* Mega menu items */
.mega-menu-item .sub-menu > li {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding-right: 2rem;
}

.mega-menu-item .sub-menu > li:last-child {
    border-right: none;
    padding-right: 0;
}

.mega-menu-item .sub-menu > li > a {
    font-weight: 600;
    font-size: 1rem;
    padding: 0 0 1rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
}

/* Nested items in mega menu */
.mega-menu-item .sub-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mega-menu-item .sub-menu .sub-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
}

/* Badge System */
.hp-menu-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    line-height: 1;
    vertical-align: middle;
    letter-spacing: 0.5px;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Badge Styles - Predefined */
.hp-badge-hot {
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 65, 108, 0.4);
}

.hp-badge-new {
    background: linear-gradient(135deg, #56ab2f, #a8e063);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(86, 171, 47, 0.4);
}

.hp-badge-updated {
    background: linear-gradient(135deg, #2193b0, #6dd5ed);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(33, 147, 176, 0.4);
}

.hp-badge-pro {
    background: linear-gradient(135deg, #7f00ff, #e100ff);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(127, 0, 255, 0.4);
}

.hp-badge-sale {
    background: linear-gradient(135deg, #f2994a, #f2c94c);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(242, 153, 74, 0.4);
}

.hp-badge-custom {
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Badge in dropdown menus */
.hp-main-menu .sub-menu .hp-menu-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    margin-left: 0.4rem;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    /* Mobile styles handled by inline CSS in widget */
}
    