/* ========== Bottom Navigation للموبايل ========== */

/* يظهر فقط على الشاشات الصغيرة (موبايل وتابلت) */

.bottom-nav {
    display: none; /* مخفي افتراضياً على الشاشات الكبيرة */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 8px 0;
}

.bottom-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #7f8c8d;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 60px;
}

.bottom-nav-item:hover,
.bottom-nav-item:active {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    transform: translateY(-2px);
}

.bottom-nav-item.active {
    color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.15);
}

.bottom-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.bottom-nav-label {
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

/* ========== إظهار على الموبايل فقط ========== */

@media (max-width: 768px) {
    .bottom-nav {
        display: block !important;
    }
    
    /* إضافة مساحة أسفل الصفحة لعدم تغطية المحتوى */
    body {
        padding-bottom: 70px;
    }
    
    /* تحسين الأزرار للمس */
    .bottom-nav-item {
        -webkit-tap-highlight-color: transparent;
    }
}

/* ========== الوضع الليلي ========== */

body.dark-mode .bottom-nav {
    background: #2c2c2c;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .bottom-nav-item {
    color: #b0b0b0;
}

body.dark-mode .bottom-nav-item:hover,
body.dark-mode .bottom-nav-item:active {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

body.dark-mode .bottom-nav-item.active {
    color: #2ecc71;
    background-color: rgba(46, 204, 113, 0.25);
}

/* ========== تأثيرات إضافية ========== */

@keyframes bounce-in {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(0);
    }
}

.bottom-nav {
    animation: bounce-in 0.5s ease-out;
}
