/**
 * Footer Styles - Otimizado e Unificado
 * Usa variáveis do Design System
 * 
 * @package Informativo_Angolano
 * @version 2.1.0
 */

/* ==========================================================================
   FOOTER BASE
   ========================================================================== */

.site-footer {
    background: var(--secondary-color);
    color: var(--bg-white);
    margin-top: var(--space-10);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-color) 100%);
}

.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-10) var(--space-6);
}

/* ==========================================================================
   FOOTER MAIN - 4 Colunas
   ========================================================================== */

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    padding-bottom: var(--space-8);
    border-bottom: 0px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   COLUNAS DO RODAPÉ
   ========================================================================== */

.footer-col {
    font-size: var(--text-sm);
}

.footer-col-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--bg-white);
    margin: 0 0 var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid var(--primary-color);
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

/* Links nas colunas */
.footer-links-list,
.footer-latest-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li,
.footer-latest-posts li {
    margin-bottom: var(--space-3);
}

.footer-links-list a,
.footer-latest-posts a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
    padding: var(--space-1) 0;
}

.footer-links-list a:hover,
.footer-latest-posts a:hover {
    color: var(--bg-white);
    padding-left: var(--space-2);
}

.footer-latest-posts span {
    display: block;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.5);
    margin-top: var(--space-1);
}

/* ==========================================================================
   REDES SOCIAIS
   ========================================================================== */

.footer-social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
    flex-wrap: nowrap;
    flex-direction: row;
    width: 160px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--bg-white);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform var(--transition-base);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link svg {
    width: 18px;
    height: 18px;
    position: relative;
    z-index: 1;
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* ==========================================================================
   NEWSLETTER FORM
   ========================================================================== */

.footer-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-newsletter-form input[type="email"] {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--bg-white);
    transition: all var(--transition-fast);
}

.footer-newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.15);
}

.footer-newsletter-form button {
    width: 100%;
    padding: var(--space-3);
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer-newsletter-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.newsletter-privacy {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.newsletter-privacy input[type="checkbox"] {
    margin-top: 3px;
    accent-color: var(--primary-color);
}

.newsletter-privacy label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}

.newsletter-privacy a {
    color: var(--primary-color);
    text-decoration: underline;
}

.newsletter-privacy a:hover {
    color: var(--primary-light);
}

/* ==========================================================================
   FOOTER BOTTOM
   ========================================================================== */

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6) 0 0;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

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

.footer-legal-links ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: left;
    gap: var(--space-4);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal-links a {
    color: rgba(255,255,255,0.6);
    font-size: var(--text-sm);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   DARK MODE
   ========================================================================== */

body.dark-mode .site-footer {
    background: #0d0d0d;
}

body.dark-mode .footer-col p {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .footer-links-list a,
body.dark-mode .footer-latest-posts a {
    color: rgba(255,255,255,0.7);
}

body.dark-mode .footer-links-list a:hover,
body.dark-mode .footer-latest-posts a:hover {
    color: var(--bg-white);
}

body.dark-mode .footer-latest-posts span {
    color: rgba(255,255,255,0.5);
}

body.dark-mode .footer-newsletter-form input[type="email"] {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

body.dark-mode .footer-newsletter-form input[type="email"]:focus {
    background: rgba(255,255,255,0.12);
}

body.dark-mode .footer-copyright,
body.dark-mode .footer-legal-links a {
    color: rgba(255,255,255,0.5);
}

body.dark-mode .footer-legal-links a:hover {
    color: var(--bg-white);
}

/* ==========================================================================
   RESPONSIVE - MOBILE
   ========================================================================== */

@media (max-width: 767px) {
    .site-footer {
        margin-top: var(--space-8);
    }
    
    .footer-container {
        padding: var(--space-8) var(--space-4);
    }
    
    .footer-main {
        gap: var(--space-6);
    }
    
    .footer-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        align-content: space-around;
}
    }
    
    .footer-col-title {
        display: inline-block;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-legal-links ul {
        gap: var(--space-3);
    }
    
    .footer-copyright {
        font-size: var(--text-xs);
    }
}

@media (max-width: 479px) {
    .social-link {
        width: 36px;
        height: 36px;
    }
    
    .social-link svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.footer-social a:focus-visible,
.footer-links-list a:focus-visible,
.footer-legal-links a:focus-visible,
.footer-newsletter-form input:focus-visible,
.footer-newsletter-form button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

@media (prefers-reduced-motion: reduce) {
    .social-link::before,
    .social-link:hover,
    .footer-newsletter-form button:hover {
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    .site-footer {
        background: none;
        color: #000;
    }
    
    .site-footer::before,
    .footer-social,
    .footer-newsletter-form {
        display: none;
    }
}

/* ==========================================================================
   FIM DO FOOTER OTIMIZADO
   ========================================================================== */

