/*
 * Footer Styles - Arabic RTL (Unified & Optimized)
 */

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* New Vision Brand Colors */
    --brand-primary: #0d2d68;
    --brand-success: #11a976;
    --brand-info: #2473be;
    --brand-accent: #00e5fa;
    --brand-dark: #0a0a0c;
}

/* ========================================
   SITE FOOTER BASE
   ======================================== */
.site-footer {
    background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
    color: #fff;
    padding: 80px 0 40px;
    font-size: 15px;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
    direction: rtl;
    text-align: right;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* Footer Container */
.site-footer .footer-container {
    width: 98%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ========================================
   DECORATIVE WAVE
   ======================================== */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    line-height: 0;
    transform: translateY(-99%);
}

.footer-wave svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* ========================================
   MAIN FOOTER CONTENT
   ======================================== */
.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
    direction: rtl;
}

/* Footer Columns */
.footer-col {
    flex: 1 1 0%;
    min-width: 180px;
    text-align: right;
    direction: rtl;
}

/* ========================================
   BRAND SECTION
   ======================================== */
.footer-brand {
    flex: 1;
    min-width: 250px;
    margin-left: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-link {
    display: inline-block;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.footer-logo-link:hover {
    transform: scale(1.05);
}

.footer-logo {
    max-width: 180px;
    height: auto;
}

.footer-tagline {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 25px;
    text-align: right;
}

/* ========================================
   SOCIAL ICONS
   ======================================== */
.footer-social-primary {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    justify-content: flex-end;
}

.footer-social-primary .social-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-info));
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.footer-social-primary .social-icon:hover {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-success));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 229, 250, 0.4);
}

/* ========================================
   FOOTER HEADINGS
   ======================================== */
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    text-align: right;
}

.footer-heading::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-success));
    position: absolute;
    bottom: -8px;
    right: 0;
    border-radius: 2px;
}

.footer-heading .heading-icon {
    color: var(--brand-accent);
    font-size: 1.2rem;
}

/* ========================================
   FOOTER LINKS
   ======================================== */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.footer-links li a i {
    color: var(--brand-accent);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.footer-links li a:hover {
    color: var(--brand-accent);
    transform: translateX(-5px);
}

.footer-links li a:hover i {
    transform: translateX(-3px);
}

/* ========================================
   CONTACT INFO
   ======================================== */
.site-footer .contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1rem;
}

.site-footer .contact-list li i,
.site-footer .contact-list li .lucide {
    color: #fff !important;
    font-size: 18px;
    width: 22px;
    height: 22px;
    margin-left: 12px;
    margin-right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer .contact-list li span,
.site-footer .contact-list li .phone-ltr {
    color: #fff !important;
    opacity: 1 !important;
}

.site-footer .contact-list li .phone-ltr {
    direction: ltr;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.footer-newsletter {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: right;
}

.footer-newsletter h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 15px;
}

.newsletter-form .form-group {
    display: flex;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark);
    font-size: 0.95rem;
    outline: none;
    text-align: right;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(10, 10, 12, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    border: none;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-success));
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: linear-gradient(90deg, var(--brand-success), var(--brand-accent));
    transform: scale(1.05);
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */
.footer-bottom {
    margin-top: 10px;
    padding-top: 10px;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
    width: 100%;
    align-items: center;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--brand-accent);
}

.footer-legal .separator {
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-info));
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-success));
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 229, 250, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 991px) {
    .footer-main {
        flex-wrap: wrap;
    }

    .footer-brand {
        flex: 1 1 100%;
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    .footer-col {
        flex: 1 1 calc(50% - 20px);
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0;
    }

    .footer-wave {
        top: -40px;
    }

    .footer-wave svg {
        height: 80px;
    }

    .footer-main {
        flex-direction: column;
        gap: 30px;
    }

    .footer-brand,
    .footer-col {
        flex: 1 1 100%;
        min-width: 100%;
        text-align: center;
        align-items: center;
    }

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

    .footer-heading::after {
        right: 50%;
        transform: translateX(50%);
    }

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

    .footer-links li a {
        justify-content: center;
    }

    .footer-newsletter {
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.footer-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    direction: rtl;
}

.footer-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.footer-notification span {
    flex: 1;
    font-size: 0.95rem;
    color: var(--brand-dark);
    font-weight: 500;
    text-align: right;
}

.notification-close {
    background: none;
    border: none;
    color: rgba(10, 10, 12, 0.5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--brand-dark);
}

/* Notification Types */
.footer-notification-success {
    border-right: 4px solid var(--brand-success);
}

.footer-notification-success::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-success);
    font-size: 1.3rem;
}

.footer-notification-error {
    border-right: 4px solid #e74c3c;
}

.footer-notification-error::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #e74c3c;
    font-size: 1.3rem;
}

.footer-notification-info {
    border-right: 4px solid var(--brand-info);
}

.footer-notification-info::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-info);
    font-size: 1.3rem;
}

@media (max-width: 768px) {
    .footer-notification {
        right: 10px;
        left: auto;
        max-width: none;
    }
}
