/* ========================================
   MigraGo Mobile Footer - Updated Design
   تصميم معدل مع تحسيناتك
======================================== */

/* الحاوية الرئيسية */
.migra-mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #FF6B35;
    z-index: 1000;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* شريط التنقل السفلي */
.mobile-nav-bar {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px;
    background: white;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    flex: 1;
    padding: 8px 5px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item.active {
    color: #FF6B35;
}

.nav-icon {
    font-size: 20px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: translateY(-3px);
}

.nav-label {
    font-size: 11px;
    font-weight: 700;
}

/* زر الخدمات المركزي */
.services-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -25px;
    z-index: 1001;
}

.services-btn .nav-item {
    background: linear-gradient(135deg, #FF6B35, #FF8E53);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    margin-bottom: 5px;
}

.services-btn .nav-icon {
    font-size: 24px;
    margin-bottom: 0;
}

.services-btn .nav-label {
    color: #FF6B35;
    font-weight: 800;
}

/* الفوتر المنبثق */
.mobile-footer-expanded {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 25px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
    display: none;
}

.mobile-footer-expanded.active {
    transform: translateY(0);
    display: block;
}

/* رأس الفوتر المنبثق */
.footer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.footer-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border-radius: 10px;
}

.footer-brand h3 {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0;
}

.footer-brand p {
    font-size: 13px;
    color: #666;
    margin: 5px 0 0 0;
}

/* الإعدادات */
.settings-section {
    margin-bottom: 25px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #FF6B35;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.setting-label i {
    color: #FF6B35;
    font-size: 16px;
}

.setting-options {
    display: flex;
    gap: 8px;
}

.lang-option,
.currency-option {
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #666;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-option.active,
.currency-option.active {
    background: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.lang-option:hover:not(.active),
.currency-option:hover:not(.active) {
    border-color: #FF6B35;
    color: #FF6B35;
}

/* وسائل التواصل */
.social-section {
    margin-bottom: 25px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.social-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 12px 8px;
    border-radius: 10px;
    background: #f8f8f8;
    transition: all 0.3s ease;
}

.social-item:hover {
    background: #FFF5F0;
    transform: translateY(-3px);
}

.social-item i {
    font-size: 20px;
    color: #666;
    margin-bottom: 8px;
}

.social-item span {
    font-size: 10px;
    font-weight: 700;
    color: #444;
}

/* طرق الدفع */
.payment-section {
    margin-bottom: 25px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: #f9f9f9;
    border: 1px solid #eee;
}

.payment-item i {
    font-size: 24px;
    color: #555;
    margin-bottom: 8px;
}

.payment-item span {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

/* معلومات الاتصال */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.contact-card {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #eee;
}

.contact-card i {
    color: #FF6B35;
    font-size: 18px;
    margin-bottom: 10px;
    display: block;
}

.contact-card h4 {
    font-size: 13px;
    color: #888;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.contact-card p {
    font-size: 14px;
    color: #222;
    margin: 0;
    font-weight: 700;
}

.contact-card a {
    color: #222;
    text-decoration: none;
}

.contact-card a:hover {
    color: #FF6B35;
}

/* حقوق النشر */
.copyright {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 20px;
}

.copyright p {
    font-size: 12px;
    color: #888;
    margin: 0;
}

.copyright i {
    color: #FF6B35;
    margin-left: 5px;
}

/* زر الإغلاق */
.close-footer {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-footer:hover {
    background: #f5f5f5;
    color: #FF6B35;
}

/* Scrollbar */
.mobile-footer-expanded::-webkit-scrollbar {
    width: 6px;
}

.mobile-footer-expanded::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.mobile-footer-expanded::-webkit-scrollbar-thumb {
    background: #FF6B35;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .mobile-footer-expanded {
        padding: 20px 15px;
        max-height: 75vh;
    }
    
    .services-btn .nav-item {
        width: 55px;
        height: 55px;
    }
    
    .services-btn .nav-icon {
        font-size: 22px;
    }
}

/* مساحة للفوتر */
body {
    padding-bottom: 70px !important;
}

/* إخفاء على الحاسوب */
@media (min-width: 769px) {
    .migra-mobile-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0 !important;
    }
}