/* Footer Styles */
.footer {
    background-color: var(--color-surface);
    padding: calc(var(--spacing-unit) * 8) 0 calc(var(--spacing-unit) * 4);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-primary-light),
        transparent
    );
    opacity: 0.2;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top,
        var(--color-primary-dark) 0%,
        transparent 70%
    );
    opacity: 0.05;
    pointer-events: none;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 8);
    position: relative;
    z-index: 1;
}

/* Navegação do Footer */
.footer-nav h3,
.footer-social h3,
.footer-legal h3 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.25px;
    color: var(--color-primary-light);
    margin-bottom: calc(var(--spacing-unit) * 3);
    position: relative;
    display: inline-block;
}

.footer-nav h3::after,
.footer-social h3::after,
.footer-legal h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    border-radius: 1px;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-nav a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    padding: calc(var(--spacing-unit) * 0.5) 0;
}

.footer-nav a:hover {
    color: var(--color-text-primary);
    transform: translateX(calc(var(--spacing-unit) * 0.5));
}

/* Links Sociais do Footer */
.footer-social {
    text-align: center;
}

.social-grid {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social a:hover {
    color: var(--color-text-primary);
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.footer-social a:hover::before {
    opacity: 0.1;
}

.footer-social a:hover i {
    transform: scale(1.1);
}

/* Links Legais */
.footer-legal {
    text-align: right;
}

.footer-legal p {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.legal-links {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
    align-items: flex-end;
}

.footer-legal a {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: calc(var(--spacing-unit) * 0.5) 0;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-legal a:hover {
    color: var(--color-text-primary);
}

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

/* Responsividade */
@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-social {
        grid-column: 1 / -1;
        order: -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: calc(var(--spacing-unit) * 6) 0 calc(var(--spacing-unit) * 3);
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
        text-align: center;
    }

    .footer-nav,
    .footer-legal {
        text-align: center;
    }

    .footer-nav ul,
    .legal-links {
        align-items: center;
    }

    .footer-nav h3::after,
    .footer-social h3::after,
    .footer-legal h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-legal {
        order: 1;
    }

    .social-grid {
        margin: 0 auto;
    }

    .footer-nav a:hover {
        transform: translateY(-2px);
    }
}
