/**
 * Custom Navigation Styles - Bella Bathrooms
 * Enhanced mega menu and mobile menu styling
 */

/* Desktop Mega Menu Styles */
.mega-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 22rem;
}

.mega-menu a:hover {
    color: #723648;
}

.mega-menu .text-gray-900 {
    color: #0F0F23;
}

.mega-menu .text-gray-700 {
    color: #3F3F4F;
}

.mega-menu .text-primary {
    color: #723648;
}

/* Purple Light Background for Banners */
.bg-purple-light {
    background-color: rgba(142, 94, 136, 1);
}

.bg-purple {
    background-color: rgba(114, 54, 106, 1);
}

.bg-gray-light {
    background-color: rgba(244, 241, 244, 1);
}

.text-pink-accent {
    color: rgba(221, 49, 123, 1);
}

/* Mobile Menu Two-Panel Layout */
.mobile-menu-container {
    display: flex;
    height: 100%;
}

.mobile-menu-left {
    width: 150px;
    flex-shrink: 0;
    border-right: 1px solid #E5E7EB;
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-menu-right {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Category Button States */
.category-btn.active {
    background-color: rgba(244, 241, 244, 1);
    border-left: 2px solid rgba(114, 54, 106, 1);
    color: rgba(114, 54, 106, 1);
    font-weight: 600;
}

.category-btn {
    transition: all 0.2s ease;
}

.category-btn:hover {
    background-color: rgba(249, 250, 251, 1);
}

/* Subcategory List */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.subcategory-item {
    border-bottom: 1px solid #E5E7EB;
}

.subcategory-item a {
    display: block;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: #0F0F23;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.subcategory-item a:hover {
    background-color: #FFFFFF;
    color: rgba(114, 54, 106, 1);
}

/* View All Button */
.view-all-btn {
    position: sticky;
    top: 0;
    background-color: rgba(244, 241, 244, 1);
    border-bottom: 1px solid #E5E7EB;
    z-index: 10;
    padding: 1rem;
    font-weight: 600;
}

/* Icon Styling */
.category-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .mega-menu {
        min-height: auto;
    }

    .mega-menu .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .mega-menu .grid {
        gap: 2rem;
    }
}

/* Accessibility */
.mobile-menu-container a:focus,
.mobile-menu-container button:focus {
    outline: 2px solid rgba(114, 54, 106, 1);
    outline-offset: 2px;
}

/* Animation for menu transitions */
[x-cloak] {
    display: none;
}

/* Ensures proper scrolling without layout shift */
.overscroll-y-contain {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}
