/* Título */
.page-header { margin-bottom: 1.5rem; }
.page-title { font-size: 2rem; color: var(--color-text-title); }
.page-subtitle { color: #777; font-size: 0.95rem; }

/* Busca */
.search-container { display: flex; gap: 0.8rem; margin-bottom: 1rem; }
.search-input-wrapper { flex: 1; }
.search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    outline: none;
}

.btn-search {
    background-color: var(--color-primary);
    color: #fff;
    border: none;
    padding: 0.75rem 1.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-search:hover {
	background-color: #1A5195;
}

.btn-filter-toggle {
    background-color: #fff;
    border: 1px solid var(--color-border);
    padding: 0.75rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
	color: #1357AC;
	display: none;
}

.btn-filter-toggle:hover {
	background-color: #EDF1F4;
}

.btn-filter-toggle img{
	margin-right: 2px;
}

/* Chips */
.active-chips { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
    background-color: var(--color-chip-bg);
    color: var(--color-chip-text);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Layout de Colunas */
.layout-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
}

/* Sidebar Filtros */
.filters-sidebar {
    background: #fff;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    height: fit-content;
}

.sidebar-header { display: flex; justify-content: space-between; margin-bottom: 1.2rem; }
.filter-block {
	margin-bottom: 1.2rem;
	padding-top: 1.2rem;
	border-top: 1px solid var(--color-border);
}
.filter-block h4 { font-size: 0.85rem; margin-bottom: 0.5rem; color: #333; }
.inputs-inline { display: flex; gap: 0.5rem; }
.inputs-inline input { width: 100%; padding: 0.4rem; border: 1px solid var(--color-border); border-radius: 4px; }
.checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; }
.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; font-size: 0.8rem; }

/* ÁREA DE FILTROS LATERAL ESQUERDA */
/* Contêiner exterior que controla a largura no layout e esconde o excesso */
.filters-sidebar-wrapper {
  width: 300px; /* Defina aqui a largura da sua sidebar */
  flex-shrink: 0;
  overflow: hidden; /* Impede que a sidebar invada o espaço ao deslizar */
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Área de Cards */
.results-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
	font-size: 0.85rem;
}

.results-header .select-sort-wrapper {
	background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    height: fit-content;
	color: #333;
}

.pub-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.card-cover {
    width: 90px;
    height: 110px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #666;
    border-radius: 4px;
    text-align: center;
}

.card-cover-img{
	width: 8rem;
	border-radius: 5px;
}

.card-content { 
	flex: 1; 
}

.tag-tipo { 
	font-size: 0.75rem;
	color: #446672;
	font-weight: bold;
	background-color: #EAF3FA;
	padding: 0.2rem 0.6rem;
	border-radius: 50px;
}

.card-title {
	font-size: 1.1rem;
	color: #222;
	margin: 0.2rem 0;
}

.authors { 
	font-size: 0.8rem;
	color: #555;
	margin-bottom: 0.4rem;

}
.meta-info {
	font-size: 0.8rem;
	color: #666;

}
.meta-info p {
	margin-bottom: 0.2rem;
}

.card-actions {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	justify-content: center;
	padding-left: 0.5rem;
}

.action-icon {
	background: none;
	border: none;
	cursor:	pointer;
	transition: transform 0.2s ease;
}

.action-icon img{
	width: 1.3rem;
}

/* Troca de imagem no hover usando a propriedade content do CSS */
.btn-detalhes:hover img {
    content: url('../img/btn-mais-info-pub2.png');
}

.btn-acessar:hover img {
    content: url('../img/btn-acessar-arquivo2.png');
}

.btn-autores:hover img {
    content: url('../img/btn-autor-servidor2.png');
}

.load-more-container {
	text-align: center;
	margin-top: 1.5rem;
}

.btn-load-more {
	background: #fff;
	border: 1px solid var(--color-border);
	padding: 0.6rem 1.5rem;
	border-radius: 20px;
	cursor: pointer;
	display: none;
	margin: 0 auto;
}

/* Imagem interativa do DOI */
.doi-icon-link {
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}

.doi-icon-link img {
    height: 18px;
    width: auto;
    transition: opacity 0.2s ease;
}

/* Estilização da lista de autores */
.authors {
    line-height: 1.5;
}

.author-link-ufg {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.author-link-ufg:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* MODAL / OVERLAY DE DETALHES E CITAÇÃO */

/* Fundo escurecido que ocupa a tela toda */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.55); /* Escurece o fundo */
    backdrop-filter: blur(2px);            /* Efeito leve de desfoque */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

/* Modal Visível */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Caixinha Branca Centralizada */
.modal-container {
    background-color: #ffffff;
    width: 100%;
    max-width: 780px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    font-family: inherit;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Botão Fechar (X) */
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #1c529b; /* Azul conforme a imagem */
    color: #ffffff;
    border: none;
    font-size: 20px;
    font-weight: bold;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.modal-close-btn:hover {
    background-color: #153e77;
}

/* Seções e Títulos Internos */
.modal-section {
    margin-bottom: 16px;
}

.modal-title {
    font-size: 1.4rem;
    color: #333333;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4a4a4a;
    text-align: justify;
}

.modal-divider {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 24px 0;
}

/* Controles de Citação */
.citation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.citation-title {
    font-size: 1.25rem;
    color: #333333;
    font-weight: 700;
}

.citation-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #555555;
}

.citation-select {
    padding: 4px 8px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    background-color: #fcfcfc;
    font-size: 0.85rem;
    cursor: pointer;
}

.btn-copy {
    background-color: #1c529b;
    color: #ffffff;
    border: none;
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-copy:hover {
    background-color: #153e77;
}

/* Caixa de Texto da Citação */
.citation-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333333;
    background-color: #f9f9f9;
    padding: 12px 16px;
    border-left: 4px solid #1c529b;
    border-radius: 2px;
    word-break: break-word;
}

/*   MODAL DE AUTORES SERVIDORES */

.author-profile {
    margin-bottom: 24px;
}

.author-profile:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 24px;
}

.author-name {
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 16px;
}

.author-info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.author-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #4a4a4a;
    margin-bottom: 10px;
}

.author-info-item img, 
.author-info-item i {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.lattes-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #1c529b;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    margin-bottom: 20px;
}

.lattes-link:hover {
    text-decoration: underline;
}

.areas-title {
    font-size: 1.05rem;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.areas-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.areas-list li {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin-bottom: 4px;
}

/* Responsividade */
@media (max-width: 850px) {
    .layout-grid { grid-template-columns: 1fr; }
    .filters-sidebar { display: none; }
    .filters-sidebar.active { display: block; }
}