/* =================================================================
   FOOTER STYLES - Scoped to #ai_footer
   ================================================================= */

#ai_footer {
    background: var(--gradient-primary);
    color: white;
    padding-top: 5rem;
    padding-bottom: 2rem;
    font-family: var(--font-family);
    position: relative;
    overflow: hidden;
}

/* Decorative Background Pattern */
#ai_footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--brand-accent) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

/* Container */
#ai_footer .footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Footer Grid */
#ai_footer .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    #ai_footer .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    #ai_footer .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 4rem;
    }
}

/* Company Info Section */
#ai_footer .footer-company {
    max-width: 320px;
}

#ai_footer .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

#ai_footer .footer-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-accent);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-dark);
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-bold);
}

#ai_footer .footer-logo-text {
    display: flex;
    flex-direction: column;
}

#ai_footer .footer-company-name {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-bold);
    color: white;
}

#ai_footer .footer-tagline {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

#ai_footer .footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Social Links */
#ai_footer .footer-social {
    display: flex;
    gap: 0.75rem;
}

#ai_footer .footer-social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

#ai_footer .footer-social-link:hover {
    background: var(--brand-accent);
    color: var(--brand-dark);
    transform: translateY(-3px);
}

/* Footer Logo Image Styling */
#ai_footer .footer-logo-image {
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    transition: all 0.3s ease;
}

#ai_footer .footer-logo-image:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25), 0 0 50px rgba(255, 255, 255, 0.12);
    transform: scale(1.02);
}

/* Footer Sections */
#ai_footer .footer-section h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1.5rem;
    color: var(--brand-accent);
}

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

#ai_footer .footer-links li {
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

#ai_footer .footer-links a,
#ai_footer .footer-nav-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

#ai_footer .footer-links a:hover,
#ai_footer .footer-nav-item:hover {
    color: var(--brand-accent);
    padding-left: 0.5rem;
}

/* Contact Info */
#ai_footer .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

#ai_footer .footer-contact-icon {
    color: var(--brand-accent);
    margin-top: 0.25rem;
    min-width: 20px;
}

#ai_footer .footer-contact-text {
    line-height: 1.6;
}

#ai_footer .footer-contact-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

#ai_footer .footer-contact-text a:hover {
    color: var(--brand-accent);
}

/* Newsletter Section */
#ai_footer .footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

#ai_footer .newsletter-title {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: 0.5rem;
    color: var(--brand-accent);
}

#ai_footer .newsletter-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

#ai_footer .newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#ai_footer .newsletter-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: white;
    font-size: var(--text-sm);
}

#ai_footer .newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#ai_footer .newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-accent);
}

#ai_footer .newsletter-submit {
    padding: 0.625rem 1.25rem;
    background: var(--brand-accent);
    color: var(--brand-dark);
    font-weight: var(--font-weight-semibold);
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: var(--text-sm);
}

#ai_footer .newsletter-submit:hover {
    background: var(--brand-accent);
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Bottom Bar */
#ai_footer .footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

#ai_footer .footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

#ai_footer .footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

#ai_footer .footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: color 0.3s;
}

#ai_footer .footer-bottom-links a:hover {
    color: var(--brand-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #ai_footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    #ai_footer .footer-newsletter {
        margin-top: 2rem;
    }

    #ai_footer .newsletter-form {
        flex-direction: column;
    }

    #ai_footer .newsletter-submit {
        width: 100%;
    }
}
