/* ========================================
   MEGA MENU STYLES
   ======================================== */

/* Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 95vw;
    max-width: 1100px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 10px;
}

.has-mega-menu:hover .mega-menu,
.mega-menu:hover {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Arrow indicator */
.has-mega-menu::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

/* Mega Menu Inner */
.mega-menu-inner {
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

/* Mega Category */
.mega-category {
    border-left: 3px solid transparent;
    padding-left: 1rem;
    transition: border-color 0.3s ease;
}

.mega-category:hover {
    border-left-color: #3498db;
}

.mega-category h3 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-category h3 .icon {
    font-size: 1.2rem;
}

.mega-category h3 .count {
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: normal;
}

.mega-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-category li {
    padding: 0.4rem 0;
}

.mega-category a {
    color: #555;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.mega-category a:hover {
    color: #3498db;
    transform: translateX(3px);
}

.view-all {
    color: #3498db;
    font-weight: 500;
    margin-top: 0.8rem;
    display: inline-block;
    font-size: 0.85rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* Mega Footer */
.mega-footer {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid #ecf0f1;
}

.mega-footer-item {
    text-align: center;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.mega-footer-item strong {
    color: #2c3e50;
    margin-right: 1rem;
}

.mega-footer-item a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.mega-footer-item a:hover {
    color: #3498db;
}

/* Hover Effects */
.mega-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}

/* Animation for menu items */
.has-mega-menu:hover .mega-category {
    animation: fadeInUp 0.4s ease forwards;
}

.mega-column:nth-child(1) .mega-category { animation-delay: 0.1s; }
.mega-column:nth-child(2) .mega-category { animation-delay: 0.15s; }
.mega-column:nth-child(3) .mega-category { animation-delay: 0.2s; }
.mega-column:nth-child(4) .mega-category { animation-delay: 0.25s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .mega-menu {
        width: 90vw;
    }
    
    .mega-menu-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mega-menu {
        display: none; /* Hide mega menu on mobile, use mobile menu instead */
    }
}