/* ========================================
   MOBILE BOTTOM NAVIGATION
   ======================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(26, 32, 44, 0.95) 0%, rgba(26, 32, 44, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    padding-bottom: env(safe-area-inset-bottom, 0.5rem);
    display: none;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: #fff;
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 3px 3px;
    animation: slideDown 0.3s ease;
}

.bottom-nav-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-label {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Show on mobile only */
@media (max-width: 768px) {
    .bottom-nav {
        display: block;
    }

    /* Add padding to body to prevent content from being hidden */
    body {
        padding-bottom: 70px;
    }

    /* Hide main navigation on mobile if exists */
    .desktop-nav {
        display: none;
    }
}

/* Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* iOS safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    }
}

/* Ripple effect on tap (mobile) */
.bottom-nav-item {
    overflow: hidden;
}

.bottom-nav-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.bottom-nav-item:active::after {
    width: 100px;
    height: 100px;
}