/* Menu Container - attaches to bottom of topbar */
.secondary-menu-container {
    width: 100%;
    background: #f7f7f7; /* Light orange background */
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 
                0 4px 5px 0 rgba(0,0,0,0.14), 
                0 1px 10px 0 rgba(0,0,0,0.12); /* Material shadow */
    border-top: 1px solid #FFE0B2; /* Light orange border */
    margin-bottom: 20px;
    scrollbar-width: none;
}

/* Centered Material Menu */
.secondary-menu {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
}

/* Material Menu Items */
.secondary-menu-item {
    position: relative;
    flex: 0 0 auto; /* Prevent items from shrinking */
    display: inline-block;
    padding: 16px 24px;
    margin: 0;
    color: #E65100; /* Dark orange text */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Material Design ripple effect */
.secondary-menu-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(230, 81, 0, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.secondary-menu-item:hover {
    background: #FFE0B2; /* Medium light orange on hover */
}

.secondary-menu-item:hover::after {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Active Menu Item */
.secondary-menu-item.active {
    color: #BF360C; /* Darker orange for active */
    background: #FFCC80; /* Slightly darker background for active */
}

/* Bottom indicator for active item */
.secondary-menu-item.active::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #E65100;
}

/* Mobile styles with horizontal scroll */
@media (max-width: 768px) {
    .secondary-menu-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .secondary-menu {
        display: inline-flex; /* Change to inline-flex for proper scrolling */
        justify-content: flex-start;
        min-width: 100%;
        padding: 0 16px;
    }
    
    /* Custom scrollbar styling */
    .secondary-menu-container::-webkit-scrollbar {
        display: none;
    }
    
    .secondary-menu-container::-webkit-scrollbar-track {
        background: #FFE0B2;
    }
    
    .secondary-menu-container::-webkit-scrollbar-thumb {
        background: #E65100;
        border-radius: 2px;
    }
    
    /* Firefox scrollbar */
    .secondary-menu-container {
        scrollbar-width: thin;
        scrollbar-color: #E65100 #FFE0B2;
    }
}