/* ==========================================================
   ESTILOS GERAIS E LAYOUT PRINCIPAL
   ========================================================== */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 20px;
}

.titulo-principal {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 12px;
}



/* ==========================================================
   COMPONENTE DE TOGGLE DOS FILTROS
   ========================================================== */
.filtros-toggle {
    background: linear-gradient(180deg, rgba(100,100,100,0.2), rgba(100,100,100,0.3));
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(120,120,120,0.08);
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(18,18,18,0.03);
    font-weight: 600;
    font-size: 14px;
    transition: 
        transform 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease;
    width: 250px;
    margin: 0 auto;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.filtros-toggle:hover {
    box-shadow: 0 6px 20px rgba(18,18,18,0.06);
}

.filtros-toggle:active {
    transform: translateY(0);
}

.filtros-toggle .label {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.filtros-toggle .subtitle {
    font-size: 11px;
    font-weight: 500;
    opacity: 0.75;
    margin-top: 2px;
    text-transform: none;
}

.filtros-toggle .chevron {
    width: 18px;
    height: 18px;
    display: inline-block;
    transition: transform 300ms cubic-bezier(.22,.9,.32,1);
    transform-origin: center;
}

/* ==========================================================
   PAINEL DE FILTROS (DROPDOWN)
   ========================================================== */
.filtros-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 420ms cubic-bezier(.2,.9,.25,1), opacity 260ms ease, transform 360ms cubic-bezier(.2,.9,.25,1);
    will-change: max-height, opacity, transform;
    margin: 2px auto 24px auto;
    max-width: 840px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(180deg, rgba(100,100,100,0.2), rgba(100,100,100,0.3));
    padding: 0 20px;
    box-shadow: 0 10px 30px rgba(12,12,20,0.04);
}

.filtros-panel.toggled {
    opacity: 1;
    transform: translateY(0);
}

.filtros-inner {
    padding: 5px 0 15px 0;
    display: block;
}

.filtros-panel h2 {
    margin: 0 0 12px 0;
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
}

/* ==========================================================
   GRUPOS E ITENS DE FILTRO
   ========================================================== */
.filtro-group {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    min-width: 140px;
    flex: 1 1 160px;
}

.filtro-item label, .filtro-palavras label {

    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.filtro-item select {
    padding: 10px 14px;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    background-color: #fff;
    font-size: 14px;
    color: #222;
    transition: box-shadow 150ms ease, border-color 150ms ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 40px;
}

.filtro-item select:focus {
    outline: none;
    border-color: #bdbdbd;
    box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.filtro-palavras {
    padding-top: 15px;
    width: 100%;
}

.filtro-palavras input {
    width: 97.5%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 5px;
    font-size: 14px;
}

.sugestoes-palavras {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.sugestao-palavra {
    background-color: rgb(60,60,60);
    color: lightgray;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.sugestao-palavra:hover {
    background-color: rgb(100,100,100);
}

.palavra-selecionada {
    background-color: rgb(100,100,100);
    color: white;
}

.divisa{
    height: 1px;
    width: 100%;
}

/* ==========================================================
   BOTÕES DE AÇÃO
   ========================================================== */
#botoes {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 2px;
}

.btn-filtrar, .btn-limpar {
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-filtrar:hover, .btn-limpar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.btn-filtrar, .btn-limpar {
    background: linear-gradient(180deg,#f6f6f6,#f2f2f2);
}

/* ==========================================================
   ESTADO DE SEM RESULTADOS
   ========================================================== */
.sem-resultados {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #888;
    font-size: 15px;
}

/* ==========================================================
   LISTA DE NOTÍCIAS - CARDS
   ========================================================== */
.lista-noticias {
    max-width: 1000px;
    margin: auto;
    padding: 30px 20px;
}

.lista-noticias h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 35px;
    background: linear-gradient(90deg, silver, darkgray);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.noticia-card {
    background: rgba(150, 150, 150, 0.2);
    border: 1px solid rgba(100, 100, 100, 0.2);
    border-radius: 14px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65);
    display: flex;
    gap: 0;
    align-items: stretch;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.noticia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
}

.noticia-card > div:first-child {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
}

.noticia-card img {
    width: 320px;
    height: 100%;
    object-fit: cover;
    margin: 0;
    display: block;
}

.noticia-card > div:last-child {
    flex: 1;
    padding: 20px;
}

.resumo-container {
    line-height: 1.7rem;
}



.fade-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 1.6em;
    background: linear-gradient(90deg, transparent, rgba(20, 20, 20, 0.95) 70%);
    pointer-events: none;
}

.reticencias {
    display: inline;
    color: #ddd;
}


/* ==========================================================
   PÁGINA INDIVIDUAL DE NOTÍCIA
   ========================================================== */
.conteudo-noticia {
    max-width: 900px;
    margin: auto;
    padding: 15px;
    font-size: 1.1rem;
}

.player-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 5px 10px;
  background-color: rgba(100, 100, 100, 0.1);
  border-radius: 8px;
  max-width: 350px;
  margin: 10px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-titulo {
  font-size: 16px;
  margin-bottom: 8px;
  text-align: center;
}

.player {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 180px;
}


.player button,
.player a {
  background: #444;
  border: none;
  color: white;
  padding: 0; 
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
  width: 30px;
  height: 25px; 
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}


.player button:hover, .player a:hover {
  background: #666;
}

#tempo {
  flex-grow: 1;
  text-align: center;
  font-size: 14px;
  }

article h1 {
    line-height: 2.5rem;
    font-size: 2rem;
}

.data-publicacao {
    font-size: 0.8rem;
    color: #aaa;
    margin-bottom: 20px;
    text-align: right;
}

.noticia p {
    margin-bottom: 1em;
}

.noticia figure {
    max-width: 400px;
    margin: 5px auto 7px auto;
}

.noticia img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin-bottom: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.noticia img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    cursor: zoom-in;
}

.noticia figcaption {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.5;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 6px;
    font-style: italic;
}

.noticia figcaption span.fonte {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-top: 3px;
    font-style: normal;
}

.secao-referencias {
    text-align: right;
    width: 100%;
    border-top: 1px solid gray;
     color: #999;
}
.secao-referencias li, .secao-referencias a{
    color: #999;
}

.secao-referencias h2 {
    margin-bottom: -5px;
    font-size: 1.5rem;
}

@media (max-width: 640px) {
    .lista-referencias{
    font-size: 12px;
}
article {
    padding: 5px;
    text-align: left;
}
article p, article li{
    line-height: 1.4;
}
}
@media (min-width: 641px) {
    .lista-referencias{
    font-size: 13px;
    max-width: 500px;
    float: right;
}
article {
    padding: 30px;
    text-align: justify;
}
article p, article li{
    line-height: 1.6;
}
}




.secao-referencias li {
    list-style-type: none;
    margin-bottom: 15px;
}


/* ==========================================================
   RESPONSIVIDADE
   ========================================================== */
@media (max-width: 640px) {
    .filtro-group {
        gap: 12px;
        align-items: stretch;
    }
    .filtro-item {
        min-width: 100%;
        flex: 1 1 100%;
    }
    .filtros-toggle {
        width: calc(100% - 40px);
        justify-content: center;
    }
}

@media (min-width: 851px) {
    .noticia-card {
        height: 230px;
    }
    .noticia-card h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        margin-top: -5px;
        text-shadow: 0 0 2px rgba(122,182,255,0.5);
        line-height: 1.3;
        height: 3rem;
    }
}

@media (max-width: 850px) {
    .noticia-card {
        flex-direction: column;
        padding: 0;
    }
    .noticia-card h2, .noticia-card .data-publicacao, .noticia-card .resumo-container {
        padding-right: 20px;
    }
    .noticia-card h2 {
        font-size: 1.2rem;
        margin-bottom: 8px;
        margin-top: -5px;
        text-shadow: 0 0 2px rgba(122,182,255,0.5);
        line-height: 1.3;
    }
    .noticia-card > div:first-child {
        width: 100%;
    }
    .noticia-card img {
        width: 100%;
        height: 200px;
        border-radius: 14px 14px 0 0;
    }
    .noticia-card > div:last-child {
        padding: 15px;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .noticia figure:nth-of-type(odd) {
        float: right;
        margin-left: 25px;
    }
    .noticia figure:nth-of-type(even) {
        float: left;
        margin-right: 25px;
    }
    .espaco{
        height: 20px;
    }
}

.noticia::after {
    content: "";
    display: block;
    clear: both;
}



/* ==========================================================
   AMPLIAR IMAGENS
   ========================================================== */
        .modal-zoom {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0);
            z-index: 1000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            visibility: hidden;
            transition: background-color 0.4s ease, opacity 0.4s ease, visibility 0.4s;
            cursor: zoom-out;
        }
        
        .modal-zoom.active {
            background-color: rgba(0, 0, 0, 0.92);
            opacity: 1;
            visibility: visible;
        }
        
        .modal-content {
            max-width: 85%;
            max-height: 85%;
            transform: scale(0.8);
            opacity: 0;
            transition: transform 0.5s ease, opacity 0.5s ease;
            box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
            border-radius: 4px;
        }
        
        .modal-zoom.active .modal-content {
            transform: scale(1);
            opacity: 1;
        }
        
        .modal-caption {
            position: absolute;
            bottom: 30px;
            left: 0;
            width: 100%;
            text-align: center;
            color: white;
            padding: 15px;
            background-color: rgba(0, 0, 0, 0.7);
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
        }
        
        .modal-zoom.active .modal-caption {
            opacity: 1;
            transform: translateY(0);
        }
        
        .modal-caption a {
            color: #3498db;
            text-decoration: none;
        }
        
        .modal-caption a:hover {
            text-decoration: underline;
        }

/* ==========================================================
   ACESSIBILIDADE
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .filtros-panel, .filtros-toggle .chevron {
        transition: none !important;
        animation: none !important;
    }
}