/* ─── GLOBAL FIXES ────────────────────────────────────────────────── */
/* Prevent layout shift ("alargada") during navigation caused by scrollbar appearance */
html {
    overflow-y: scroll;
    overflow-x: hidden;
}

/* ─── BOTTOM NAV GLOBAL (Premium App Style) ────────────────────── */
nav.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 448px;
    margin: 0 auto;
    background: rgba(13, 17, 23, 0.85); /* Dark background with opacity */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border */
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
}

nav.bottom-nav .nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 4rem; /* Slightly taller to accommodate text */
    padding: 0 5px;
}

nav.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #4b5563; /* Inactive: Tailwind gray-600 */
    text-decoration: none;
    font-size: 1.3rem; /* Sized for interaction */
    transition: color 0.15s ease-in-out;
    -webkit-tap-highlight-color: transparent;
    gap: 0.2rem;
}

nav.bottom-nav .nav-item span {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* Painted / Active State */
nav.bottom-nav .nav-item.active {
    color: #f97316; /* Neon Orange active state */
}

nav.bottom-nav .nav-item.active span {
    opacity: 1;
}

/* Fast CSS-only touch feedback if JS is slow */
nav.bottom-nav .nav-item:active i {
    transform: scale(0.85);
    transition: transform 0.05s;
}

/* Smooth return transition */
nav.bottom-nav .nav-item i {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* JS-triggered click animation */
nav.bottom-nav .nav-item.nav-clicking i {
    animation: tap-bounce 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes tap-bounce {
    0% { transform: scale(1); }
    50% { transform: scale(0.70); }
    100% { transform: scale(1); }
}
