/* Footer Astron Mídia - Estilos CSS */

/* Container principal do footer */
footer {
    color: #ffffff;
    padding: 40px 0;
    margin-top: auto;
    border-top: 2px solid #fe4f70;;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

footer .container-xl {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

footer .footer-inner {
    position: relative;
    z-index: 1;
}

footer .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

footer .d-flex {
    display: flex;
}

footer .align-items-center {
    align-items: center;
}

footer .gy-4 > * {
    margin-bottom: 1.5rem;
}

/* Colunas responsivas */
footer .col-md-4 {
    flex: 0 0 auto;
    width: 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    footer .col-md-4 {
        width: 33.333333%;
    }
    
    footer .gy-4 > * {
        margin-bottom: 0;
    }
}

/* Texto de copyright */
footer .copyright {
    font-size: 14px;
    color: #cccccc;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

footer .copyright:hover {
    opacity: 1;
}

/* Ícones sociais */
footer .text-center {
    text-align: center;
}

footer .social-icons {
    margin: 0;
    padding: 0;
}

footer .list-unstyled {
    list-style: none;
}

footer .list-inline {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

footer .mb-0 {
    margin-bottom: 0;
}

footer .list-inline-item {
    display: inline-block;
}

footer .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

footer .social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

footer .social-icons a:hover::before {
    left: 100%;
}

footer .social-icons a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

/* Ícones específicos das redes sociais */
footer .fab.fa-facebook-f {
    font-family: "Font Awesome 5 Brands";
}

footer .fab.fa-instagram {
    font-family: "Font Awesome 5 Brands";
}

footer .fab.fa-youtube {
    font-family: "Font Awesome 5 Brands";
}

/* Cores específicas para cada rede social no hover */
footer .social-icons a[href*="facebook"]:hover {
    background: linear-gradient(135deg, #1877f2, #0d47a1);
    border-color: #1877f2;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

footer .social-icons a[href*="instagram"]:hover {
    background: linear-gradient(135deg, #e4405f, #833ab4, #fcb045);
    border-color: #e4405f;
    box-shadow: 0 8px 25px rgba(228, 64, 95, 0.4);
}

footer .social-icons a[href*="youtube"]:hover {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    border-color: #ff0000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

/* Botão "Subir Página" */
footer .float-md-end {
    float: right;
}

@media (max-width: 767px) {
    .float-md-end {
        float: none;
        display: block;
        text-align: center;
    }
}

#return-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

#return-to-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

#return-to-top:hover::before {
    left: 100%;
}

#return-to-top:hover {
    transform: translateY(-2px);
    background: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    color: #ffffff;
}

#return-to-top:active {
    transform: translateY(0);
}

/* Ícone do botão subir */
.icon-arrow-up::before {
    content: "↑";
    font-style: normal;
    font-weight: bold;
    transition: transform 0.3s ease;
}

#return-to-top:hover .icon-arrow-up::before {
    transform: translateY(-2px);
}

/* Animações de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer * {
    animation: fadeInUp 0.6s ease-out backwards;
}

footer .copyright {
    animation-delay: 0.1s;
}

footer .social-icons {
    animation-delay: 0.2s;
}

footer #return-to-top {
    animation-delay: 0.3s;
}

/* Responsividade adicional */
@media (max-width: 576px) {
    footer {
        padding: 30px 0;
        text-align: center;
    }
    
    .copyright {
        font-size: 12px;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    #return-to-top {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .list-inline {
        gap: 10px;
    }
}
