/* =====================================================
   Sistema de Notícias - Instituto Sertões
   Cores adaptadas: #ffab17 (dourado/laranja)
   ===================================================== */

/* Container principal */
.noticias-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Barra de busca */
.noticias-busca {
    margin-bottom: 25px;
}

.noticias-busca form {
    display: flex;
    gap: 10px;
    max-width: 600px;
}

.noticias-busca input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
}

.noticias-busca input:focus {
    outline: none;
    border-color: #ffab17;
}

.noticias-busca button {
    padding: 12px 25px;
    background: #ffab17;
    color: #1f2126;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.noticias-busca button:hover {
    background: #e69a00;
}

/* Filtros por categoria */
.categorias-filtro {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.categoria-filtro-item {
    display: inline-block;
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.categoria-filtro-item:hover,
.categoria-filtro-item.active {
    background: #ffab17;
    border-color: #ffab17;
    color: #1f2126;
    text-decoration: none;
}

/* Hero de notícias */
.noticias-hero {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    margin-bottom: 40px;
}

.noticia-destaque-principal {
    grid-row: 1 / 3;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 400px;
    background: #1a1a1a;
}

.noticia-destaque-principal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.noticia-destaque-principal .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    z-index: 2;
}

.noticia-destaque-principal .overlay h2 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.noticia-destaque-principal .overlay h2 a {
    color: #fff;
    text-decoration: none;
}

.noticia-destaque-principal .overlay h2 a:hover {
    color: #ffab17;
}

.manchetes {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 12px;
}

.manchete-item {
    padding: 6px 0;
}

.manchete-item a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
}

.manchete-item a:hover {
    color: #ffab17;
}

/* Cards laterais */
.noticia-card-lateral {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-card-lateral:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    text-decoration: none;
}

.noticia-card-lateral .imagem-wrapper {
    height: 120px;
    overflow: hidden;
}

.noticia-card-lateral .imagem-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.noticia-card-lateral .card-content {
    padding: 12px;
}

.noticia-card-lateral .card-content h3 {
    font-size: 0.85rem;
    color: #1f2126;
    margin-bottom: 5px;
    line-height: 1.3;
}

.noticia-card-lateral .card-content .resumo {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.4;
}

.noticia-card-lateral .placeholder-img {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2rem;
}

/* Seção de notícias */
.noticias-secao {
    margin-bottom: 40px;
}

.noticias-secao-header {
    margin-bottom: 25px;
}

.noticias-secao-titulo {
    font-size: 1.5rem;
    color: #1f2126;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 3px solid #ffab17;
    display: inline-block;
}

/* Grid de notícias estilo portal */
.noticias-grid-globo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.noticia-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.noticia-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.noticia-item .imagem-wrapper {
    height: 180px;
    overflow: hidden;
}

.noticia-item .imagem-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.noticia-item:hover .imagem-wrapper img {
    transform: scale(1.05);
}

.noticia-item .imagem-wrapper .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 2.5rem;
}

.noticia-item .conteudo {
    padding: 18px;
}

.noticia-item .conteudo h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.noticia-item .conteudo h3 a {
    color: #1f2126;
    text-decoration: none;
    transition: color 0.3s;
}

.noticia-item .conteudo h3 a:hover {
    color: #ffab17;
}

.noticia-item .conteudo .resumo {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
}

/* Estado vazio */
.noticias-vazio {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.noticias-vazio i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
}

.noticias-vazio h3 {
    font-size: 1.3rem;
    color: #555;
    margin-bottom: 10px;
}

/* Paginação */
.noticias-paginacao {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    padding: 20px 0;
}

.noticias-paginacao a,
.noticias-paginacao span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.noticias-paginacao a {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.noticias-paginacao a:hover {
    background: #ffab17;
    color: #1f2126;
    border-color: #ffab17;
}

.noticias-paginacao span.active span {
    background: #ffab17;
    color: #1f2126;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 700;
}

.noticias-paginacao span.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Página individual de notícia */
.noticia-header {
    background: #fff;
    padding: 60px 0 40px;
    color: #333;
}

.noticia-header .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.noticia-header .categoria-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.noticia-header h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #1f2126;
}

.noticia-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #888;
    color: rgba(255,255,255,0.7);
}

.noticia-meta i {
    margin-right: 5px;
    color: #ffab17;
}

/* Conteúdo da notícia */
.noticia-conteudo {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.noticia-conteudo .imagem-destaque {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.noticia-conteudo .imagem-destaque img {
    width: 100%;
    height: auto;
    display: block;
}

.noticia-conteudo .imagem-legenda {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    padding: 10px;
    font-style: italic;
}

.noticia-conteudo .texto {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.noticia-conteudo .texto p {
    margin-bottom: 20px;
}

.noticia-conteudo .texto img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Compartilhamento */
.noticia-compartilhar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 30px;
}

.noticia-compartilhar span {
    font-weight: 600;
    color: #333;
}

.noticia-compartilhar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.3s;
}

.noticia-compartilhar a:hover {
    transform: scale(1.1);
}

/* Notícias relacionadas */
.noticias-relacionadas {
    background: #f5f7fa;
    padding: 40px 0;
    margin-top: 40px;
}

.noticias-relacionadas h3 {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 30px;
    color: #1f2126;
}

.noticias-relacionadas .grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsivo */
@media (max-width: 992px) {
    .noticias-hero {
        grid-template-columns: 1fr 1fr;
    }
    
    .noticia-destaque-principal {
        grid-column: 1 / 3;
        grid-row: auto;
    }
    
    .noticias-grid-globo {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .noticias-relacionadas .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .noticias-hero {
        grid-template-columns: 1fr;
    }
    
    .noticia-destaque-principal {
        grid-column: auto;
        min-height: 300px;
    }
    
    .noticias-grid-globo {
        grid-template-columns: 1fr;
    }
    
    .noticias-relacionadas .grid {
        grid-template-columns: 1fr;
    }
    
    .noticias-busca form {
        flex-direction: column;
    }
    
    .noticia-header h1 {
        font-size: 1.5rem;
    }
}
