/* ========================================
   Compact & Organized Footer Design
   تصميم مضغوط ومنظم للفوتر
   ======================================== */

.site-footer {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #ffffff;
    padding: 1.25rem 0 0.75rem !important;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    overflow: hidden;
}

/* Subtle Background Pattern */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    opacity: 0.4;
    pointer-events: none;
}

/* Simple Top Border */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(59, 130, 246, 0.3) 50%, 
        transparent 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 0.875rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    margin-bottom: 0.625rem;
}

.footer-logo-img {
    max-width: 120px;
    height: auto;
    filter: none;
    transition: transform 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.05);
}

.footer-description {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
    line-height: 1.6;
    margin-top: 0.5rem;
}

.footer-column {
    position: relative;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    color: #ffffff;
    letter-spacing: 0.3px;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: uppercase;
}

.footer-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    padding: 0.25rem 0;
}

.footer-link::before {
    content: '▸';
    margin-right: 0.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-5px);
    color: #3b82f6;
    font-size: 0.7rem;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 0.75rem;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact-item {
    margin-bottom: 0.5rem;
}

.footer-contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(226, 232, 240, 0.7);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.footer-contact-link:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
    transform: translateX(5px);
}

.footer-contact-icon {
    width: 32px;
    height: 32px;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ef4444;
    transition: all 0.3s ease;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.footer-contact-link:hover .footer-contact-icon {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: scale(1.05);
}

.footer-contact-icon.whatsapp-icon {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.15);
}

.footer-contact-link:hover .whatsapp-icon {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

.footer-contact-icon.time-icon {
    background: rgba(6, 182, 212, 0.12);
    color: #22d3ee;
    border-color: rgba(6, 182, 212, 0.15);
}

.footer-contact-link:hover .time-icon {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.3);
}

.footer-contact-icon svg {
    width: 14px;
    height: 14px;
}

.footer-bottom {
    padding-top: 0.75rem;
    border-top: 1px solid rgba(59, 130, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.6);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.social-links {
    display: flex;
    gap: 0.625rem;
}

.social-link {
    width: 34px;
    height: 34px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.social-link:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* Facebook specific */
.social-link[aria-label="Facebook"]:hover {
    background: rgba(24, 119, 242, 0.2);
    border-color: rgba(24, 119, 242, 0.3);
    color: #1877f2;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.2);
}

/* Instagram specific */
.social-link[aria-label="Instagram"]:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.3);
    color: #ec4899;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablets */
@media (max-width: 1024px) {
    .site-footer {
        padding: 1rem 0 0.625rem !important;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-logo-img {
        max-width: 110px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .site-footer {
        padding: 0.875rem 0 0.625rem !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-logo-img {
        max-width: 100px;
    }
    
    .footer-description {
        font-size: 0.7rem;
        text-align: center;
    }
    
    .footer-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .footer-title::before {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-link {
        font-size: 0.75rem;
        text-align: center;
    }
    
    .footer-contact-item {
        margin-bottom: 0.5rem;
    }
    
    .footer-contact-link {
        font-size: 0.75rem;
        gap: 0.625rem;
        padding: 0.375rem;
        justify-content: center;
    }
    
    .footer-contact-icon {
        width: 28px;
        height: 28px;
    }
    
    .footer-contact-icon svg {
        width: 12px;
        height: 12px;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: 0.625rem;
        gap: 0.625rem;
    }
    
    .footer-copyright {
        font-size: 0.7rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .social-link svg {
        width: 14px;
        height: 14px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .site-footer {
        padding: 0.75rem 0 0.5rem !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-brand {
        grid-column: 1;
    }
    
    .footer-logo-img {
        max-width: 90px;
    }
    
    .footer-description {
        font-size: 0.65rem;
    }
    
    .footer-title {
        font-size: 0.7rem;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-link {
        font-size: 0.7rem;
    }
    
    .footer-contact-link {
        font-size: 0.7rem;
    }
    
    .footer-copyright {
        font-size: 0.65rem;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .social-link svg {
        width: 13px;
        height: 13px;
    }
}
