/* BigGem Footer Styles */
.footer {
    background: linear-gradient(135deg, #2e0056 0%, #57078d 50%, #6b01df 100%);
    color: #ffffff;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.footer-section {
    display: flex;
    flex-direction: column;
    min-width: 0; /* تسمح بالانكماش */
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.9rem;
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(-5px);
}

/* Contact information styling */
.footer-section ul li a i {
    margin-left: 8px;
    color: #9248ee;
    font-size: 0.9rem;
    width: 16px;
    display: inline-block;
}

.footer-section ul li a:hover i {
    color: #ffffff;
}

/* إعادة تعيين شامل لأيقونات السوشال ميديا في الفوتر */
.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* إلغاء جميع التأثيرات الخارجية */
.footer .social-link,
.footer-social .social-link {
    all: unset !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 0.9rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.footer .social-link::before,
.footer-social .social-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #6b01df, #31005c) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.footer .social-link:hover::before,
.footer-social .social-link:hover::before {
    opacity: 1 !important;
}

.footer .social-link:hover,
.footer-social .social-link:hover {
    color: #6b01df !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(153, 0, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-social {
    display: flex !important;
    gap: 0.8rem !important;
    margin-top: 1.5rem !important;
    justify-content: center !important;
    align-items: center !important;
}

.footer-social .social-link {
    all: unset !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 0.9rem !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.footer-social .social-link i {
    font-size: 0.9rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-social .social-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #57078d, #6b01df) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    z-index: -1 !important;
}

.footer-social .social-link:hover::before {
    opacity: 1 !important;
}

.footer-social .social-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(87, 7, 141, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.footer-bottom p {
    opacity: 0.8;
    margin: 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-rights {
    text-align: right;
}

.footer-rights p {
    margin: 0;
    opacity: 0.8;
}

.footer-legal {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0.3rem;
}

.footer-bottom .footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.footer-bottom .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

@media (min-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
        gap: 2rem;
    }

    .footer-section h4 {
        font-size: 1.2rem;
    }

    .footer-section ul li a {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section:first-child {
        align-items: center;
    }

    .footer-section p {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer {
        padding: 2.5rem 0 1rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .footer-bottom .footer-link {
        display: inline-block;
        margin: 0.2rem 0.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-rights,
    .footer-legal {
        text-align: center;
    }
}
