/* ============================================
   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: color-mix(in srgb, var(--ink-900, #08090C) 86%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid var(--line, rgba(255,255,255,0.06));
    padding: 6px 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.45);
}

/* 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;
    /* .45 alpha measured 4.49:1 against the bar — just under AA. */
    color: rgba(255, 255, 255, 0.62);
    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: var(--acc, #9950F0);
}

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

/* Active indicator dot */
.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--acc, #9950F0);
    border-radius: 0 0 3px 3px;
    box-shadow: none;
}

/* 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: var(--acc, #9950F0);
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    box-shadow: var(--e-2, 0 2px 4px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3));
    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: var(--e-1, 0 1px 2px rgba(0,0,0,.4));
}

/* 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;
    }
}
