/* Footer Styles - مشابه لموقع shwerni.sa */
.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #16213e 75%, #1a1a2e 100%);
    color: #ffffff;
    font-family: 'Tajawal', sans-serif;
    width: 100%;
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* تنسيق خاص للفوتر في صفحات الإدارة */
.dashboard-container + .footer {
    margin-right: 280px; /* عرض القائمة الجانبية */
    width: calc(100% - 280px);
    position: relative;
    left: 0;
}

/* تنسيق للفوتر في صفحات الإدارة مع القائمة الجانبية */
.dashboard-container ~ .footer {
    margin-right: 280px;
    width: calc(100% - 280px);
    position: relative;
    left: 0;
}

/* تنسيق عام للفوتر في صفحات الإدارة */
body:has(.dashboard-container) .footer {
    margin-right: 280px;
    width: calc(100% - 280px);
}

/* تنسيق بديل للمتصفحات التي لا تدعم :has() */
.dashboard-container ~ .footer {
    margin-right: 280px;
    width: calc(100% - 280px);
}

/* تنسيق بديل للفوتر في صفحات الإدارة */
.footer[data-admin="true"] {
    margin-right: 280px;
    width: calc(100% - 280px);
    position: relative;
    left: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .dashboard-container + .footer,
    .dashboard-container ~ .footer,
    body:has(.dashboard-container) .footer,
    .footer[data-admin="true"] {
        margin-right: 0;
        width: 100%;
    }
}

/* إضافة تأثير متدرج إضافي للخلفية */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(96, 165, 250, 0.05) 0%, 
        rgba(59, 130, 246, 0.03) 25%, 
        rgba(147, 51, 234, 0.05) 50%, 
        rgba(59, 130, 246, 0.03) 75%, 
        rgba(96, 165, 250, 0.05) 100%);
    pointer-events: none;
    z-index: 1;
}

/* التأكد من أن المحتوى يظهر فوق التدرج */
.footer > * {
    position: relative;
    z-index: 2;
}

/* Override styles from style.css */
.footer .footer-main {
    padding: 2.5rem 1.5rem;
}

.footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer .footer-column {
    display: flex;
    flex-direction: column;
}

.footer-main {
    padding: 2.5rem 1.5rem;
}

