/* Extracted from views/partials/footer.php */
/* ========== الفوتر ثابت على الفرنسية (LTR) ========== */
footer {
    direction: ltr !important;
    text-align: left !important;
    background: #1a1a1a !important;
}

footer * {
    direction: ltr !important;
    text-align: left !important;
}

footer .text-center {
    text-align: center !important;
}

footer .text-md-end {
    text-align: right !important;
}

footer .text-md-start {
    text-align: left !important;
}

/* ========== مبدل اللغة ========== */
.language-switcher-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.footer-lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 25px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    transition: all 0.3s;
}

.footer-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-lang-btn.active {
    background: #f68b1e;
    border-color: #f68b1e;
}

.footer-lang-btn .flag-icon {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

/* ========== الشعار ========== */
.footer-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

/* ========== معلومات الاتصال ========== */
.contact-info-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.contact-item-footer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item-footer i {
    width: 20px;
    font-size: 14px;
}

.contact-item-footer a:hover {
    color: #f68b1e !important;
}

/* ========== أيقونات التواصل الاجتماعي ========== */
.social-media-footer {
    text-align: center;
}

.social-icons-footer {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-icon-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-footer i {
    font-size: 18px;
}

.social-icon-footer:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
}

/* ========== النشرة البريدية (مع زر صغير) ========== */
.newsletter-footer {
    max-width: 400px;
    margin: 0 auto;
}

.newsletter-form-footer {
    display: flex;
    gap: 8px;
    align-items: center;
}

.form-control-footer {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s;
}

.form-control-footer::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control-footer:focus {
    outline: none;
    border-color: #f68b1e;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 2px rgba(246, 139, 30, 0.1);
}

.btn-footer {
    background: #f68b1e;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-footer:hover {
    background: #e07a0a;
    transform: scale(1.05);
}

.btn-footer i {
    font-size: 14px;
}

/* ========== أيقونات الدفع ========== */
.payment-footer {
    text-align: right;
}

.payment-icons-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.payment-icons-footer i {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
}

.payment-icons-footer i:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

/* ========== الروابط القانونية ========== */
.legal-links-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.legal-link:hover {
    color: #f68b1e;
    transform: translateY(-1px);
}

.legal-link i {
    font-size: 12px;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 12px;
}

/* ========== حقوق النشر ========== */
.copyright-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== الاستجابة للشاشات الصغيرة (الهواتف) ========== */
@media (max-width: 768px) {
    /* الصف الأول: الشعار في اليسار - مبدل اللغة في اليمين */
    .footer-logo {
        height: 35px;
    }
    
    .language-switcher-footer {
        gap: 8px;
    }
    
    .footer-lang-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .footer-lang-btn .flag-icon {
        width: 18px;
        height: 12px;
    }
    
    /* معلومات الاتصال - عمودية */
    .contact-info-footer {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .contact-item-footer {
        justify-content: center;
        width: 100%;
    }
    
    /* أيقونات التواصل */
    .social-icons-footer {
        gap: 12px;
    }
    
    .social-icon-footer {
        width: 42px;
        height: 42px;
    }
    
    /* النشرة البريدية */
    .newsletter-footer {
        max-width: 100%;
        text-align: center;
    }
    
    .newsletter-form-footer {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .form-control-footer {
        font-size: 12px;
        padding: 7px 10px;
    }
    
    .btn-footer {
        width: 34px;
        height: 34px;
    }
    
    /* طرق الدفع */
    .payment-footer {
        text-align: center;
    }
    
    .payment-icons-footer {
        justify-content: center;
    }
    
    .payment-icons-footer i {
        font-size: 28px;
    }
    
    /* الروابط القانونية */
    .legal-links-footer {
        gap: 10px;
    }
    
    .legal-link {
        font-size: 11px;
    }
    
    .separator {
        font-size: 11px;
    }
    
    /* تعديل النصوص */
    .text-md-start {
        text-align: center !important;
    }
    
    .text-md-end {
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    .contact-item-footer {
        font-size: 12px;
    }
    
    .footer-lang-btn span {
        font-size: 11px;
    }
    
    .social-icon-footer {
        width: 38px;
        height: 38px;
    }
    
    .footer-logo {
        height: 30px;
    }
    
    .legal-links-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .separator {
        display: none;
    }
}

/* ========== تنسيق خاص للعربية ========== */
html[dir="rtl"] footer,
html[dir="rtl"] footer * {
    direction: ltr !important;
    text-align: left !important;
}

html[dir="rtl"] footer .text-center {
    text-align: center !important;
}

html[dir="rtl"] footer .text-md-end {
    text-align: right !important;
}

html[dir="rtl"] footer .text-md-start {
    text-align: left !important;
}

/* تعديل المسافات في العربية */
html[dir="rtl"] footer .me-1 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

html[dir="rtl"] footer .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}
