/* Estilos para a seção de jornais no index.php */


 body {
            color: #666666;
    font-size: 15px;
    font-family: 'Catamaran', sans-serif;
    line-height: 1.80857;
        }
/* Seção de Pesquisa de Jornais */
.search-jornais-container {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    margin-top: 10px;
}

.search-form-jornais {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-top: 20px;
}

.form-row-jornais {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
     align-items: flex-end;
}

.form-group-jornais {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    min-width: 180px;
  }

.form-group-jornais label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #6a4f00;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.label-icon {
    color: #6a4f00;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.form-group-jornais input,
.form-group-jornais select {
    width: 100%;
    padding: 12px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
   
}

.form-group-jornais input:focus,
.form-group-jornais select:focus {
    outline: none;
    border-color: #6a4f00;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-group-jornais:last-child {
  flex: 0; /* button only as wide as needed */
}

@media (max-width: 992px) {
  .form-row-jornais {
    flex-direction: column; /* stack vertically */
    align-items: stretch; /* make fields full width */
  }

  .form-group-jornais {
    width: 100%;
  }

  .btn-search-jornais {
    width: 100%; /* button full width on small screens */
    margin-top: 10px;
  }
}

.btn-search-jornais {
    width: 100%;
    background: linear-gradient(45deg, #fabc05, #b58700);
    color: white;
    border: none;
    white-space: nowrap; /* keep button text in one line */
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
    text-shadow: 0px 3px 3px rgba(104, 104, 104, 0.5);
}

.btn-search-jornais:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(104, 104, 104, 0.9);
    filter:brightness(1.1);
}

.btn-search-jornais i {
    margin-right: 8px;
}

/* Resultados da Pesquisa */
.results-header-jornais {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid #6a4f00;
}

.results-header-jornais h4 {
    margin: 0 0 10px 0;
    color: #6a4f00;
    font-size: 20px;
    font-family: 'Merriweather', serif;
}

.results-header-jornais p {
    margin: 0;
    color: #495057;
    font-size: 14px;
}

#lista-resultados-jornais {
    margin-bottom: 20px;
}

.resultado-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.resultado-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #6a4f00;
}

.resultado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e9ecef;
}

.resultado-fonte {
    font-weight: 600;
    color: #6a4f00;
    font-size: 15px;
}

.resultado-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #6c757d;
}

.resultado-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.resultado-snippet {
    font-family: 'Merriweather', serif;
    line-height: 1.6;
    color: #495057;
    font-size: 14px;
    margin-bottom: 12px;
}

.resultado-snippet mark {
    background: #fff59d;
    padding: 2px 4px;
    border-radius: 3px;
}

.resultado-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
}

.resultado-arquivo {
    font-size: 12px;
    color: #6c757d;
    font-style: italic;
}

