/* ======================================== */
/* footer.css - تنسيقات الفوتر الموحدة */
/* ======================================== */

/* إعادة تعيين المتغيرات للتأكد */
:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gold-dark: #9A7A2E;
    --silver: #B8BEC7;
    --silver-light: #D8DDE5;
    --black: #0A0A0A;
    --black-soft: #111111;
    --black-card: #161616;
    --black-border: #222222;
    --white: #FFFFFF;
    --text-muted: #888888;
}

/* تنسيق الفوتر الرئيسي */
footer {
    background: #050505;
    border-top: 1px solid var(--black-border);
    padding: 60px 0 0;
    margin-top: 0;
    width: 100%;
    direction: rtl;
}

/* شبكة الفوتر */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem 40px;
}

/* القسم الخاص بالعلامة التجارية */
.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-brand .logo-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--black);
}

.footer-brand .logo-text h1 {
    font-size: 20px;
    font-weight: 900;
    color: var(--white);
    margin: 0;
}

.footer-brand .logo-text p {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 1px;
    margin: 0;
}

.footer-brand > p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.8;
    margin: 15px 0 20px;
}

/* أزرار التواصل الاجتماعي */
.socials {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s;
    text-decoration: none;
    font-size: 18px;
}

.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-3px);
}

/* أعمدة الفوتر */
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--gold);
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--gold);
    transform: translateX(-5px);
}

/* قسم شهادات الأمان */
.trust-section {
    border-top: 1px solid var(--black-border);
    padding: 30px 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.trust-badges {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: 40px;
    font-size: 13px;
    color: var(--silver);
    transition: all 0.3s;
}

.trust-badge i {
    color: var(--gold);
    font-size: 14px;
}

.trust-badge:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* الفوتر السفلي */
.footer-bottom {
    border-top: 1px solid var(--black-border);
    padding: 20px 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.footer-bottom .gold-text {
    color: var(--gold);
    font-weight: 700;
}

.footer-bottom i {
    color: var(--gold);
}

/* زر العودة للأعلى */
#scrollTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    color: var(--black);
    border: none;
    cursor: pointer;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(201,168,76,0.3);
    transition: all 0.3s;
    z-index: 999;
}

#scrollTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.4);
}

#scrollTop.visible {
    display: flex;
}

/* استجابة للشاشات */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .socials {
        justify-content: center;
    }
    
    .footer-col h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .trust-section {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-badges {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
/* ======================================== */
/* دعم الاتجاهين RTL و LTR */
/* ======================================== */

/* الاتجاه من اليمين لليسار (العربية) */
html[dir="rtl"] .footer-col h4::after {
    right: 0;
    left: auto;
}

html[dir="rtl"] .footer-col ul li a:hover {
    transform: translateX(-5px);
}

html[dir="rtl"] .socials {
    flex-direction: row;
}

/* الاتجاه من اليسار لليمين (الإنجليزية) */
html[dir="ltr"] .footer-col h4::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .footer-col ul li a:hover {
    transform: translateX(5px);
}

html[dir="ltr"] .footer-grid {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .footer-brand .logo {
    justify-content: flex-start;
}

html[dir="ltr"] .footer-col h4 {
    text-align: left;
}

html[dir="ltr"] .footer-col ul li a {
    text-align: left;
}

html[dir="ltr"] .trust-section {
    direction: ltr;
}

html[dir="ltr"] .footer-bottom {
    direction: ltr;
}

/* تعديل موقع زر العودة للأعلى حسب الاتجاه */
html[dir="rtl"] #scrollTop {
    left: 32px;
    right: auto;
}

html[dir="ltr"] #scrollTop {
    right: 32px;
    left: auto;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    html[dir="ltr"] .footer-brand .logo {
        justify-content: center;
    }
    
    html[dir="ltr"] .footer-col h4 {
        text-align: center;
    }
    
    html[dir="ltr"] .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }
    
    html[dir="ltr"] .footer-col ul li a {
        text-align: center;
        justify-content: center;
    }
}
/* تنسيق شعار الفوتر */
.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
}

/* تنسيق الصورة + النص معاً */
.footer-logo-combined {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    text-decoration: none;
}

.footer-logo-combined .footer-logo-img {
    height: 45px;
}

.footer-logo-combined .logo-text h1 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--tx);
}

.footer-logo-combined .logo-text p {
    font-size: 0.7rem;
    margin: 0;
    opacity: 0.7;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
    .footer-logo-img {
        height: 40px;
    }
    
    .footer-logo-combined .logo-text {
        display: none; /* إخفاء النص في الموبايل */
    }
}