/* ==========================================================================
   Footer Styles
   أنماط الفوتر - الصرح الشامخ
   ========================================================================== */

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: var(--z-fixed);
    transition: var(--transition-base);
}

.whatsapp-float:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

/* Footer Main */
.site-footer {
    background: linear-gradient(180deg, var(--bg-dark), var(--bg-darker));
    color: var(--text-inverse);
}

.footer__main {
    padding: var(--space-16) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: var(--space-8);
}

.footer__col--about {
    padding-left: var(--space-8);
}

/* Footer Logo */
.footer__logo {
    display: inline-block;
    margin-bottom: var(--space-4);
}

.footer__logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer__about-text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: var(--space-6);
}

/* Agent Badge in Footer */
.footer__agent {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__agent .agent-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--bg-dark);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.footer__agent p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
}

.footer__agent .agent-logo {
    max-height: 40px;
    width: auto;
}

/* Footer Title */
.footer__title {
    color: var(--text-inverse);
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-500), transparent);
    border-radius: var(--radius-full);
}

/* Footer Links */
.footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__links li {
    margin-bottom: var(--space-3);
}

.footer__links a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer__links a:hover {
    color: var(--primary-400);
    transform: translateX(-5px);
}

.footer__links svg {
    opacity: 0.5;
    transition: var(--transition-base);
}

.footer__links a:hover svg {
    opacity: 1;
}

/* Footer Contact */
.footer__contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer__contact li a:hover {
    color: var(--primary-400);
}

.footer__contact svg {
    flex-shrink: 0;
    color: var(--primary-400);
    margin-top: 2px;
}

/* Footer Social */
.footer__social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link--facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link--twitter:hover {
    background: #1da1f2;
    color: white;
}

.social-link--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.social-link--linkedin:hover {
    background: #0a66c2;
    color: white;
}

.social-link--youtube:hover {
    background: #ff0000;
    color: white;
}

/* Footer Bottom */
.footer__bottom {
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .footer__col--about {
        grid-column: span 2;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__col--about {
        grid-column: span 1;
    }

    .footer__bottom-content {
        flex-direction: column;
        gap: var(--space-3);
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
    }
}