/* Bottom Menu Styles */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out;
}

.bottom-menu-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 20px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    gap: 8px;
}

.bottom-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 20px;
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
    border-radius: 10px;
    position: relative;
    min-width: 80px;
    flex: 1;
    max-width: 150px;
}

.bottom-menu-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: rgba(0, 132, 237, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    opacity: 0;
}

.bottom-menu-item:hover {
    color: var(--text-white);
    transform: translateY(-2px);
}

.bottom-menu-item:hover::before {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.bottom-menu-item.active {
    color: var(--primary-color);
}

.bottom-menu-item.active::before {
    width: 100%;
    height: 100%;
    opacity: 1;
    background: rgba(0, 132, 237, 0.15);
}

.bottom-menu-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.menu-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.bottom-menu-item:hover .menu-icon {
    transform: scale(1.1);
}

.bottom-menu-item.active .menu-icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(0, 132, 237, 0.5));
}

.menu-label {
    font-size: 11px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: font-weight 0.3s ease;
}

.bottom-menu-item.active .menu-label {
    font-weight: 600;
}

/* Ripple Effect */
.bottom-menu-item {
    overflow: hidden;
}

.bottom-menu-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.bottom-menu-item:active::after {
    width: 300px;
    height: 300px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bottom-menu-container {
        padding: 5px 12px;
        padding-bottom: calc(5px + env(safe-area-inset-bottom));
        gap: 4px;
    }
    
    .bottom-menu-item {
        padding: 5px 16px;
        min-width: 70px;
    }
    
    .menu-icon {
        font-size: 18px;
        width: 24px;
        height: 24px;
    }
    
    .menu-label {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .bottom-menu-container {
        padding: 4px 8px;
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
        gap: 2px;
    }
    
    .bottom-menu-item {
        padding: 4px 12px;
        min-width: 60px;
        gap: 2px;
    }
    
    .menu-icon {
        font-size: 16px;
        width: 22px;
        height: 22px;
    }
    
    .menu-label {
        font-size: 9px;
    }
}

/* Adjust main content to account for bottom menu */
.main-content {
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .main-content {
        padding-bottom: 55px;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-bottom: 50px;
    }
}

/* Animation */
@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bottom-menu-item {
    animation: menuItemFadeIn 0.4s ease forwards;
}

.bottom-menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.bottom-menu-item:nth-child(2) {
    animation-delay: 0.2s;
}

.bottom-menu-item:nth-child(3) {
    animation-delay: 0.3s;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .bottom-menu {
        background: var(--bg-header);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bottom-menu-item,
    .menu-icon,
    .menu-label {
        transition: none;
        animation: none;
    }
}

