:root {
    --dark-footer-bg: #111;
    --text-color: #f0f0f0;
    --accent-color: #00dbde; /* Cor para destaque */
    --link-color: #90dffe; /* Cor dos links */
    --hover-color: #e81cff; /* Cor ao passar o mouse */
    --ticker-bg: #222; /* Fundo da barra de notícias */
    --ticker-text: #fff; /* Cor do texto/ícone na barra de notícias */
    --yellow:#f0db4f;
    --purple:#393be5;
}

/* Footer Geral */
.dynamic-footer {
    background-color: var(--dark-footer-bg);
    padding-top: 0; /* Remove padding superior para a barra de notícias */
    border-top: 3px solid var(--yellow);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden; /* Garante que a animação não vaze */
}

/* Barra de Notícias Animada */
.news-ticker-link {
    display: block;
    text-decoration: none;
    width: 100%;
}

.news-ticker-wrapper {
    background-color: var(--ticker-bg);
    padding: 10px 0;
    white-space: nowrap; /* Garante que o conteúdo fique em uma linha */
    overflow: hidden; /* Esconde o conteúdo que está fora da tela */
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 -2px 5px rgba(0, 0, 0, 0.2);
}

.news-ticker-inner {
    display: inline-block; /* Permite que o conteúdo role */
    animation: ticker-move 30s linear infinite; /* Animação de rolagem */
    color: rgb(255, 255, 255);
    /* Este conteúdo será preenchido via JS */
}

.news-ticker-inner img {
    height: 30px; /* Tamanho da imagem que se repete */
    vertical-align: middle;
    margin: 0 20px; /* Espaçamento entre as imagens */
    filter: brightness(0.8) grayscale(1); /* Deixa a imagem um pouco escura e P&B */
    transition: filter 0.3s ease-in-out;
}

.news-ticker-wrapper:hover .news-ticker-inner {
    animation-play-state: paused; /* Pausa a animação ao passar o mouse */
}

.news-ticker-wrapper:hover .news-ticker-inner img {
    filter: brightness(1) grayscale(0); /* Colore a imagem ao passar o mouse */
}


@keyframes ticker-move {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); } /* Rola até a metade do conteúdo para repetição suave */
}

/* Conteúdo Inferior do Footer */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap; /* Permite que os elementos quebrem a linha */
}

.footer-left {
    flex: 1;
    min-width: 200px; /* Garante espaço mínimo */
    text-align: left;
}

.social-links {
    display: flex;
    flex-direction: column; /* Links em 3 linhas */
    gap: 8px;
}

.social-links a {
    color: var(--yellow);
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 400;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    padding: 3px 0;
    display: inline-block; /* Para o transform funcionar */
}

.social-links a:hover {
    color: var(--purple);
    transform: translateX(5px); /* Efeito de deslize */
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px; /* Garante espaço mínimo */
    text-align: center;
    margin-top: 20px; /* Espaço em mobile */
}

.profile-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;

    margin-bottom: 10px;
    border: 2px solid var(--yellow);
    box-shadow: 0 0 25px var(--yellow);); 
    transition: transform 0.3s ease-in-out;
}

.profile-photo:hover {
    transform: scale(1.05);
}

.profile-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.5px;
}

/* Crédito Final */
.footer-credit {
    text-align: center;
    padding: 20px 40px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 20px;
}
.free-link {
    text-decoration: none;
    color: white;
}

.heart-icon {
    color: #e73cae; /* Coração vermelho */
    animation: pulse 1.5s infinite;
    display: inline-block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsividade */
@media (max-width: 1200px) {
    .footer-bottom-content {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .footer-right {
        align-items: center; /* Centraliza a foto e o nome */
        margin-top: 10px; /* Ajusta o espaço em mobile */
    }

    .footer-left, .footer-right {
        text-align: center;
        margin-bottom: 25px;
        min-width: unset;
        width: 100%;
    }

    .social-links {
        align-items: center; /* Centraliza os links em mobile */
    }

    .footer-right {
        margin-top: 0; /* Remove o margin-top extra em mobile */
    }
}

@media (max-width: 480px) {
    .news-ticker-inner img {
        height: 25px;
        margin: 0 15px;
    }

    .profile-photo {
        width: 70px;
        height: 70px;
    }

    .profile-name {
        font-size: 1.2em;
    }

    .footer-credit {
        padding: 15px 20px;
        font-size: 0.8em;
    }
}