/* ==========================================
 * Modern Navigation Menu Styles
 * Material Design inspired menu with smooth animations
 * ========================================== */

/* Desktop Menu Hover Effects */
.menu-item {
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-rust);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.menu-item:hover::before {
    width: 100%;
}

/* Mega Menu Animations */
.mega-menu-dropdown {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Material Icon Animations */
.material-icons-outlined {
    transition: all 0.3s ease;
}

.menu-item:hover .material-icons-outlined {
    transform: scale(1.1);
}

/* Dropdown Item Hover Glow */
.dropdown-item {
    position: relative;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    transform: translateX(4px);
    box-shadow: -4px 0 0 var(--color-rust);
}

/* Mobile Menu Slide Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.mobile-menu-open {
    animation: slideInRight 0.3s ease-out;
}

/* Mobile Accordion Smooth Toggle */
.mobile-menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu-content.active {
    max-height: 1000px;
}

/* Badge/Pill Styles for "NEW" or "HOT" indicators */
.menu-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-rust), #ff6b6b);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Header Scroll Effect */
.header-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Icon Badge (for notification counts) */
.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-rust);
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Menu Grid for Mega Menus */
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

/* Subtle Gradient Background for Dropdowns */
.dropdown-gradient {
    background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(249,250,251,1));
}

/* Material Design Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Focus States for Accessibility */
.menu-item:focus,
.dropdown-item:focus {
    outline: 2px solid var(--color-rust);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Icon Container with Background */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(var(--color-rust-rgb), 0.1);
    transition: all 0.3s ease;
}

.menu-item:hover .icon-container {
    background: var(--color-rust);
}

.menu-item:hover .icon-container .material-icons-outlined {
    color: white;
}
