/**
 * Bottom Navigation Styles
 * نوار ناوبری پایین برای تجربه کاربری شبیه اپ موبایل
 */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bottom-nav.hidden {
    display: none;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    flex: 1;
    padding: 4px 8px;
    transition: all 0.3s ease;
    position: relative;
    min-width: 0;
}

.nav-item:hover {
    color: #52b8a7;
    background-color: rgba(82, 184, 167, 0.05);
    border-radius: 8px;
}

.nav-item.active {
    color: #52b8a7;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
    line-height: 1;
}

.nav-label {
    font-size: 12px;
    font-family: 'Sahel', sans-serif;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Badge برای اعلان‌ها */
.nav-item .badge {
    position: absolute;
    top: 2px;
    right: 50%;
    transform: translateX(50%);
    background: #dd6e6e;
    color: white;
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
    font-weight: bold;
    margin-right: -8px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .nav-icon {
        font-size: 22px;
    }
    
    .nav-label {
        font-size: 11px;
    }
    
    .bottom-nav {
        padding: 6px 0;
    }
}

/* برای صفحاتی که نیاز به padding-bottom دارند */
body.has-bottom-nav {
    padding-bottom: 70px;
}

/* جلوگیری از همپوشانی با محتوای صفحه */
@media (max-width: 768px) {
    body.has-bottom-nav {
        padding-bottom: 70px;
    }
}

/* Animation برای نمایش/مخفی کردن */
.bottom-nav {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Safe area برای دستگاه‌های با notch */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav {
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
    }
}



