/* ============================================
   FOOTER - Dark Premium Style
   ============================================ */

.footer {
    background: linear-gradient(180deg, #0a0f12 0%, #000000 100%);
    color: #a8b8c3;
    padding: var(--space-xl) 0 var(--space-md);
    border-top: 1px solid rgba(65, 107, 153, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(65, 107, 153, 0.5) 50%, 
        transparent 100%);
}

.footer__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__brand {
    max-width: 400px;
}

.footer__logo {
    display: block;
    margin-bottom: var(--space-md);
}

.footer__logo-img {
    height: 70px;
    filter: brightness(0) invert(1);
}

.footer__desc {
    color: #7a8a95;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.footer__social {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
}

.footer__social-link {
    width: 48px;
    height: 48px;
    background: rgba(65, 107, 153, 0.15);
    border: 2px solid rgba(65, 107, 153, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.footer__social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.footer__social-link:hover::before {
    width: 100%;
    height: 100%;
}

.footer__social-link svg {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(65, 107, 153, 0.5);
}

.footer__social-link:active {
    transform: translateY(-3px) scale(1.05);
}

.footer__links h4,
.footer__contact h4 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: #ffffff;
    font-weight: 600;
    font-family: 'DM Serif Display', serif;
}

.footer__contact p {
    color: #7a8a95;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer__links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    display: inline-block;
    color: #7a8a95;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 0;
}

.footer__links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.footer__links a:hover {
    color: #ffffff;
    padding-left: 12px;
}

.footer__links a:hover::before {
    width: 8px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #7a8a95;
    font-size: 0.9375rem;
}

.footer__contact-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-md);
    color: #5e6d77;
    font-size: 0.875rem;
}

.footer__bottom p {
    margin: 0;
}

.footer__credits {
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Light Mode - Footer branco com textos pretos */
[data-theme="light"] .footer {
    background: #ffffff;
    color: #182028;
    border-top: 1px solid rgba(65, 107, 153, 0.15);
}

[data-theme="light"] .footer::before {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(65, 107, 153, 0.2) 50%, 
        transparent 100%);
}

[data-theme="light"] .footer__desc {
    color: #3f4b57;
}

[data-theme="light"] .footer__links h4,
[data-theme="light"] .footer__contact h4 {
    color: #0f1418;
}

[data-theme="light"] .footer__links a {
    color: #3f4b57;
}

[data-theme="light"] .footer__links a:hover {
    color: #0f1418;
}

[data-theme="light"] .footer__contact-item {
    color: #3f4b57;
}

[data-theme="light"] .footer__contact p {
    color: #3f4b57;
}

[data-theme="light"] .footer__bottom {
    color: #5e6d77;
}

[data-theme="light"] .footer__main {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .footer__social-link {
    background: rgba(65, 107, 153, 0.1);
    border-color: rgba(65, 107, 153, 0.2);
    color: #2c4a6e;
    box-shadow: 0 4px 12px rgba(65, 107, 153, 0.15);
}

[data-theme="light"] .footer__social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(65, 107, 153, 0.3);
}

[data-theme="light"] .footer__social-link svg {
    filter: drop-shadow(0 2px 4px rgba(65, 107, 153, 0.2));
}

[data-theme="light"] .footer__logo-img {
    filter: brightness(0) invert(0); /* Logo preto no modo claro */
}

/* Responsive */
@media (max-width: 1023px) {
    .footer__main {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer__brand {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .footer__logo {
        display: inline-block;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .footer__links a:hover {
        padding-left: 0;
    }
}
