/**
 * SCARAL UI System - Bottom Navigation Styles
 * 📱 App-Grade Glassmorphism & Mobile Interaction Layer
 * Unified with Index Mobile Design System (v7.5.9)
 */

.sc-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(70px + env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.9);
    /* Darker for better contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
    /* Hidden by default on desktop */
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 10000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #94a3b8;
    gap: 5px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 8px 0;
}

.nav-tab i {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.nav-tab span {
    font-size: 0.75rem;
    /* Matched to homepage original */
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-tab.active {
    color: #a855f7;
    /* SCARAL Accent Purple - Unified */
}

.nav-tab.active i {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.5));
}

.nav-tab:active {
    transform: scale(0.92);
    opacity: 0.8;
}

/* 📱 Mobile Media Query Governance */
@media (max-width: 1024px) {
    .sc-bottom-nav {
        display: flex;
    }

    /* Ensure body has padding to not hide content under the nav */
    body {
        padding-bottom: 80px !important;
    }
}