/* 
 * 🏛️ ATLAS-CIV-CLICKER | UI: PWA BOTTOM NAVIGATION (Nova v4.0 Elite)
 * -----------------------------------------------------------------------------
 * MENSCH: Dieses Modul optimiert die untere Navigationsleiste für Mobilgeräte.
 * Es sorgt für eine perfekte Verteilung der Elemente und maximale Platzeffizienz.
 * 
 * KI: @ui-pwa @mobile-nav @elite-design @flex-layout
 * -----------------------------------------------------------------------------
 */

/* 🏛️ MASTER CONTAINER: Die Basis der PWA-Steuerung */
.mobile-bottom-nav {
    display: none; /* Standardmäßig aus, Aktivierung via branding.css Media Query */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(65px + env(safe-area-inset-bottom, 0px));
    background: var(--color-glass-base);
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: space-around;
    align-items: flex-start; /* Fokus auf den oberen Bereich der Leiste */
    padding: 8px 5px env(safe-area-inset-bottom, 0px) 5px;
    z-index: 9999;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

/* 🏛️ NAV ITEM: Der einzelne Interaktions-Punkt */
.mobile-nav-item {
    flex: 1 1 0px; /* MENSCH: Erlaubt echtes Schrumpfen bis auf 0 */
    min-width: 0; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 4px 0;
}

@media (max-width: 360px) {
    .mobile-nav-item span:last-child {
        font-size: 0.55rem !important;
        letter-spacing: -0.5px !important;
    }
}

/* 🏛️ ICON: Das visuelle Zentrum */
.mobile-nav-item .material-symbols-outlined {
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

/* 🏛️ LABEL: Kompakte Typografie (Option A: Maximale Breite) */
.mobile-nav-item span:not(.material-symbols-outlined) {
    font-size: 0.62rem; /* Extrem kompakt aber lesbar */
    font-weight: 700;
    text-transform: none; /* MENSCH: Zurück zur gemischten Schreibweise für mehr Platz */
    letter-spacing: -0.2px; /* KI: @typography-compression */
    white-space: nowrap;
    overflow: visible; /* KI: @no-truncation */
    width: auto;
    text-align: center;
}

/* 🏛️ ACTIVE STATE: Der kaiserliche Fokus */
.mobile-nav-item.active {
    color: var(--color-gold-elite);
    font-weight: 800;
}

.mobile-nav-item.active .material-symbols-outlined {
    transform: translateY(-2px) scale(1.1);
    text-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

/* Sanfter Indikator-Glow hinter dem aktiven Icon */
.mobile-nav-item.active::after {
    content: '';
    position: absolute;
    top: 5px;
    width: 35px;
    height: 35px;
    background: rgba(250, 204, 21, 0.1);
    border-radius: 50%;
    filter: blur(8px);
    z-index: -1;
}

/* 🏛️ RESPONSIVE FIX: Extrem schmale Bildschirme */
@media (max-width: 360px) {
    .mobile-nav-item span:not(.material-symbols-outlined) {
        font-size: 0.55rem;
        letter-spacing: 0;
    }
}
