/* =========================================
   REPOSITÓRIO: LISTA / ARCHIVE
   ========================================= */

/* --- HERO SECTION --- */
.repo-hero {
	background-color: #fff;
	border-bottom: 1px solid #e2e8f0;
	padding: 4rem 0 3rem 0;
	text-align: center;
}

.repo-hero-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.repo-hero-subtitle {
	font-size: 1.125rem;
	color: #64748b;
	max-width: 650px;
	margin: 0 auto 2.5rem auto;
}

/* Busca Estilizada */
.repo-hero-search {
	max-width: 768px;
	margin: 0 auto;
	position: relative;
}

.repo-search-wrapper {
	display: flex;
	align-items: center;
	background: #fcfcfc;
	border: 2px solid #e2e8f0;
	border-radius: 9999px;
	padding: 5px 5px 5px 20px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
}

.repo-search-wrapper:focus-within {
	border-color: var(--cor-primaria);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.repo-search-field {
	flex: 1;
	border: none !important;
	background: transparent !important;
	font-size: 1.1rem;
	color: #1e293b;
	outline: none !important;
	box-shadow: none !important;
	padding: 10px 0 !important;
}

.repo-search-submit {
	background-color: var(--cor-primaria);
	color: #fff;
	border: none;
	border-radius: 9999px;
	padding: 12px 32px;
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s;
	display: flex;
	align-items: center;
	gap: 8px;
}

.repo-search-submit:hover {
	background-color: #ea580c;
}

.repo-hero-tags {
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: #64748b;
}

.repo-hero-tags a {
	color: #64748b;
	text-decoration: underline;
	margin: 0 4px;
	transition: color 0.2s;
}

.repo-hero-tags a:hover {
	color: var(--cor-primaria);
}

/* --- LAYOUT PRINCIPAL --- */
.repo-main-bg {
	background-color: #fcfcfc;
	padding: 3rem 0;
	min-height: 80vh;
}

.repo-grid-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 2rem;
	align-items: start;
}

/* --- SIDEBAR (Filtros) --- */
.repo-sidebar {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.repo-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.repo-sidebar-header h3 {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0;
	color: #1e293b;
	border-left: 5px solid var(--cor-primaria);
	padding-left: 1rem;
}

.repo-clear-link {
	font-size: 0.75rem;
	color: var(--cor-primaria);
	font-weight: 600;
	text-decoration: none;
}

.repo-filter-group {
	margin-bottom: 2rem;
}

.repo-filter-group h4 {
	font-size: 0.875rem;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.repo-link-mock {
	display: flex;
	cursor: pointer;
	gap: 0.85rem;
}

.repo-link-mock i {
	color: var(--cor-primaria);
}

.repo-checkbox-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.repo-checkbox-item a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	color: #64748b;
	font-size: 0.9rem;
	transition: color 0.2s;
}

.repo-checkbox-item a:hover,
.repo-checkbox-item a.active {
	color: var(--cor-primaria);
}

.repo-checkbox-item i {
	font-size: 1.1rem;
}

.repo-year-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.repo-year-list li a {
	display: block;
	padding: 6px 10px;
	border-radius: 6px;
	color: #64748b;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.2s;
}

.repo-year-list li a:hover,
.repo-year-list li a.active {
	background-color: #fcfcfc;
	color: var(--cor-primaria);
	font-weight: 600;
}

/* --- CONTEÚDO (Lista e Cards) --- */

.repo-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #e2e8f0;
}

.repo-results-header p {
	margin: 0;
	color: #64748b;
	font-size: 0.95rem;
}

.repo-sort select {
	border: none;
	background: transparent;
	font-weight: 600;
	color: var(--cor-primaria);
	cursor: pointer;
	font-size: 0.9rem;
}

