/* =============================================
   VIP FOOTER - PREMIUM DARK THEME
   Luxury fintech/government style
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
    --vip-primary: var(--main-color, #006098);
    --vip-dark: #0b3f5c;
    --vip-darker: #08344c;
    --vip-darkest: #062a3a;
    --vip-white: #ffffff;
    --vip-white-90: rgba(255, 255, 255, 0.90);
    --vip-white-82: rgba(255, 255, 255, 0.82);
    --vip-white-65: rgba(255, 255, 255, 0.65);
    --vip-white-40: rgba(255, 255, 255, 0.40);
    --vip-white-20: rgba(255, 255, 255, 0.20);
    --vip-white-12: rgba(255, 255, 255, 0.12);
    --vip-white-08: rgba(255, 255, 255, 0.08);
    --vip-white-04: rgba(255, 255, 255, 0.04);
    --vip-radius-lg: 22px;
    --vip-radius-md: 16px;
    --vip-radius-sm: 12px;
    --vip-shadow-card: 0 18px 50px rgba(0, 0, 0, 0.20);
    --vip-shadow-hover: 0 24px 60px rgba(0, 0, 0, 0.28);
    --vip-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --vip-transition-fast: all 0.25s ease;
}

/* ===== VIP FOOTER SECTION ===== */
.vip-footer {
    position: relative;
    padding: 80px 0 0 0;
    overflow: hidden;
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    
    /* Premium gradient background with spotlights */
    background:
        radial-gradient(900px 450px at 20% 15%, rgba(255, 255, 255, 0.06), transparent 55%),
        radial-gradient(700px 350px at 80% 20%, rgba(255, 255, 255, 0.04), transparent 55%),
        radial-gradient(500px 300px at 50% 80%, rgba(4, 79, 131, 0.08), transparent 50%),
        linear-gradient(180deg, #e8eef3 0%, #dce5ed 50%, #d0dbe6 100%);
}

/* Subtle grid lines overlay */
.vip-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(4, 79, 131, 0.03) 60px, rgba(4, 79, 131, 0.03) 61px),
        repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(4, 79, 131, 0.03) 60px, rgba(4, 79, 131, 0.03) 61px);
    pointer-events: none;
    opacity: 0.5;
}

/* Top border accent */
.vip-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(4, 79, 131, 0.25), transparent);
}

/* Pattern - hidden */
.vip-footer__pattern {
    display: none;
}

/* ===== CONTAINER ===== */
.vip-footer__container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== GRID LAYOUT ===== */
.vip-footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* ===== VIP CARD STYLE ===== */
.vip-footer__card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--vip-dark) 0%, var(--vip-darker) 100%);
    border: 1px solid var(--vip-white-12);
    border-radius: var(--vip-radius-lg);
    padding: 28px;
    box-shadow: var(--vip-shadow-card);
    transition: var(--vip-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Inner highlight - top left glow */
.vip-footer__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 0 0, var(--vip-white-08), transparent 70%);
    pointer-events: none;
}

/* Shine sweep element */
.vip-footer__card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.08) 40%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.08) 60%,
        transparent 80%
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

/* Card Hover Effects */
.vip-footer__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--vip-shadow-hover);
    border-color: var(--vip-white-20);
}

.vip-footer__card:hover::after {
    left: 130%;
}

/* ===== REVEAL ANIMATION ===== */
.vip-reveal {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(4px);
    transition: opacity 0.7s ease, transform 0.7s ease, filter 0.7s ease;
}

.vip-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.vip-reveal:nth-child(1) { transition-delay: 0ms; }
.vip-reveal:nth-child(2) { transition-delay: 80ms; }
.vip-reveal:nth-child(3) { transition-delay: 160ms; }
.vip-reveal:nth-child(4) { transition-delay: 240ms; }

/* ===== TYPOGRAPHY ===== */
.vip-footer__title {
    color: var(--vip-white);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    position: relative;
    line-height: 1.4;
}

