/* ===========================
   FOOTER CUSTOMIZADO - TEMA DJ
   =========================== */

/* Configuração base do footer */
.custom-footer {
    width: 100%;
    padding: 30px 0;
    margin-top: auto;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

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

.custom-footer .footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 15px;
}

.custom-footer .footer-logo img {
    max-height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.custom-footer .footer-logo img:hover {
    opacity: 0.8;
}

.custom-footer .footer-text {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

.custom-footer .footer-text p {
    margin: 0 0 5px 0;
}

.custom-footer .footer-text a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.custom-footer .footer-text a:hover {
    opacity: 0.8;
}

/* ===========================
   LAYOUT RESPONSIVO
   =========================== */

/* Desktop */
@media (min-width: 768px) {
    .custom-footer {
        padding: 40px 0;
    }

    .custom-footer .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        gap: 20px;
    }

    .custom-footer .footer-text {
        text-align: right;
    }

    .custom-footer .footer-logo img {
        max-height: 60px;
    }
}

/* Mobile pequeno */
@media (max-width: 480px) {
    .custom-footer {
        padding: 20px 0;
    }

    .custom-footer .footer-content {
        gap: 10px;
    }

    .custom-footer .footer-logo img {
        max-height: 40px;
    }

    .custom-footer .footer-text {
        font-size: 12px;
    }
}

/* ===========================
   ESTRUTURA DE PÁGINA PARA FOOTER
   =========================== */

/* Garantir que o footer fique no final */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
/* Layout: garante footer no final da página */
html, body {
    height: 100%;
}
#page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
#page-footer {
    margin-top: auto;
}

/* Em páginas administrativas, nunca fixar o footer. */
.path-admin #page-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    z-index: auto !important;
}

/* Em páginas administrativas, neutraliza qualquer fixação do rodapé. */
.path-admin #page-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    z-index: auto !important;
}

/* Logo do footer (usa variável com fallback) */
.footer-dj .footer-logo img {
    max-height: var(--footer-logo-max-height, 80px);
    max-width: 100%;
    height: auto;
}

/* Ícones sociais do footer (variáveis com fallback) */
.footer-dj .footer-social .footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    text-decoration: none;
}
.footer-dj .footer-social .footer-social-link i {
    font-size: var(--footer-social-icon-size, 22px);
    color: var(--footer-social-icon-color, #ffffff);
    transition: color .2s ease;
}
.footer-dj .footer-social .footer-social-link:hover i {
    color: var(--footer-social-icon-hover-color, #ffcc00);
}

/* Bloco default de texto do footer (fallback) */
.footer-dj .footer-text .footer-copy {
    font-size: .95rem;
    margin-bottom: .25rem;
}
.footer-dj .footer-text .footer-legal a {
    color: inherit;
    text-decoration: none;
    margin: 0 .25rem;
}
.footer-dj .footer-text .footer-legal a:hover {
    text-decoration: underline;
}
/* Variações de cores para temas */
.custom-footer.dark-theme {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.custom-footer.light-theme {
    background-color: #f8f9fa;
    color: #343a40;
}

/* Animações sutis */
.custom-footer {
    transition: all 0.3s ease;
}

.custom-footer:hover {
    box-shadow: 0 -3px 15px rgba(0,0,0,0.15);
}
