/* 
 * آراوا - نوار ناوبری پایین موبایل
 * فایل CSS برای منوی ناوبری در پایین صفحه موبایل
 */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e9ecef;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    padding: 8px 0;
}

/* نمایش فقط در موبایل */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }
}

.mobile-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    min-width: 0;
    flex: 1;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
    color: #2E7D32;
    text-decoration: none;
}

.mobile-nav-item.active {
    color: #2E7D32;
}

.mobile-nav-icon {
    font-size: 1.2rem;
    margin-bottom: 2px;
    position: relative;
}

.mobile-nav-text {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50px;
}

/* Badge برای تعداد آیتم‌های سبد خرید */
.nav-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* انیمیشن کلیک */
.mobile-nav-item:active {
    transform: scale(0.95);
}

/* سایه برای آیکون‌ها */
.mobile-nav-icon i {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* حالت فعال */
.mobile-nav-item.active .mobile-nav-icon {
    color: #2E7D32;
}

.mobile-nav-item.active .mobile-nav-icon i {
    filter: drop-shadow(0 2px 4px rgba(46, 125, 50, 0.3));
}

/* انیمیشن ورود */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-bottom-nav {
    animation: slideUp 0.3s ease-out;
}

/* در صفحات خاص مخفی کردن */
.hide-mobile-nav .mobile-bottom-nav {
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

/* تنظیمات برای صفحه اصلی */
.homepage .mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Responsive breakpoints */
@media (max-width: 480px) {
    .mobile-nav-text {
        font-size: 0.65rem;
        max-width: 45px;
    }
    
    .mobile-nav-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .mobile-nav-text {
        font-size: 0.6rem;
        max-width: 40px;
    }
    
    .mobile-nav-icon {
        font-size: 1rem;
    }
    
    .mobile-nav-item {
        padding: 6px 2px;
    }
} 