.vip-footer__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 36px;
    height: 3px;
    background: var(--vip-white-40);
    border-radius: 2px;
}

.vip-footer__description {
    color: var(--vip-white-82);
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 20px;
}

/* ===== LOGO ===== */
.vip-footer__logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

/* ===== SOCIAL ICONS ===== */
.vip-footer__social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.vip-footer__social-link {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--vip-white-04);
    border: 1px solid var(--vip-white-12);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--vip-transition);
    text-decoration: none;
    position: relative;
}

.vip-footer__social-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: transparent;
    transition: var(--vip-transition-fast);
    pointer-events: none;
}

.vip-footer__social-link:hover {
    background: var(--vip-white-12);
    border-color: var(--vip-white-20);
    transform: translateY(-3px);
}

.vip-footer__social-link:hover::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent 70%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.vip-footer__social-link svg {
    width: 18px;
    height: 18px;
    fill: var(--vip-white-90);
    transition: var(--vip-transition-fast);
}

.vip-footer__social-link:hover svg {
    fill: var(--vip-white);
}

.vip-footer__social-link img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1) opacity(0.9);
    object-fit: contain;
    transition: var(--vip-transition-fast);
}

.vip-footer__social-link:hover img {
    filter: brightness(0) invert(1);
}

/* ===== LINKS LIST ===== */
.vip-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vip-footer__links li {
    margin-bottom: 8px;
}

.vip-footer__link {
    color: var(--vip-white-82);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    transition: var(--vip-transition);
    position: relative;
}

.vip-footer__link::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--vip-white-40);
    transition: var(--vip-transition-fast);
    flex-shrink: 0;
}

.vip-footer__link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 15px;
    right: 0;
    height: 1px;
    background: var(--vip-white-40);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

[dir="rtl"] .vip-footer__link::after {
    left: 0;
    right: 15px;
    transform-origin: right;
}

.vip-footer__link:hover {
    color: var(--vip-white);
    padding-inline-start: 6px;
}

.vip-footer__link:hover::before {
    background: var(--vip-white);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.vip-footer__link:hover::after {
    transform: scaleX(1);
}

/* ===== CONTACT ITEMS ===== */
.vip-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    padding: 14px;
    background: var(--vip-white-04);
    border: 1px solid var(--vip-white-08);
    border-radius: var(--vip-radius-sm);
    transition: var(--vip-transition);
    text-decoration: none;
}

.vip-footer__contact-item:hover {
    background: var(--vip-white-08);
    border-color: var(--vip-white-12);
    transform: translateX(4px);
}

[dir="rtl"] .vip-footer__contact-item:hover {
    transform: translateX(-4px);
}

.vip-footer__contact-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--vip-white-08);
    border: 1px solid var(--vip-white-12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--vip-transition-fast);
}

.vip-footer__contact-item:hover .vip-footer__contact-icon {
    background: var(--vip-white-12);
    border-color: var(--vip-white-20);
}

.vip-footer__contact-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--vip-white-90);
    fill: none;
    stroke-width: 2;
}

.vip-footer__contact-info {
    flex: 1;
    min-width: 0;
}

.vip-footer__contact-info h4 {
    color: var(--vip-white);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.vip-footer__contact-info p {
    color: var(--vip-white-82);
    font-size: 13px;
    margin: 0;
    direction: ltr;
    line-height: 1.4;
}

/* ===== MAP CONTAINER ===== */
.vip-footer__map-container {
    background: var(--vip-white-04);
    border: 1px solid var(--vip-white-12);
    border-radius: var(--vip-radius-md);
    padding: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.vip-footer__map {
    width: 100%;
    height: 130px;
    border: 0;
    border-radius: var(--vip-radius-sm);
    display: block;
    filter: saturate(0.9) contrast(1.05);
}

/* ===== APP BUTTONS ===== */
.vip-footer__apps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.vip-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--vip-white-04);
    border: 1px solid var(--vip-white-12);
    border-radius: 14px;
    padding: 10px 14px;
    transition: var(--vip-transition);
    text-decoration: none;
    cursor: pointer;
}

