/* ==========================================
   TARQEYAH PAY - MODERN FOOTER
   Matching Redesigned Header & Index Style
   ========================================== */

/* ==========================================
   FOOTER MAIN CONTAINER
   ========================================== */
.modern-footer {
    width: 100%;
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    background: rgba(13, 15, 16, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.modern-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3B82F6, transparent);
}

[dir="rtl"] .modern-footer::before {
    background: linear-gradient(270deg, transparent, #3B82F6, transparent);
}

.modern-footer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-glass-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* ==========================================
   FOOTER CONTENT GRID
   ========================================== */
.footer-content-grid {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 4rem;
    padding-bottom: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ==========================================
   BRAND COLUMN
   ========================================== */
.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo-box {
    position: relative;
    width: fit-content;
}

.footer-brand-logo {
    width: 55px;
    height: 55px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.logo-glow-effect {
    position: absolute;
    inset: -30%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    border-radius: 50%;
    animation: logoGlowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoGlowPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.footer-brand-desc {
    font-size: 0.95rem;
    color: #A9ADB1;
    line-height: 1.65;
    max-width: 350px;
}

/* ==========================================
   SOCIAL ICONS
   ========================================== */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.socials-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.social-icons-row {
    display: flex;
    gap: 0.75rem;
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #A9ADB1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.social-icon-btn:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.social-icon-btn svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 2;
}

/* ==========================================
   LINKS COLUMNS
   ========================================== */
.footer-links-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

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

.footer-col-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, transparent);
}

[dir="rtl"] .footer-col-heading::after {
    left: auto;
    right: 0;
    background: linear-gradient(270deg, #3B82F6, transparent);
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-nav-link {
    color: #A9ADB1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-nav-link::before {
    content: '→';
    position: absolute;
    left: -18px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #3B82F6;
}

[dir="rtl"] .footer-nav-link::before {
    content: '←';
    left: auto;
    right: -18px;
}

.footer-nav-link:hover {
    color: #FFFFFF;
    padding-left: 18px;
}

[dir="rtl"] .footer-nav-link:hover {
    padding-left: 0;
    padding-right: 18px;
}

.footer-nav-link:hover::before {
    opacity: 1;
    left: 0;
}

[dir="rtl"] .footer-nav-link:hover::before {
    left: auto;
    right: 0;
}

/* ==========================================
   FOOTER BOTTOM BAR
   ========================================== */
.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copy-text {
    font-size: 0.9rem;
    color: #A9ADB1;
    margin: 0;
}

.footer-security-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.security-badge-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    font-size: 0.85rem;
    color: #A9ADB1;
    transition: all 0.3s ease;
}

.security-badge-item:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.25);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.security-badge-item svg {
    width: 16px;
    height: 16px;
    stroke: #10B981;
    flex-shrink: 0;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .footer-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-links-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand-desc {
        max-width: 100%;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .modern-footer {
        margin-top: 4rem;
        padding: 3rem 0 1.5rem;
    }

    .footer-glass-container {
        padding: 0 1.5rem;
    }

    .footer-content-grid {
        gap: 2.5rem;
        padding-bottom: 2.5rem;
        margin-bottom: 2.5rem;
    }

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

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

    .footer-security-badges {
        flex-direction: column;
        width: 100%;
    }

    .security-badge-item {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .modern-footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-glass-container {
        padding: 0 1.25rem;
    }

    .footer-brand-logo {
        width: 48px;
        height: 48px;
    }

    .footer-brand-desc {
        font-size: 0.9rem;
    }

    .social-icon-btn {
        width: 38px;
        height: 38px;
    }

    .social-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    .footer-col-heading {
        font-size: 0.9rem;
    }

    .footer-nav-link {
        font-size: 0.85rem;
    }

    .footer-copy-text {
        font-size: 0.85rem;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.modern-footer *:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .modern-footer {
        background: white;
        border-top: 1px solid #ccc;
    }

    .modern-footer::before,
    .modern-footer::after,
    .logo-glow-effect,
    .footer-socials {
        display: none !important;
    }

    .footer-brand-desc,
    .footer-nav-link,
    .footer-copy-text {
        color: black !important;
    }
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInFooter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-footer {
    animation: fadeInFooter 0.6s ease-out;
}

/* ==========================================
   END OF MODERN FOOTER CSS
   ========================================== */