/* ---------------------------------- */
/* 4. تنسيقات الفوتر                  */
/* ---------------------------------- */

/* الحاوية الرئيسية للفوتر */
.footer-container {
    background-color: #f9f3ee;
    color: #3e4a2d;
    padding: 60px 20px 30px;
    box-sizing: border-box;
    width: 100%;
}

/* محتوى الفوتر */
.footer-content {
    max-width: 1200px;
    margin: 0 auto; /* توسيط الفوتر */
    display: grid;
    grid-template-columns: 0.8fr 1.5fr 1.2fr 1.2fr;
    gap: 40px;
    direction: rtl;
    align-items: start;
}

/* قسم الشعار */
.footer-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* عناوين أقسام الفوتر */
.footer-section h4 {
    color: #66774a;
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    text-align: right;
}

/* الخط أسفل العنوان */
.footer-section h4::after {
    content: '';
    position: absolute;
    width: 100%;
    right: 0;
    bottom: -8px;
    height: 3px;
    background-color: #e1c5af;
    border-radius: 2px;
}

/* نص نبذة الموقع */
.footer-about p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

/* قائمة معلومات التواصل */
.footer-contact ul {
    list-style: none;
    padding: 0;
}

/* عناصر معلومات التواصل */
.footer-contact li {
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.5;
    color: #3e4a2d;
}

/* روابط التواصل */
.footer-contact a {
    color: #3e4a2d;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #66774a;
}

/* أيقونات السوشيال ميديا */
.footer-social .social-icons {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    margin-top: 15px;
}

/* شكل الأيقونة */
.social-icon {
    color: #f9f3ee;
    background-color: #66774a;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

/* تأثير التحويم */
.social-icon:hover {
    background-color: #e1c5af;
    color: #3e4a2d;
    transform: translateY(-3px);
}

/* شريط حقوق النشر */
.footer-copyright {
    max-width: 1200px;
    margin: 40px auto 0;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e8decb;
    font-size: 13px;
    color: #888;
}

/* ---------------------------------- */
/* 5. الاستجابة للشاشات الصغيرة       */
/* ---------------------------------- */
@media (max-width: 768px) {

    /* جعل الفوتر عمود واحد */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    /* توسيط الأقسام */
    .footer-logo-section,
    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* توسيط العناوين */
    .footer-section h4 {
        text-align: center;
    }

    /* توسيط الخط أسفل العنوان */
    .footer-section h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    /* توسيط النصوص */
    .footer-about p,
    .footer-contact li {
        text-align: center;
    }

    /* توسيط أيقونات السوشيال */
    .footer-social .social-icons {
        justify-content: center;
    }

}

/* ---------------------------------- */
/* 6. تعديلات الوضع الداكن            */
/* ---------------------------------- */

/* خلفية الفوتر الداكنة */
body.dark-mode .footer-container {
    background-color: #2b1d12;
    border-top: 1px solid #3d2b1f;
}

/* عناوين الوضع الداكن */
body.dark-mode .footer-section h4 {
    color: #d4e0c0;
}

/* خط العنوان في الوضع الداكن */
body.dark-mode .footer-section h4::after {
    background-color: #66774a;
}

/* نصوص الفوتر الداكنة */
body.dark-mode .footer-about p,
body.dark-mode .footer-contact li,
body.dark-mode .footer-contact a,
body.dark-mode .footer-social p {
    color: #efe7d9;
}

/* أيقونات السوشيال الداكنة */
body.dark-mode .social-icon {
    background-color: #3d2b1f;
    color: #efe7d9;
    border: 1px solid #4d3a2b;
}

/* تحويم الأيقونات الداكنة */
body.dark-mode .social-icon:hover {
    background-color: #66774a;
    color: #ffffff;
}

/* حقوق النشر في الوضع الداكن */
body.dark-mode .footer-copyright {
    border-top-color: #3d2b1f;
    color: #a3b899;
}

/* أسماء الفريق */
.footer-team {
    margin-top: 10px;
    font-size: 12px;
    color: #999;
    line-height: 1.6;
}
