/* 
 * Standard Footer CSS - Mirror AI Quantum Footer
 * Based on Privacy Policy design - to be used across all templates
 * Ensures consistent footer appearance throughout the application
 */

/* Footer Styles - Enhanced Quantum Footer Version */
.quantum-footer {
    background: rgba(13, 27, 42, 0.05) !important;
    backdrop-filter: blur(8px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(8px) saturate(180%) !important;
    padding: 100px 40px 40px;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    box-shadow: 
        0 -20px 80px rgba(0, 242, 254, 0.02),
        inset 0 1px 1px rgba(255, 255, 255, 0.03) !important;
    border-top: 1px solid rgba(139, 127, 248, 0.06) !important;
}

.quantum-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 242, 254, 0.3) 20%,
        rgba(0, 242, 254, 0.6) 40%, 
        rgba(118, 75, 162, 0.6) 50%, 
        rgba(0, 242, 254, 0.6) 60%,
        rgba(0, 242, 254, 0.3) 80%,
        transparent 100%);
    box-shadow: 
        0 0 15px rgba(0, 242, 254, 0.3),
        0 0 30px rgba(118, 75, 162, 0.2);
    animation: shimmer 4s ease-in-out infinite;
}

.quantum-footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 15% 20%, rgba(0, 242, 254, 0.12) 0%, transparent 35%),
        radial-gradient(ellipse at 85% 30%, rgba(118, 75, 162, 0.14) 0%, transparent 40%),
        radial-gradient(circle at 50% 60%, rgba(103, 126, 234, 0.1) 0%, transparent 35%),
        radial-gradient(ellipse at 25% 85%, rgba(118, 75, 162, 0.08) 0%, transparent 30%),
        radial-gradient(ellipse at 75% 90%, rgba(0, 242, 254, 0.08) 0%, transparent 30%);
    pointer-events: none;
    z-index: 1;
    animation: glow-pulse 8s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0%, 100% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(118, 75, 162, 0.4) 10%,
            rgba(0, 242, 254, 0.7) 25%, 
            rgba(118, 75, 162, 0.8) 50%, 
            rgba(0, 242, 254, 0.7) 75%,
            rgba(118, 75, 162, 0.4) 90%,
            transparent 100%);
        box-shadow: 
            0 0 20px rgba(0, 242, 254, 0.4),
            0 0 40px rgba(118, 75, 162, 0.3);
    }
    50% { 
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(0, 242, 254, 0.5) 10%,
            rgba(118, 75, 162, 0.8) 25%, 
            rgba(0, 242, 254, 0.9) 50%, 
            rgba(118, 75, 162, 0.8) 75%,
            rgba(0, 242, 254, 0.5) 90%,
            transparent 100%);
        box-shadow: 
            0 0 25px rgba(118, 75, 162, 0.5),
            0 0 50px rgba(0, 242, 254, 0.4);
    }
}

.footer-container {
    max-width: none;
    margin: 0;
    position: relative;
    z-index: 2;
    padding: 0 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 60px;
    width: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #00f2fe 30%, 
        #ffffff 60%,
        #764ba2 80%,
        #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logo-shimmer 5s ease-in-out infinite;
    filter: drop-shadow(0 0 25px rgba(0, 242, 254, 0.4));
}

@keyframes logo-shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.footer-logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, 
        rgba(0, 242, 254, 0.25) 0%, 
        rgba(118, 75, 162, 0.35) 50%, 
        rgba(103, 126, 234, 0.25) 100%);
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(0, 242, 254, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 242, 254, 0.25),
        0 5px 20px rgba(118, 75, 162, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

.footer-logo-icon:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 15px 50px rgba(0, 242, 254, 0.35),
        0 8px 25px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(0, 242, 254, 0.6);
    animation: icon-float 3s ease-in-out infinite, icon-glow 1.5s ease-in-out infinite;
}

@keyframes icon-glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.footer-logo-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(1.3) saturate(1.2);
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    max-width: 420px;
    font-size: 1rem;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 242, 254, 0.08);
    letter-spacing: 0.01em;
}

.footer-column h4 {
    color: white !important;
    font-size: 1.15rem !important;
    margin-bottom: 24px !important;
    font-weight: 600 !important;
    text-shadow: 
        0 0 20px rgba(0, 242, 254, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.4) !important;
    position: relative !important;
    letter-spacing: 0.02em !important;
}