/* Lista de Jornais */
.jornais-lista-container {
    background: #fff;
    padding: 30px;
    padding-top: 10;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.jornais-controles {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.jornais-ordenacao {
    display: flex;
    gap: 10px;
    align-items: center;
}

.jornais-ordenacao label {
    font-weight: 600;
    color: #333;
    
}

.jornais-ordenacao select {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.3s;
}

.jornais-ordenacao select:hover {
    border-color: #6a4f00;
}

.jornais-tabela-wrapper {
    overflow-x: auto;
}

.jornais-tabela {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-collapse: separate;
    border-radius: 8px;
    border-spacing: 0;
    overflow: hidden;
}

.jornais-tabela thead {
    background: linear-gradient(135deg, #fabc05 0%, #b58700 100%);
    color: white;  
    text-shadow: 0px 3px 3px rgba(104, 104, 104, 0.5);
    
}

.jornais-tabela th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    
}

.jornais-tabela td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.jornais-tabela tbody tr {
    cursor: pointer;
    transition: background 0.3s;
}

.jornais-tabela tbody tr:hover {
    background: #f8f9fa;
}

/* Remover cursor pointer de linhas sem edições */
.jornais-tabela tbody tr.sem-edicoes {
    cursor: default;
}

.jornal-nome {
    font-weight: 600;
    color: #333;
}

.jornal-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: #e9ecef;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #495057;
}

.btn-ver-jornal {
    padding: 6px 15px;
    background: #6a4f00;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-ver-jornal:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
    text-decoration: none;
}

/* Estilo para "ler mais" */
.ler-mais-link {
    color: #12557f;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.ler-mais-link:hover {
    text-decoration: underline;
    color: #0d3b5c;
}

/* Paginação */
.paginacao {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding: 20px 0;
}

.paginacao-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.paginas-numeros {
    display: flex;
    gap: 5px;
    align-items: center;
}

.btn-nav {
    padding: 10px 20px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn-nav:hover:not(:disabled) {
    background: linear-gradient(135deg, #b58700 0%, #fabc05 100%);
    color: white;
    border-color: #6a4f00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(106, 79, 0, 0.2);
}

.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f8f9fa;
}

.btn-pagina {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.btn-pagina:hover {
    background: #f8f9fa;
    border-color: #6a4f00;
    color: #6a4f00;
}

.btn-pagina.active {
    background: linear-gradient(135deg, #b58700 0%, #fabc05 100%);
    color: white;
    border-color: #6a4f00;
    box-shadow: 0 3px 8px rgba(106, 79, 0, 0.3);
}

.pagina-ellipsis {
    padding: 0 8px;
    color: #adb5bd;
    font-weight: bold;
}

.paginacao-info {
    padding: 10px 20px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 576px) {
    .paginacao-wrapper {
        gap: 5px;
    }
    
    .btn-nav {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-pagina {
        min-width: 35px;
        height: 35px;
        font-size: 12px;
        padding: 6px 8px;
    }
    
    .paginacao-info {
        font-size: 12px;
        padding: 8px 15px;
    }
}



/* cards */

.icon-wrapper {
  width: 60px;
  height: 60px;
  border: 2px solid #6a4f00;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #6a4f00;
  background: antiquewhite;
  transform: rotate(45deg); /* diamond shape */
  margin: 0 auto 1rem auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.icon-wrapper span {
  transform: rotate(-45deg); /* keep text upright */
  display: inline-block;
}

.icon-wrapper:hover {
  transform: rotate(45deg) scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.card-jornal:hover {
  transform: translateY(-3px);
  transition: 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Remover cursor pointer de cards sem edições */
.card-jornal.sem-edicoes {
  cursor: default;
}

.jornais-cards-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.jornais-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  text-align: center;
}

.jornais-card:hover {
  transform: translateY(-4px);
}

.jornais-card h3 {
  color: #6a4f00;
  margin-bottom: 0.5rem;
}

.jornais-card p {
  margin: 0.25rem 0;
}



/* Hide radios visually but keep them functional */
input[type="radio"][name="caixaApresentacao"] {
  display: none;
}

label[for="view-list"] i,
label[for="view-cards"] i {
  transition: color 0.2s;
}

#view-list:checked + label i,
#view-cards:checked + label i {
  color: #6a4f00;
}

.btn-ver-jornal {
  position: relative;
  z-index: 2;
}



/* Loading */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #6a4f00;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Badges de tipo de conteúdo */
.badge-noticia { background: #d4edda; color: #155724; }
.badge-anuncio { background: #fff3cd; color: #856404; }
.badge-social { background: #d1ecf1; color: #0c5460; }
.badge-expediente { background: #f8d7da; color: #721c24; }
.badge-telegrama { background: #e2e3e5; color: #383d41; }

/* Responsividade */
@media (max-width: 768px) {
    .form-row-jornais {
        flex-direction: column;
    }
    
    .form-group-jornais {
        min-width: 100%;
    }
    
    .jornais-controles {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jornais-tabela {
        font-size: 14px;
    }
    
    .jornais-tabela th,
    .jornais-tabela td {
        padding: 10px 8px;
    }
    
    .jornal-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    .resultado-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* banner horizontal */
.newspaper-carousel-section {
	position: relative;
	width: 100%;
	overflow: hidden;
    padding: 30px;
}

.newspaper-carousel-container {
	position: relative;
    border: 2px solid #d39e00;
	height: 160px; /* adjust banner height */
	display: flex;
	align-items: center;
	justify-content: center;

}

.newspaper-slides {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
}

.newspaper-slides li {
	position: absolute;
	width: 100%;
	height: 100%;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	animation: newspaperSlide 25s infinite;
}

.newspaper-slides li:nth-child(1) { animation-delay: 0s; }
.newspaper-slides li:nth-child(2) { animation-delay: 5s; }
.newspaper-slides li:nth-child(3) { animation-delay: 10s; }
.newspaper-slides li:nth-child(4) { animation-delay: 15s; }
.newspaper-slides li:nth-child(5) { animation-delay: 20s; }

.newspaper-slides img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Title Overlay */
.newspaper-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.newspaper-title h2,
.newspaper-title p {
	color: #fff;
	margin: 0;
}

.newspaper-title h2 {
	font-size: 38px;
	font-weight: 700;
}

.newspaper-title p {
	font-size: 1rem;
	margin-top: 8px;
}

/* Animation with vertical strip effect */
@keyframes newspaperSlide {
	0% {
		opacity: 0;
		transform: translateY(100%);
	}
	5% {
		opacity: 1;
		transform: translateY(0);
	}
	20% {
		opacity: 1;
		transform: translateY(0);
	}
	25% {
		opacity: 0;
		transform: translateY(-100%);
	}
	100% {
		opacity: 0;
		transform: translateY(-100%);
	}
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.newspaper-carousel-container {
		height: 180px;
	}

	.newspaper-title h2 {
		font-size: 1.5rem;
	}

	.newspaper-title p {
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.newspaper-carousel-container {
		height: 150px;
	}

	.newspaper-title h2 {
		font-size: 1.3rem;
	}

	.newspaper-title p {
		font-size: 0.8rem;
	}
}
