/**
 * Premium Glassmorphism Footer
 * E-E-A-T optimized for Google
 * Dark theme with blue accent colors
 */

/* Footer Base - Premium Glassmorphism */
.ah-footer {
    background: linear-gradient(135deg,
        rgba(30, 136, 229, 0.08) 0%,
        rgba(30, 60, 114, 0.05) 50%,
        rgba(30, 136, 229, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(30, 136, 229, 0.2);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Premium animated gradient line at top */
.ah-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(30, 136, 229, 0.6),
        rgba(96, 165, 250, 0.4),
        rgba(30, 136, 229, 0.6),
        transparent
    );
    animation: footerGlow 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes footerGlow {
    0%, 100% {
        opacity: 0.4;
        transform: scaleX(0.7);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1);
    }
}

.ah-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px 30px;
    position: relative;
    z-index: 1;
}

/* Trust Badges */
.ah-footer-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    padding: 25px 20px;
    background: rgba(30, 136, 229, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(30, 136, 229, 0.15);
}

.ah-footer-badge {
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    padding: 12px 22px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(30, 136, 229, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ah-footer-badge-de {
    gap: 6px;
}

.de-flag-svg {
    flex-shrink: 0;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.ah-footer-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ah-footer-badge:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.45);
    background: linear-gradient(135deg, #42a5f5, #64b5f6);
}

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

/* Footer Grid */
.ah-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
}

/* Footer Sections - Premium Card Style */
.ah-footer-section {
    position: relative;
    background: rgba(30, 136, 229, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(30, 136, 229, 0.12);
    border-radius: 14px;
    padding: 22px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Premium shimmer effect */
.ah-footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.02),
        transparent
    );
    transition: left 0.8s ease;
    pointer-events: none;
}

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

.ah-footer-section:hover {
    background: rgba(30, 136, 229, 0.1);
    border-color: rgba(30, 136, 229, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.15);
}

.ah-footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    color: #1e88e5;
}

.ah-footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 35px;
    height: 3px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    border-radius: 2px;
}

/* Footer Links */
.ah-footer-links {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

.ah-footer-links li {
    list-style: none !important;
    margin-bottom: 10px;
    position: relative;
    padding-left: 18px;
}

.ah-footer-links li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #60a5fa;
    font-size: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.ah-footer-links a {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ah-footer-links a:hover {
    color: #60a5fa;
    padding-left: 6px;
}

.ah-footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    transition: width 0.3s ease;
}

.ah-footer-links a:hover::after {
    width: 100%;
}

/* Contact Section */
.ah-footer-contact {
    background: rgba(30, 136, 229, 0.08);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.ah-footer-contact p {
    margin: 6px 0;
    font-weight: 500;
    font-size: 14px;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ah-footer-contact strong {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Legal Section */
.ah-footer-legal {
    background: rgba(30, 60, 114, 0.06);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.ah-footer-legal p {
    margin: 6px 0;
    font-weight: 500;
    font-size: 14px;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ah-footer-legal strong {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Social Links */
.ah-footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.ah-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #1e88e5, #42a5f5);
    color: white;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.25);
}

.ah-footer-social a:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 8px 20px rgba(30, 136, 229, 0.35);
    background: linear-gradient(135deg, #42a5f5, #64b5f6);
}

/* Footer Bottom */
.ah-footer-bottom {
    border-top: 1px solid rgba(30, 136, 229, 0.15);
    text-align: center;
    background: rgba(30, 136, 229, 0.03);
    border-radius: 12px;
    margin-top: 30px;
    padding: 25px 22px;
}

.ah-footer-bottom p {
    color: #ffffff;
}

.ah-footer-bottom-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 18px;
}

.ah-footer-bottom-links a {
    text-decoration: none;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(30, 136, 229, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(30, 136, 229, 0.15);
    font-size: 14px;
    background-image: linear-gradient(135deg, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
}

.ah-footer-bottom-links a {
    background-color: rgba(30, 136, 229, 0.06);
}

.ah-footer-bottom-links a:hover {
    background-color: rgba(30, 136, 229, 0.12);
    -webkit-text-fill-color: #60a5fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}

.ah-footer-copyright {
    font-size: 13px;
    margin-top: 16px;
    font-weight: 500;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ah-footer-copyright p {
    margin: 4px 0;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ah-footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ah-footer-container {
        padding: 30px 15px 20px;
    }

    .ah-footer-bottom-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

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

    .ah-footer-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-bottom: 30px;
        padding: 20px 15px;
    }

    .ah-footer-badge {
        width: 100%;
        max-width: 260px;
        justify-content: center;
        margin: 0 auto;
        font-size: 13px;
        padding: 10px 18px;
    }
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    .ah-footer {
        background: linear-gradient(135deg,
            rgba(30, 136, 229, 0.12) 0%,
            rgba(30, 60, 114, 0.08) 50%,
            rgba(30, 136, 229, 0.12) 100%);
    }

    .ah-footer-links a {
        color: #ffffff;
    }

    .ah-footer-contact p,
    .ah-footer-legal p {
        color: #e2e8f0;
    }

    .ah-footer-copyright {
        color: #ffffff;
    }
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .ah-footer::before,
    .ah-footer-section::before,
    .ah-footer-badge::before {
        animation: none;
    }

    .ah-footer-section,
    .ah-footer-badge,
    .ah-footer-social a,
    .ah-footer-bottom-links a {
        transition-duration: 0.2s;
    }
}
