/*D:\www\GEDService\PortalCliente\main\static\css\footer.css*/

/* === FOOTER PRINCIPAL === */
.footer {
    background: linear-gradient(to top,
        var(--footer-bg) 0%,
        rgba(242, 242, 242, 0.95) 100%);
    border-top: 2px solid var(--search-border);
    padding: 24px 0;
    width: 100%;
    flex-shrink: 0;
    margin-top: auto;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

/* Linha decorativa no topo */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 0 0 var(--radius-full) var(--radius-full);
}

/* Container de links */
.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 var(--spacing-md);
}

/* Links do footer */
.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    margin: 0 16px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    position: relative;
    transition: color var(--transition-base);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* Underline animado */
.footer-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--gradient-blue);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-base);
    border-radius: var(--radius-full);
}

.footer-link:hover {
    color: var(--link-color);
    background: rgba(0, 123, 255, 0.05);
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Estado de foco para acessibilidade */
.footer-link:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
    background: rgba(0, 123, 255, 0.1);
}

/* Separador entre links (opcional) */
.footer-link:not(:last-child)::before {
    content: '•';
    position: absolute;
    right: -16px;
    color: var(--search-border);
    font-weight: 400;
    opacity: 0.5;
}

/* === DARK MODE === */
[data-theme="dark"] .footer {
    background: linear-gradient(to top,
        var(--footer-bg) 0%,
        rgba(30, 30, 30, 0.95) 100%);
    border-top-color: #333333;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .footer-link {
    color: var(--footer-text);
}

[data-theme="dark"] .footer-link:hover {
    color: var(--link-color);
    background: rgba(77, 154, 255, 0.1);
}

[data-theme="dark"] .footer-link:not(:last-child)::before {
    color: #444444;
}

/* === RESPONSIVO === */
@media (max-height: 600px) {
    .container {
        justify-content: flex-start;
        padding-top: 32px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 20px 0;
    }

    .footer::before {
        width: 50px;
    }

    .footer-links {
        gap: 6px;
        padding: 0 var(--spacing-sm);
    }

    .footer-link {
        margin: 0 12px;
        font-size: 13px;
        padding: 5px 10px;
    }

    .footer-link:not(:last-child)::before {
        right: -14px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 16px 0;
    }

    .footer::before {
        width: 40px;
        height: 2px;
    }

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

    .footer-link {
        margin: 4px 0;
        font-size: 12px;
    }

    /* Remover separadores em layout vertical */
    .footer-link:not(:last-child)::before {
        display: none;
    }
}

@media (max-width: 320px) {
    .footer {
        padding: 12px 0;
    }

    .footer-link {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* === MOTION REDUCE === */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-link::after {
        transition: none;
    }

    .footer-link:hover::after {
        transform: scaleX(1);
    }
}

/* === VARIANTES DE ESTILO === */
/* Footer com copyright */
.footer-copyright {
    text-align: center;
    color: var(--footer-text);
    font-size: 12px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--search-border);
    opacity: 0.8;
}

[data-theme="dark"] .footer-copyright {
    border-top-color: #333333;
}

/* Footer com ícones sociais */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
}

.footer-social a {
    color: var(--footer-text);
    font-size: 20px;
    transition: color var(--transition-base),
                transform var(--transition-base);
}

.footer-social a:hover {
    color: var(--link-color);
    transform: translateY(-2px);
}

[data-theme="dark"] .footer-social a:hover {
    color: var(--link-color);
}

@media (prefers-reduced-motion: reduce) {
    .footer-social a {
        transition: none;
    }

    .footer-social a:hover {
        transform: none;
    }
}