.footer-column h4::after {
    content: '' !important;
    position: absolute !important;
    bottom: -10px !important;
    left: 0 !important;
    width: 35px !important;
    height: 3px !important;
    background: linear-gradient(90deg, 
        #00f2fe 0%, 
        #764ba2 50%, 
        #00f2fe 100%) !important;
    background-size: 200% auto !important;
    border-radius: 3px !important;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: underline-shimmer 3s ease-in-out infinite !important;
}

@keyframes underline-shimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.footer-column:hover h4::after {
    width: 70px !important;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6) !important;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 0;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 242, 254, 0.12) 50%, 
        transparent 100%);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f2fe, #764ba2);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.footer-link:hover {
    color: #00f2fe;
    transform: translateX(10px);
    text-shadow: 
        0 0 15px rgba(0, 242, 254, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.3);
}

.footer-link:hover::before {
    left: 100%;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    gap: 40px;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(118, 75, 162, 0.4) 15%,
        rgba(0, 242, 254, 0.6) 35%,
        rgba(118, 75, 162, 0.7) 50%,
        rgba(0, 242, 254, 0.6) 65%, 
        rgba(118, 75, 162, 0.4) 85%,
        transparent 100%);
    box-shadow: 
        0 0 20px rgba(0, 242, 254, 0.3),
        0 0 40px rgba(118, 75, 162, 0.2);
    animation: divider-pulse 4s ease-in-out infinite;
}

@keyframes divider-pulse {
    0%, 100% {
        opacity: 0.7;
        box-shadow: 
            0 0 20px rgba(0, 242, 254, 0.3),
            0 0 40px rgba(118, 75, 162, 0.2);
    }
    50% {
        opacity: 1;
        box-shadow: 
            0 0 30px rgba(0, 242, 254, 0.5),
            0 0 60px rgba(118, 75, 162, 0.3);
    }
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copyright-main {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.company-details {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.version-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-style: italic;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(0, 242, 254, 0.12) 50%, 
        rgba(118, 75, 162, 0.12) 100%);
    backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 5px 20px rgba(0, 242, 254, 0.15),
        0 2px 10px rgba(118, 75, 162, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 242, 254, 0.25) 0%, 
        rgba(118, 75, 162, 0.25) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.12);
    box-shadow: 
        0 20px 40px rgba(0, 242, 254, 0.35),
        0 10px 20px rgba(118, 75, 162, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(0, 242, 254, 0.6);
    color: white;
}

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

.social-link:nth-child(2):hover {
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.3);
    border-color: rgba(0, 123, 255, 0.5);
}

.social-link:nth-child(3):hover {
    box-shadow: 0 15px 30px rgba(225, 48, 108, 0.3);
    border-color: rgba(225, 48, 108, 0.5);
}

/* X (Twitter) Icon Styling */
.x-icon {
    font-size: 18px;
    font-weight: bold;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.x-link:hover .x-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

/* Footer Mobile Responsiveness */
@media (max-width: 768px) {
    .quantum-footer {
        padding: 60px 20px 30px;
        margin-top: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-brand {
        text-align: center;
        align-items: center;
    }

    .footer-description {
        text-align: center;
        max-width: 100%;
        font-size: 0.9rem;
    }

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

    .footer-column h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .footer-links {
        align-items: center;
        gap: 8px;
    }

    .footer-link {
        font-size: 0.9rem;
        padding: 6px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        align-items: center;
    }

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

    .social-links {
        justify-content: center;
        gap: 12px;
    }

    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .copyright-main {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .company-details {
        font-size: 0.75rem;
    }

    .version-info {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .quantum-footer {
        padding: 30px 15px 20px;
    }

    .footer-grid {
        gap: 20px;
        margin-bottom: 25px;
    }

    .footer-logo {
        font-size: 1.4rem;
    }

    .footer-logo-icon {
        width: 32px;
        height: 32px;
    }

    .footer-logo-icon img {
        width: 18px;
        height: 18px;
    }

    .footer-description {
        font-size: 0.85rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
    }

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

    .social-link {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .copyright-main {
        font-size: 0.8rem;
    }

    .company-details {
        font-size: 0.7rem;
    }

    .version-info {
        font-size: 0.65rem;
    }
}