/* Reset básico e Tipografia */
:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --accent-color: #f2c94c;
    --gray-light: #f4f4f4;
    --gray-medium: #e0e0e0;
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    
    /* Cores dos Humores */
    --color-bela: #27ae60;
    --color-nao-bela: #c0392b;
    --color-neutro: #2c3e50;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Header Tripartido (Ajustado para Imagem 1792x576) --- */
.mood-header {
    display: flex;
    width: 100%;
    /* AUMENTADO PARA 420px: Garante que a imagem wide caiba sem cortar */
    height: 420px; 
    border-bottom: 1px solid var(--gray-medium);
    background-color: #000; /* Fundo preto para evitar clarões no carregamento */
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: height 0.5s ease;
}

.mood-section {
    /* Estado Padrão (Inativo) */
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Garante que o texto fique colado no fundo */
    justify-content: flex-end; 
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-right: 1px solid rgba(255,255,255,0.2);
    background: #000;
    position: relative;
    overflow: hidden;
}

.mood-section:last-child { border-right: none; }

/* --- Imagem de Fundo --- */
.mood-section img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* COVER: Preenche tudo. Como aumentamos a altura do header, vai cortar menos ou nada. */
    object-fit: cover; 
    /* CENTER: Garante que o centro da imagem (rosto) nunca seja cortado */
    object-position: center center; 
    transition: all 0.6s ease;
    filter: grayscale(100%) brightness(0.6); /* Inativos mais escuros */
    z-index: 1;
    opacity: 0.7;
}

/* --- Texto/Legenda --- */
.mood-section span {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    /* Fundo gradiente para leitura perfeita sem cobrir a arte */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    padding: 25px 10px 15px 10px; /* Espaçamento para o texto respirar embaixo */
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ddd; /* Cor clara para contraste com fundo escuro dos inativos */
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: all 0.4s;
    border-bottom: 4px solid transparent; /* Borda inferior */
}

/* --- ESTADO ATIVO --- */
.mood-section.active-mood {
    flex: 6; /* Abre ainda mais para mostrar a imagem panorâmica */
    z-index: 10;
}

.mood-section.active-mood img {
    filter: grayscale(0%) brightness(1); /* Original */
    opacity: 1;
    transform: scale(1.0); /* Tamanho real */
}

.mood-section.active-mood span {
    font-size: 1.2rem;
    padding: 30px 20px 20px 20px;
    color: #fff;
    /* No ativo, removemos o gradiente preto e usamos a cor da identidade */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

/* Cores das Bordas no Ativo */
.section-left.active-mood span { border-bottom-color: var(--color-bela); }
.section-center.active-mood span { border-bottom-color: var(--color-neutro); }
.section-right.active-mood span { border-bottom-color: var(--color-nao-bela); }


/* --- ESTADO HOVER (Inativos) --- */
.mood-section:not(.active-mood):hover {
    flex: 1.5;
    cursor: pointer;
}
.mood-section:not(.active-mood):hover img {
    filter: grayscale(50%) brightness(0.8);
}

/* --- Layout de Conteúdo --- */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px 20px;
}

.news-date {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

h1.headline {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.intro-text {
    font-size: 1.15rem;
    margin-bottom: 40px;
    color: #555;
    font-style: italic;
    border-left: 3px solid var(--gray-medium);
    padding-left: 15px;
}

/* Blocos de Notícia */
.news-block { margin-bottom: 50px; background: #fff; }

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}

.news-icon { font-size: 1.4rem; }

p { margin-bottom: 15px; font-size: 1.05rem; color: #444; }

.highlight {
    background-color: rgba(242, 201, 76, 0.3);
    padding: 0 4px;
    border-radius: 2px;
}

footer {
    text-align: center;
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--gray-medium);
    font-size: 0.8rem;
    color: #999;
}

footer a { color: #777; text-decoration: none; }

/* --- Responsividade Mobile --- */
@media (max-width: 768px) {
    .mood-header {
        flex-direction: column;
        height: auto;
    }

    .mood-section {
        width: 100%;
        height: 70px; /* Altura do botão inativo */
        flex-direction: row;
        justify-content: center;
        align-items: center;
        border-right: none;
        border-bottom: 1px solid #fff;
    }
    
    .mood-section span {
        background: transparent;
        text-shadow: 0 2px 4px rgba(0,0,0,0.9);
        padding: 0;
        border: none;
    }

    .mood-section.active-mood {
        /* No mobile, uma altura menor é suficiente */
        height: 200px; 
        flex: none;
        align-items: center;
        justify-content: flex-end;
    }
    
    .mood-section.active-mood span {
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
        width: 100%;
        padding: 15px;
    }
}