.repo-cards-wrapper {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* ESTILO DO CARD (Artigo) */
.repo-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	padding: 1.5rem;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.repo-card:hover {
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
	border-color: #cbd5e1;
}

/* Header do Card */
.repo-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.repo-card-badges {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.badge-curso {
	background-color: #e0f2fe;
	color: #fff;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.repo-date {
	font-size: 0.8rem;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 5px;
}

.badge-doi {
	font-family: monospace;
	font-size: 0.75rem;
	background: #f1f5f9;
	color: #64748b;
	padding: 2px 8px;
	border-radius: 4px;
	border: 1px solid #e2e8f0;
	white-space: nowrap;
}

/* Corpo do Card */
.repo-card-title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 700;
}

.repo-card-title a {
	color: #1e293b;
	text-decoration: none;
	transition: color 0.2s;
}

.repo-card-title a:hover {
	color: var(--cor-primaria);
}

.repo-card-authors {
	font-size: 0.9rem;
	color: #64748b;
	margin: 0.25rem 0 0.75rem 0;
}

.repo-card-authors strong {
	color: #1e293b;
}

.repo-card-abstract {
	font-size: 0.95rem;
	color: #64748b;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Footer do Card (Botões) */
.repo-card-footer {
	margin-top: 0.5rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.repo-actions-left {
	display: flex;
	gap: 10px;
}

.btn-repo-primary {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	background-color: var(--cor-primaria);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-repo-primary:hover {
	background-color: #ea580c;
	color: #fff;
}

.btn-repo-secondary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background-color: #f1f5f9;
	color: #1e293b;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s;
	border: 1px solid transparent;
}

.btn-repo-secondary:hover {
	background-color: #e2e8f0;
	border-color: #cbd5e1;
}

.btn-icon-save {
	background: transparent;
	border: none;
	color: #94a3b8;
	cursor: pointer;
	font-size: 1.5rem;
	transition: color 0.2s;
}

.btn-icon-save:hover {
	color: var(--cor-primaria);
}

/* --- PAGINAÇÃO --- */
.repo-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-top: 3rem;
}

.repo-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s;
}

.repo-pagination .page-numbers.current {
	background-color: var(--cor-primaria);
	border-color: var(--cor-primaria);
	color: #fff;
	font-weight: 700;
	box-shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.3);
}

.repo-pagination .page-numbers:hover:not(.current) {
	background-color: #fff;
	border-color: #cbd5e1;
	color: var(--cor-primaria);
}

/* =========================================
   ESTADO SEM RESULTADOS (Empty State)
   ========================================= */

.repo-no-results-card {
	background: #fff;
	border: 1px dashed #cbd5e1;
	border-radius: 1rem;
	padding: 2rem 2rem;
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.repo-no-results-icon {
	font-size: 3rem;
	color: #94a3b8; /* Slate-400 */
	margin-bottom: 1.5rem;
	background: #f8fafc; /* Slate-50 */
	width: 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	margin-left: auto;
	margin-right: auto;
}

.repo-no-results-card h3 {
	font-size: 1.5rem;
	color: #1e293b;
	margin-bottom: 0.5rem;
	font-weight: 700;
}

.repo-no-results-card p {
	color: #64748b;
	margin-bottom: 2rem;
	font-size: 1.05rem;
}

.repo-suggestions {
	margin-top: 3rem;
	text-align: left;
	background: #f8fafc;
	padding: 1.5rem;
	border-radius: 0.5rem;
	font-size: 0.9rem;
	border: 1px solid #e2e8f0;
}

.repo-suggestions strong {
	display: block;
	margin-bottom: 0.5rem;
	color: #1e293b;
}

.repo-suggestions ul {
	margin: 0;
	padding-left: 1.2rem;
	color: #64748b;
}

.repo-suggestions ul li {
	margin-bottom: 0.3rem;
}

/* ==========================================================================
	Media Queries (Responsivo)
	========================================================================== */
@media (max-width: 992px) {
	.repo-hero {
		padding: 1rem;
	}

	.repo-grid-layout {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.repo-sidebar {
		margin-bottom: 1rem;
	}

	.repo-search-submit {
		padding: 0.5rem 1.5rem;
	}

	.repo-search-text {
		display: none;
	}
}
