/* =========================================
   🦶 5. تصميم الفوتر (Footer Styles)
   ========================================= */

.site-footer {
    background-color: var(--primary-dark); /* كحلي غامق */
    color: #b0c4de; /* لون نص فاتح مريح للعين (Light Steel Blue) */
    font-size: 15px;
    position: relative;
    margin-top: auto; /* يخلي الفوتر ينزل تحت خالص لو الصفحة فاضية */
}

/* --- تقسيم الشبكة (Grid System) --- */
.footer-widgets {
    padding: 70px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr; /* العمود الأول أعرض شوية */
    gap: 40px;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* عمودين في التابلت */
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* عمود واحد في الموبايل */
        text-align: center;
    }
}

/* --- العناوين واللوجو --- */
.footer-brand {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 700;
}

.widget-title {
    color: var(--secondary-color); /* العنوان ذهبي */
    font-size: 18px;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

/* خط صغير تحت العنوان */
.widget-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    margin-top: 10px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .widget-title::after {
        margin: 10px auto 0; /* توسيط الخط في الموبايل */
    }
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 350px;
}

/* --- أيقونات السوشيال ميديا (Social Media Icons) - تم التحديث 🎨 --- */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* عشان لو الشاشة ضيقة ينزلوا سطر جديد */
    margin-top: 15px;
}

@media (max-width: 768px) {
    .footer-social {
        justify-content: center; /* توسيط الأيقونات في الموبايل */
    }
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.1); /* لون افتراضي شفاف */
    color: #fff;
    border-radius: 50%; /* دائرة */
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة نطاطة */
    font-size: 16px;
}

/* حركة عند الوقوف بالماوس: تكبير بسيط */
.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    color: #fff;
}

/* --- 🎨 ألوان البراندات الأصلية (Brand Colors) --- */

/* Facebook (Blue) */
.social-btn.facebook:hover {
    background-color: #1877F2;
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.5);
}

/* Twitter / X (Black) */
.social-btn.twitter:hover {
    background-color: #000000;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Instagram (Gradient) */
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    box-shadow: 0 0 10px rgba(214, 36, 159, 0.5);
}

/* LinkedIn (Blue) */
.social-btn.linkedin:hover {
    background-color: #0A66C2;
    box-shadow: 0 0 10px rgba(10, 102, 194, 0.5);
}

/* YouTube (Red) */
.social-btn.youtube:hover {
    background-color: #FF0000;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* TikTok (Black/Pink/Cyan) */
.social-btn.tiktok:hover {
    background-color: #000000;
    text-shadow: 2px 2px 0px #FF0050, -2px -2px 0px #00F2EA; /* تأثير التيك توك */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Pinterest (Red) */
.social-btn.pinterest:hover {
    background-color: #BD081C;
    box-shadow: 0 0 10px rgba(189, 8, 28, 0.5);
}

/* --- الروابط (Links) --- */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0c4de;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

/* حركة السهم عند الوقوف على الرابط */
.footer-links a::before {
    content: '\f139'; /* كود سهم من Dashicons */
    font-family: 'dashicons';
    margin-left: 8px;
    font-size: 14px;
    opacity: 0.5;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--secondary-color); /* يتحول لذهبي */
    padding-right: 5px; /* يتحرك لليمين */
}

.footer-links a:hover::before {
    opacity: 1;
    color: var(--secondary-color);
}

/* --- قائمة الاتصال (Contact List) --- */
.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .contact-list li {
        justify-content: center;
    }
}

.contact-list i {
    color: var(--secondary-color);
    font-size: 20px;
    margin-top: 3px;
}

.contact-list a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.contact-list a:hover {
    color: var(--secondary-color);
}

/* --- الشريط السفلي (Copyright) --- */
.footer-bottom {
    background-color: rgba(0,0,0,0.2); /* أغمق سنة من الخلفية */
    padding: 20px 0;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .bottom-flex {
        flex-direction: column;
        gap: 10px;
    }
}

.developer a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

/* --- زر الصعود للأعلى (Scroll Top) --- */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    color: #003d66;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    opacity: 0; /* مخفي افتراضياً */
    visibility: hidden;
    transition: 0.3s;
    z-index: 99;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    bottom: 30px; /* حركة ظهور */
}

.scroll-top-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}