/* caixafase2styles.css */

/* Estilo para a linha divisora */
.fase-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 20px 0;
}

/* Container para as caixas da FASE 2 */
.fase2-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5cm, 1fr));
    gap: 10px;
    padding: 10px;
    box-sizing: border-box;
}

/* Estilo para cada caixa de notícia */
.noticia-box {
    width: 5cm;
    height: 7cm; /* CORRIGIDO: A altura foi aumentada para 5cm */
    min-height: 5cm;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    color: #000;
    font-weight: normal;
    transition: background-color 2s ease-in-out;
    cursor: pointer;
}

/* Estilo para o conteúdo dentro das caixas */
.noticia-box-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    font-size: 0.9em;
    transition: opacity 0.5s ease-in-out;
}

/* Animações de transição de conteúdo */
.noticia-box-content.fade-out {
    opacity: 0;
}

.noticia-box-content.fade-in {
    opacity: 1;
}

/* Estilo específico para títulos de notícia e anúncios */
.news-title, .ad-content {
    font-size: 1em;
    line-height: 1.2;
    padding: 0 5px;
}

/* Estilo específico para o título de notícias patrocinadas */
.sponsored-title {
    font-size: 1em;
    line-height: 1.2;
}

.sponsored-title small {
    display: block;
    margin-top: 5px;
    font-size: 0.7em;
    color: #666;
}

/* Estilos para a imagem em miniatura da notícia */
.news-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Estilos para o conteúdo do popup de notícia */
.news-popup-content h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #007bff;
}

.news-popup-content p {
    font-size: 1em;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    margin: 10px 0;
}

.news-popup-content strong {
    color: #333;
}

/* Estilos para o link do patrocinador */
.sponsor-link-container {
    margin-top: 20px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-align: center;
}

.sponsor-link {
    font-size: 1.1em;
    font-weight: bold;
    color: #d81b60;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sponsor-link:hover {
    color: #ff5252;
}

/* Classes para a mutação de cor (agora 9 cores para mais variedade) */
.color-mutation-1 {
    background-color: #f0f2f5;
    color: #333;
}

.color-mutation-2 {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.color-mutation-3 {
    background-color: #e3f2fd;
    color: #1565c0;
}

.color-mutation-4 {
    background-color: #ffebee;
    color: #c62828;
}

.color-mutation-5 {
    background-color: #fffde7;
    color: #f9a825;
}

.color-mutation-6 {
    background-color: #f3e5f5;
    color: #6a1b9a;
}

.color-mutation-7 {
    background-color: #e0f2f1;
    color: #00695c;
}

.color-mutation-8 {
    background-color: #fbe9e7;
    color: #d84315;
}

.color-mutation-9 {
    background-color: #eceff1;
    color: #37474f;
}

/* --------------------------------------------------------- */
/*  CORREÇÃO CRÍTICA PARA CLIQUES NO CELULAR (Fase 2 - 120 caixas)
    Esta regra impede que imagens, títulos e acrônimos
    capturem o toque, devolvendo o click ao container.
    Isso faz a função handleBoxClick() funcionar no mobile. */
/* --------------------------------------------------------- */

.news-thumbnail,
.news-title,
.news-acronym {
    pointer-events: none !important;
}
