/* --- Estrutura Fundamental (Sticky Footer com Flexbox) --- */
html {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    
    font-family: 'Poppins', sans-serif;
    color: #443422;
    background: linear-gradient(to bottom, #6d2727, #e6c8a0); 
}

/* --- Container Principal --- */
.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

/* --- Rodapé --- */
footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #6d2727;
    flex-shrink: 0;
}

/* --- Elementos --- */
.logo {
    max-width: 250px;
    height: auto;
    margin-top: 40px;
    margin-bottom: 20px;
    animation: pulse 4s infinite ease-in-out;
}

.slogan {
    font-size: 1.2rem;
    font-weight: 400;
    font-style: italic;
    color: #e6c8a0;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 30px;
}

.banner-container {
    margin-top: 40px; 
}

.banner-image {
    max-width: 180px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.banner-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- ESTILOS PARA O WIDGET DO AZURACAST --- */
.widget-container {
    max-width: 450px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 25px;
}

.player-widget {
    height: 150px;
}

/* --- Seção de Notícias --- */
.news-section {
    width: 100%;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 60px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.news-section h2 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.news-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.news-button {
    background-color: #6d2727;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.news-button:hover {
    background-color: #8a3232;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.news-button i {
    font-size: 1em;
}

/* --- Seção de Contato --- */
.contact-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6d2727;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* CORREÇÃO 1: Garante que o link de contato não mude de cor depois de clicado */
.contact-link:visited {
    color: #6d2727;
}

.contact-link:hover {
    color: #443422;
    text-decoration: underline;
}

/* --- AJUSTES FINOS PARA TELAS PEQUENAS (CELULARES) --- */
@media (max-width: 600px) {
    .main-container {
        padding: 15px 20px;
    }
    .logo {
        max-width: 150px;
        margin-top: 20px;
        margin-bottom: 15px;
    }
    .slogan {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .widget-container {
        max-width: 95%;
        margin-bottom: 20px;
    }
    .player-widget {
        height: 130px;
    }
    .banner-container {
        margin-top: 25px;
    }
    .banner-image {
        max-width: 160px;
    }
    .news-section {
        /* CORREÇÃO 2: Aumenta o espaço acima da seção de notícias no celular */
        margin-top: 60px; 
        padding: 15px;
        margin-bottom: 30px;
    }
    .news-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    .news-links {
        gap: 8px;
    }
    .news-button {
        padding: 7px 12px;
        font-size: 0.75rem;
        gap: 5px;
    }
    .contact-link {
        font-size: 0.9rem;
    }
    footer {
        padding: 15px 0;
    }
}

/* --- ANIMAÇÃO DE PULSAÇÃO --- */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}