/* ============================================ */
/* AlemBot Bottom Navigation                   */
/* Single source of truth for all pages        */
/* ============================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(8, 8, 24, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 180, 216, 0.12);
    padding: 8px 16px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.3), transparent);
}

[data-theme="light"] .bottom-nav {
    background: rgba(255, 255, 255, 0.92);
    border-top-color: rgba(0, 180, 216, 0.1);
}
[data-theme="light"] .bottom-nav::before {
    background: linear-gradient(90deg, transparent, rgba(0, 180, 216, 0.15), transparent);
}

.nav-items {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 8px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
    min-width: 60px;
}

.nav-item.active { color: #00b4d8; }

.nav-item.active::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: #00b4d8;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.6), 0 2px 12px rgba(0, 180, 216, 0.3);
    animation: nav-indicator-glow 2s ease-in-out infinite;
}

@keyframes nav-indicator-glow {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 180, 216, 0.6), 0 2px 12px rgba(0, 180, 216, 0.3); }
    50% { box-shadow: 0 0 12px rgba(0, 180, 216, 0.8), 0 2px 16px rgba(0, 180, 216, 0.5); }
}

.nav-item.active .nav-icon {
    filter: drop-shadow(0 0 4px rgba(0, 180, 216, 0.5));
}

.nav-item:hover { color: var(--text-primary); }

.nav-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: filter 0.3s;
}

.nav-label {
    font-size: 11px;
    font-weight: 600;
}

/* Center Service Button */
.nav-center {
    position: relative;
    margin-top: -24px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-center-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b4d8 0%, #43c7e2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    text-decoration: none;
    border: 3px solid rgba(8, 8, 24, 0.9);
    box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 40px rgba(0, 180, 216, 0.15);
    cursor: pointer;
    transition: all 0.3s;
    animation: center-btn-pulse 3s ease-in-out infinite;
}

@keyframes center-btn-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(0, 180, 216, 0.4), 0 0 40px rgba(0, 180, 216, 0.15); }
    50% { box-shadow: 0 0 25px rgba(0, 180, 216, 0.6), 0 0 50px rgba(0, 180, 216, 0.25); }
}

.nav-center-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0, 180, 216, 0.6), 0 0 60px rgba(0, 180, 216, 0.3);
}

.nav-center-label {
    font-size: 10px;
    font-weight: 600;
    color: #00b4d8;
    margin-top: 4px;
    text-shadow: 0 0 6px rgba(0, 180, 216, 0.3);
}
