/* ================================================================
   LVXIN FOOTER COMPONENT - Modular & Reusable
   ================================================================ */

/* Enhanced Footer Styles */
.footer-premium {
    background: linear-gradient(135deg, 
        rgba(14, 71, 161, 0.95) 0%, 
        rgba(24, 72, 146, 0.98) 100%);
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
    margin-top: auto;
}

.footer-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(255,255,255,0.08)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPattern)"/></svg>');
    pointer-events: none;
}

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

/* Brand Section */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    object-fit: contain;
}

.footer-brand-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(163, 200, 242, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer-specific logo component styling */
.footer-brand .logo-container {
    max-width: 200px;
    max-height: 60px;
}

.footer-brand .logo-wrapper {
    max-width: 200px;
    max-height: 60px;
}

.footer-brand .logo-svg {
    max-width: 200px;
    max-height: 60px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Footer-specific white logo styling */
.footer-brand .logo-text-primary,
.footer-brand .logo-text-secondary,
.footer-brand .logo-path {
    fill: white !important;
}



.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 1.125rem;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Sections */
.footer-section h3 {
    color: rgba(255, 255, 255, 1);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 32px;
    height: 2px;
    background: rgba(163, 200, 242, 1);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: rgba(163, 200, 242, 1);
    transform: translateX(4px);
}

.footer-links a i {
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-links a:hover i {
    opacity: 1;
}

/* QR Section */
.qr-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-section h3 {
    text-align: center;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 2rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.qr-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.qr-item {
    text-align: center;
}

.qr-code {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.qr-code:hover {
    transform: scale(1.05);
}

.qr-code img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.qr-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
}

.footer-bottom-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-bottom a {
    color: rgba(163, 200, 242, 1);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: rgba(255, 255, 255, 1);
}

/* Grid System */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Responsive Design */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .qr-grid {
        gap: 4rem;
    }
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
    
    .footer-brand-section {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer-content {
        padding: 0 1rem;
    }
    
    .footer-premium {
        padding: 3rem 0 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .qr-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
    }

    /* Mobile logo sizing */
    .footer-brand .logo-container,
    .footer-brand .logo-wrapper,
    .footer-brand .logo-svg {
        max-width: 160px;
        max-height: 48px;
    }
    
    .footer-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Animation Classes */
.animate-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .footer-premium {
    background: linear-gradient(135deg, 
        rgba(10, 10, 15, 0.95) 0%, 
        rgba(15, 15, 25, 0.98) 100%);
}

[data-theme="dark"] .footer-premium::before {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footerPatternDark" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.8" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23footerPatternDark)"/></svg>');
}

/* Accessibility Enhancements */
.footer-premium:focus-within {
    outline: 2px solid rgba(163, 200, 242, 0.5);
    outline-offset: 4px;
}

.social-link:focus,
.footer-links a:focus,
.qr-code:focus {
    outline: 2px solid rgba(163, 200, 242, 1);
    outline-offset: 2px;
    border-radius: 8px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .social-link,
    .footer-links a,
    .qr-code {
        transition: none;
    }
    
    .qr-code:hover {
        transform: none;
    }
    
    .footer-links a:hover {
        transform: none;
    }
    
    .animate-pulse {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .footer-premium {
        background: none !important;
        color: #000 !important;
    }
    
    .footer-premium::before {
        display: none;
    }
    
    .social-links,
    .qr-section {
        display: none;
    }
}
