/* =========================================
   PÁGINA SINGLE (ARTIGO)
   ========================================= */

:root {
	--repo-bg-light: #fcfcfc;
	--repo-border: #e2e8f0;
	--repo-text-main: #1e293b;
	--repo-text-muted: #64748b;
	--repo-surface: #ffffff;
	--repo-primary: var(--cor-primaria, #f97316); /* Laranja Institucional */
	--repo-primary-hover: #ea580c;
	--repo-primary-media: #e0f2fe;
}

.repo-main-bg {
	background-color: var(--repo-bg-light);
	padding: 3rem 0;
	min-height: 80vh;
}

/* Layout Grid Single */
.repo-single-grid {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3rem;
	padding-bottom: 3rem;
}

/* Header do Artigo */
.repo-single-meta-top {
	display: flex;
	gap: 10px;
	margin-bottom: 1rem;
}

.badge-tipo,
.badge-curso {
	background-color: var(--cor-primaria-clara);
	color: #fff;
	padding: 4px 12px;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.repo-single-title {
	font-size: 2rem;
	color: var(--repo-text-main);
	line-height: 1.3;
	margin-bottom: 1rem;
}

.repo-single-date {
	font-size: 0.95rem;
	color: var(--repo-text-muted);
	border-bottom: 1px solid var(--repo-border);
	padding-bottom: 2rem;
	margin-bottom: 2rem;
}

/* Boxes de Conteúdo */
.repo-autor-box {
	margin-bottom: 2.5rem;
}

.repo-autor-box h3 {
	font-size: 1.25rem;
	color: var(--repo-text-main);
	margin-bottom: 1rem;
	border-left: 4px solid var(--repo-primary);
	padding-left: 10px;
}

.repo-section-box {
	margin-bottom: 2.5rem;
}

.repo-section-box h3 {
	font-size: 1.25rem;
	color: var(--repo-text-main);
	margin-bottom: 1rem;
	border-left: 4px solid var(--repo-primary);
	padding-left: 10px;
}

.repo-abstract-text {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #334155; /* Slate-700 */
	text-align: justify;
}

/* --- SIDEBAR SINGLE --- */

.repo-action-card {
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid var(--repo-border);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
	margin-bottom: 1.5rem;
	text-align: center;
}

.btn-repo-download-large {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background-color: var(--repo-primary);
	color: #fff;
	padding: 15px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	font-size: 1.1rem;
	transition: background 0.2s;
	margin-bottom: 1rem;
}

.btn-repo-download-large:hover {
	background-color: var(--repo-primary-hover);
	color: #fff;
}

.repo-unavailable {
	background: #f1f5f9;
	color: #94a3b8;
	padding: 10px;
	border-radius: 6px;
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.repo-doi-link {
	display: block;
	font-size: 0.9rem;
	color: var(--repo-text-muted);
	text-decoration: none;
	word-break: break-all;
}

.repo-doi-link:hover {
	color: var(--repo-primary);
	text-decoration: underline;
}

/* Cards de Metadados (Autores/Detalhes) */
.repo-meta-card {
	margin-bottom: 2rem;
}

.repo-meta-card h4 {
	font-size: 0.9rem;
	text-transform: uppercase;
	color: var(--repo-text-muted);
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
	border-bottom: 2px solid #e2e8f0;
	padding-bottom: 5px;
}

/* Lista de Autores */
.repo-authors-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.repo-authors-list li {
	margin-bottom: 1.25rem;
}

.author-name {
	font-weight: 700;
	color: var(--repo-text-main);
	display: flex;
	align-items: center;
	gap: 8px;
}

.author-name i {
	color: #94a3b8;
}

.author-affiliation {
	font-size: 0.85rem;
	color: var(--repo-text-muted);
	margin-left: 24px;
	margin-top: 2px;
}

.author-orcid {
	font-size: 0.75rem;
	color: #a3bf42;
	text-decoration: none;
	margin-left: 24px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 4px;
}

.author-orcid:hover {
	color: #afc26b;
}

.repo-details-list {
	list-style: none;
	padding: 0;
	font-size: 0.9rem;
}

.repo-details-list li {
	margin-bottom: 0.8rem;
	padding-bottom: 0.8rem;
	border-bottom: 1px solid #f1f5f9;
	color: var(--repo-text-muted);
}

.repo-details-list li strong {
	color: var(--repo-text-main);
	display: block;
	margin-bottom: 2px;
}

/* ==========================================================================
	Media Queries (Responsivo)
	========================================================================== */
@media (max-width: 992px) {
	.repo-single-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
		padding: 1rem 1.5rem;
	}

	.repo-single-sidebar {
		order: 2;
	}

	.repo-action-card {
		margin-bottom: 3rem;
	}

	.repo-main-bg {
		padding: 1rem 0rem;
	}

	.repo-single-title {
		font-size: 1.5rem;
	}
}
