/* ===========================================
   NAVIGATION.CSS - Bottom Navigation Bar
   =========================================== */

/* --- BOTTOM NAVIGATION --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 428px;
    margin: 0 auto;
    height: 70px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr; /* 5 Tabs */
    align-items: center;
    justify-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* 4-Tab Layout (ohne Markets) */
.bottom-nav-4 {
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 Tabs */
}

/* --- NAV ITEMS --- */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    width: 100%;
    height: 100%;
}

.nav-item:hover {
    color: var(--primary);
    background: var(--bg-secondary);
}

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

/* --- NAV ICONS --- */
.nav-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.nav-item.active .nav-icon {
    stroke-width: 2.5;
}

/* --- NAV LABELS --- */
.nav-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* --- FAB (Floating Action Button) --- */
.nav-item.fab {
    position: relative;
}

.fab-circle {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    margin-top: -28px;
    border: 4px solid var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(249, 180, 28, 0.4);
    transition: var(--transition);
}

.fab-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 180, 28, 0.5);
}

.fab-circle:active {
    transform: translateY(0) scale(0.96);
}

.fab-icon {
    width: 28px;
    height: 28px;
    color: #0f172a;
    stroke-width: 2.5;
}

/* --- BADGE (Notification Counter) --- */
.nav-badge {
    position: absolute;
    top: 6px;
    right: 20px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 380px) {
    .nav-label {
        font-size: 10px;
    }
    
    .nav-icon {
        width: 22px;
        height: 22px;
    }
    
    .fab-circle {
        width: 52px;
        height: 52px;
    }
    
    .fab-icon {
        width: 26px;
        height: 26px;
    }
}

/* --- CONTENT PADDING (f¸«är Bottom Nav) --- */
.content {
    flex: 1;
    padding: 20px;
    padding-bottom: 90px; /* Platz f¸«är Bottom Nav */
    overflow-y: auto;
}

/* --- SAFE AREA (f¸«är iPhones mit Notch) --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(env(safe-area-inset-bottom) + 10px);
        height: calc(70px + env(safe-area-inset-bottom));
    }
    
    .content {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
}