/* ============================================
   Enliko — Mobile Bottom Navigation Bar
   Premium glassmorphism iOS-style nav
   ============================================ */

/* Bottom Nav Container */
.bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

/* Show on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        align-items: center;
        justify-content: space-around;
    }
    
    /* Add padding to body so content doesn't hide behind bottom nav */
    body {
        padding-bottom: 80px !important;
    }
}

/* Nav Item */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    min-width: 56px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Active state */
.bottom-nav-item.active {
    color: #7C3AED;
}

.bottom-nav-item.active i {
    text-shadow: 0 0 16px rgba(124, 58, 237, 0.6);
    transform: scale(1.1);
}

/* Active indicator dot */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(135deg, #7C3AED, #A855F7);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.4);
}

/* Hover/tap */
.bottom-nav-item:hover {
    color: rgba(255, 255, 255, 0.7);
}

.bottom-nav-item:active {
    transform: scale(0.92);
}

/* Center action button (Terminal) */
.bottom-nav-item.center-action {
    position: relative;
}

.bottom-nav-item.center-action i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    margin-top: -14px;
}

.bottom-nav-item.center-action span {
    margin-top: 2px;
}

.bottom-nav-item.center-action.active::before {
    display: none;
}

.bottom-nav-item.center-action:active i {
    transform: scale(0.9);
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.6);
}

/* Responsive: very small screens */
@media (max-width: 375px) {
    .bottom-nav-item {
        min-width: 48px;
        padding: 6px 6px;
        font-size: 9px;
    }
    
    .bottom-nav-item i {
        font-size: 18px;
    }
    
    .bottom-nav-item.center-action i {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Hide bottom nav for Telegram WebApp (uses its own nav) */
.tg-webapp .bottom-nav {
    display: none !important;
}

/* Toast position adjustment when bottom nav is visible */
@media (max-width: 768px) {
    .toast-notification {
        bottom: 90px !important;
    }
    
    .notification {
        bottom: 90px !important;
    }
}