@media (min-width: 768px) {
    .footer-main {
        padding: 2.5rem 4rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer .footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    margin-top: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer .footer-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.footer .footer-link:hover {
    color: #60a5fa;
}

.footer .footer-description {
    font-size: 0.875rem;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer .contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #ffffff;
    background: none;
    padding: 0;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.footer .contact-item i {
    color: #a0aec0;
    width: 16px;
}

.footer .contact-item a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer .contact-item a:hover {
    color: #60a5fa;
}

.legal-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer .follow-us {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .follow-us .footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
}

.footer .follow-us .social-icons {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.7rem;
    position: relative;
    overflow: hidden;
}

.footer .social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.2) 0%, 
        rgba(147, 51, 234, 0.2) 50%, 
        rgba(96, 165, 250, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.footer .social-icon:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(96, 165, 250, 0.3) 100%);
    border-color: rgba(96, 165, 250, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.3);
}

.footer .social-icon:hover::before {
    opacity: 1;
}

.social-icon-img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.footer .social-icon:hover .social-icon-img {
    filter: brightness(0) invert(1);
    transform: scale(1.1);
}

/* تنسيق خاص لصورة Snapchat */
.social-icon[aria-label="Snapchat"] .social-icon-img {
    filter: none;
    background: #FFFC00;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="Snapchat"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة WhatsApp */
.social-icon[aria-label="WhatsApp"] .social-icon-img {
    filter: none;
    background: #25D366;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="WhatsApp"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة Instagram */
.social-icon[aria-label="Instagram"] .social-icon-img {
    filter: none;
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="Instagram"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة TikTok */
.social-icon[aria-label="TikTok"] .social-icon-img {
    filter: none;
    background: #000000;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="TikTok"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

/* تنسيق خاص لصورة Twitter */
.social-icon[aria-label="X (Twitter)"] .social-icon-img {
    filter: none;
    background: #000000;
    border-radius: 50%;
    padding: 2px;
}

.social-icon[aria-label="X (Twitter)"]:hover .social-icon-img {
    filter: none;
    transform: scale(1.1);
}

.footer .footer-bottom {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(96, 165, 250, 0.2);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

/* إضافة تأثير متدرج إضافي للشريط السفلي */
.footer .footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(59, 130, 246, 0.05) 25%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(59, 130, 246, 0.05) 75%, 
        rgba(96, 165, 250, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

/* التأكد من أن محتوى الشريط السفلي يظهر فوق التدرج */
.footer .footer-bottom > * {
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding: 1rem 4rem;
    }
}

.footer .footer-copyright {
    text-align: center;
    font-size: 0.875rem;
    color: #ffffff;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-main {
        padding: 2rem 1rem;
    }

    .footer-bottom {
        padding: 1rem;
    }

    .social-icons {
        justify-content: flex-start;
    }

    .footer .follow-us {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer .follow-us .social-icons {
        justify-content: flex-start;
    }
    
    .footer .social-icon {
        width: 3rem;
        height: 3rem;
        padding: 0.6rem;
    }
    
    .social-icon-img {
        width: 1.5rem;
        height: 1.5rem;
    }
}

/* قسم التوثيقات في الفوتر */
.footer-documentation {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.footer-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
    margin-top: 0;
    text-align: center;
    position: relative;
}

.footer-main-title::after {
    display: none;
}

.footer-docs-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-doc-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    position: relative;
    overflow: hidden;
}

.footer-doc-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(96, 165, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.footer-doc-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(96, 165, 250, 0.15) 100%);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.2);
}

.footer-doc-item:hover::before {
    opacity: 1;
}

.doc-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

.footer-payment-methods {
    margin-top: 1.5rem;
}

.payment-methods-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.payment-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-payment-icon {
    width: 60px;
    height: 38px;
    object-fit: contain;
    filter: grayscale(0.3) brightness(0.8);
    transition: all 0.3s ease;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    padding: 4px;
    border: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-payment-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(96, 165, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.footer-payment-icon:hover {
    filter: grayscale(0) brightness(1);
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.4);
}

.footer-payment-icon:hover::before {
    opacity: 1;
}

/* شعار مدى */
.mada-icon {
    width: 60px;
    height: 38px;
    filter: none !important;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.mada-icon:hover {
    filter: none !important;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* شعار Tabby */
.tabby-icon {
    filter: none !important;
    background: white;
    border-radius: 4px;
    padding: 2px;
}

.tabby-icon:hover {
    filter: none !important;
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* شعار PayPal */
.paypal-icon {
    width: 60px;
    height: 38px;
    background: linear-gradient(135deg, #0070ba, #1546a0);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 4px;
}

.paypal-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #005ea6, #0f3a8a);
}

.paypal-text {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* العناوين أسفل طرق الدفع */
.footer-legal-titles {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-title {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0;
    padding: 0.3rem 0.8rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(96, 165, 250, 0.05) 100%);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(96, 165, 250, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-legal-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(96, 165, 250, 0.1) 0%, 
        rgba(147, 51, 234, 0.1) 50%, 
        rgba(96, 165, 250, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.footer-legal-title:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(96, 165, 250, 0.2) 100%);
    color: #ffffff;
    transform: translateY(-2px) scale(1.05);
    text-decoration: none;
    border-color: rgba(96, 165, 250, 0.4);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.3);
}

.footer-legal-title:hover::before {
    opacity: 1;
}

/* Responsive for footer documentation */
@media (max-width: 767px) {
    .footer-documentation {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .footer-main-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .footer-docs-row {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-doc-item {
        padding: 0.75rem 1rem;
        min-width: auto;
        max-width: none;
    }
    
    .doc-title {
        font-size: 0.85rem;
    }
    
    .payment-methods-grid {
        gap: 1rem;
        max-width: 400px;
    }
    

    
    .footer-payment-icon {
        width: 45px;
        height: 28px;
    }
    
    .mada-icon {
        width: 45px;
        height: 28px;
        background: white;
        border-radius: 3px;
        padding: 1px;
    }
    
    .tabby-icon {
        width: 45px;
        height: 28px;
        background: white;
        border-radius: 3px;
        padding: 1px;
    }
    
    .paypal-icon {
        width: 45px;
        height: 28px;
    }
    
    .paypal-text {
        font-size: 0.7rem;
    }
    
    .footer-legal-titles {
        margin-top: 0.75rem;
        gap: 0.75rem;
    }
    
    .footer-legal-title {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .footer-main-title {
        font-size: 1.2rem;
    }
    
    .footer-docs-row {
        gap: 0.5rem;
    }
    
    .footer-doc-item {
        padding: 0.5rem 0.75rem;
    }
    
    .doc-title {
        font-size: 0.8rem;
    }
    
    .payment-methods-grid {
        gap: 0.75rem;
        max-width: 300px;
    }
    

    
    .footer-payment-icon {
        width: 40px;
        height: 25px;
    }
    
    .mada-icon {
        width: 40px;
        height: 25px;
        background: white;
        border-radius: 2px;
        padding: 1px;
    }
    
    .tabby-icon {
        width: 40px;
        height: 25px;
        background: white;
        border-radius: 2px;
        padding: 1px;
    }
    
    .paypal-icon {
        width: 40px;
        height: 25px;
    }
    
    .paypal-text {
        font-size: 0.65rem;
    }
    
    .footer-legal-titles {
        margin-top: 0.5rem;
        gap: 0.5rem;
    }
    
    .footer-legal-title {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
    
    .footer .social-icon {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
    }
    
    .social-icon-img {
        width: 1.2rem;
        height: 1.2rem;
    }
} 