/* ========================================
   Mega Navigation Styles
   ======================================== */

/* Mega Menu Container */
.nav-menu > li {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 850px;
    max-width: calc(100vw - 40px);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 
                0 8px 24px rgba(233, 30, 99, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    padding: 2rem;
    margin-top: 1rem;
    border: 1px solid rgba(233, 30, 99, 0.2);
    box-sizing: border-box;
    overflow: hidden;
}

/* Show Mega Menu on Hover */
.nav-menu > li:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menu Grid Layout */
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Single Column Layout */
.mega-menu-grid.single-col {
    grid-template-columns: 1fr;
    max-width: 500px;
}

/* Three Column Layout */
.mega-menu-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Mega Menu Column */
.mega-menu-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Column Header */
.mega-menu-column h3 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #e91e63;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-column h3 i {
    font-size: 1rem;
}

/* Mega Menu Links */
.mega-menu-link {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.mega-menu-link:hover {
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.08) 0%, rgba(240, 98, 146, 0.08) 100%);
    border-color: rgba(233, 30, 99, 0.2);
    transform: translateX(4px);
}

/* Link Icon - Hexagon Shape */
.mega-menu-link-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    position: relative;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.mega-menu-link:hover .mega-menu-link-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(233, 30, 99, 0.4);
}

/* Link Content */
.mega-menu-link-content {
    flex: 1;
}

.mega-menu-link-content strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.mega-menu-link:hover .mega-menu-link-content strong {
    color: #e91e63;
}

.mega-menu-link-content span {
    display: block;
    font-size: 0.8125rem;
    color: #718096;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Featured Item */
.mega-menu-featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    padding: 1.5rem;
    border-radius: 12px;
    color: white;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.mega-menu-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.mega-menu-featured h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.mega-menu-featured h4 i {
    font-size: 1.3rem;
}

.mega-menu-featured p {
    font-size: 0.875rem;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    width: 100%;
}

/* Featured Item Button */
.mega-menu-featured .btn {
    background: white !important;
    color: #e91e63 !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 100%;
}

.mega-menu-featured .btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
    background: white !important;
    color: #e91e63 !important;
}

.mega-menu-featured .btn:focus {
    outline: 3px solid rgba(233, 30, 99, 0.5) !important;
    outline-offset: 2px;
}

.mega-menu-featured .btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Hover Indicator - Down Arrow */
.nav-link.has-mega {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Underline using ::before */
.nav-link.has-mega::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #e91e63, #f06292);
    transition: all 0.3s ease;
    z-index: 1;
}

.nav-link.has-mega:hover::before {
    width: 100%;
}

/* Down arrow using ::after - inline element */
.nav-link.has-mega::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    margin-left: -0.1rem;
    display: inline-block;
}

.nav-link.has-mega:hover::after {
    opacity: 1;
}

/* Mobile: Hide Mega Menu */
@media (max-width: 968px) {
    .mega-menu {
        display: none !important;
    }
    
    .nav-link.has-mega::after {
        display: none;
    }
}

/* Tablet Adjustments */
@media (min-width: 969px) and (max-width: 1200px) {
    .mega-menu {
        width: 750px;
        max-width: calc(100vw - 40px);
        padding: 1.75rem;
    }
    
    .mega-menu-grid {
        gap: 2rem;
    }
    
    .mega-menu-link {
        padding: 0.75rem;
    }
    
    .mega-menu-link-icon {
        width: 45px;
        height: 45px;
        min-width: 45px;
        font-size: 1.15rem;
    }
    
    .mega-menu-featured {
        padding: 1.25rem;
    }
    
    .mega-menu-featured p {
        font-size: 0.8125rem;
    }
    
    .mega-menu-featured .btn {
        font-size: 0.8125rem;
        padding: 0.5rem 1rem;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .mega-menu {
        width: 950px;
        max-width: calc(100vw - 80px);
    }
    
    .mega-menu-featured {
        padding: 1.75rem;
    }
}

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

.mega-menu.show {
    animation: megaMenuFadeIn 0.3s ease forwards;
}

/* Badge */
.mega-menu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(233, 30, 99, 0.1);
    color: var(--primary);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

/* Separator */
.mega-menu-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(233, 30, 99, 0.2) 50%, transparent 100%);
    margin: 1.5rem 0;
    grid-column: 1 / -1;
}

/* Mega Menu Footer */
.mega-menu-footer {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(233, 30, 99, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.mega-menu-footer-text {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.mega-menu-footer-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap 0.2s ease;
}

.mega-menu-footer-link:hover {
    gap: 0.625rem;
}