.vip-app-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 30%,
        rgba(255, 255, 255, 0.12) 50%,
        transparent 70%
    );
    transform: skewX(-25deg);
    pointer-events: none;
}

.vip-app-btn:hover {
    background: var(--vip-white-08);
    border-color: var(--vip-white-20);
    transform: translateY(-2px);
}

/* Auto shine animation */
.vip-app-btn.shine::after {
    animation: appShine 0.7s ease forwards;
}

@keyframes appShine {
    from { left: -100%; }
    to { left: 130%; }
}

.vip-app-btn img {
    max-width: 140px;
    height: auto;
    display: block;
}

/* ===== BACK TO TOP BUTTON ===== */
.vip-backtop {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, var(--vip-dark) 0%, var(--vip-darker) 100%);
    color: var(--vip-white);
    border: 1px solid var(--vip-white-12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: var(--vip-transition);
}

.vip-backtop.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.vip-backtop:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--vip-white-20);
}

.vip-backtop svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
}

/* ===== COPYRIGHT BAR ===== */
.vip-footer__copyright {
    background: linear-gradient(180deg, var(--vip-darker) 0%, var(--vip-darkest) 100%);
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid var(--vip-white-08);
}

.vip-footer__copyright-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.vip-footer__copyright-text {
    font-size: 13px;
    color: var(--vip-white-65);
    margin: 0;
}

.vip-footer__copyright-links {
    display: flex;
    gap: 24px;
}

.vip-footer__copyright-links a {
    color: var(--vip-white-65);
    text-decoration: none;
    font-size: 13px;
    transition: var(--vip-transition-fast);
}

.vip-footer__copyright-links a:hover {
    color: var(--vip-white);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1199px) {
    .vip-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .vip-footer {
        padding: 50px 0 0 0;
    }
    
    .vip-footer__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .vip-footer__card {
        padding: 22px;
        border-radius: var(--vip-radius-md);
    }
    
    .vip-footer__copyright-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .vip-footer__copyright-links {
        gap: 16px;
    }
    
    .vip-backtop {
        bottom: 16px;
        inset-inline-start: 16px;
        width: 44px;
        height: 44px;
    }
    
    .vip-backtop svg {
        width: 20px;
        height: 20px;
    }
}

/* ===== RTL SUPPORT ===== */
[dir="rtl"] .vip-footer__card,
[dir="rtl"] .vip-footer__title,
[dir="rtl"] .vip-footer__description,
[dir="rtl"] .vip-footer__links,
[dir="rtl"] .vip-footer__contact-info,
[dir="rtl"] .vip-footer__contact-info h4 {
    text-align: right;
}

[dir="rtl"] .vip-footer__contact-info p {
    text-align: right;
}

[dir="rtl"] .vip-footer__card::before {
    left: auto;
    right: 0;
    background: radial-gradient(circle at 100% 0, var(--vip-white-08), transparent 70%);
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .vip-footer__card,
    .vip-footer__card::after,
    .vip-footer__social-link,
    .vip-footer__link,
    .vip-footer__contact-item,
    .vip-app-btn,
    .vip-app-btn::after,
    .vip-backtop,
    .vip-reveal {
        transition: none !important;
        animation: none !important;
    }
    
    .vip-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    
    .vip-footer__card:hover::after,
    .vip-app-btn.shine::after {
        animation: none !important;
        left: -100% !important;
    }
}

/* ===== FOCUS STATES ===== */
.vip-footer__link:focus-visible,
.vip-footer__social-link:focus-visible,
.vip-footer__contact-item:focus-visible,
.vip-app-btn:focus-visible,
.vip-backtop:focus-visible {
    outline: 2px solid var(--vip-white-40);
    outline-offset: 2px;
}
