/* ==========================================================================
   Design System - JF Diário (Diretório de Autores & Equipe Editorial)
   Fiel ao layout e modal do authors.html
   ========================================================================== */

/* CABEÇALHO HERO DA PÁGINA DE AUTORES (OPCIONAL) */
.jf-authors-hero {
	background: linear-gradient(135deg, #1A365D 0%, #0D1B2A 100%);
	color: white;
	padding: 40px 20px;
	margin-bottom: 40px;
	border-bottom: 4px solid #9B2C2C;
	border-radius: 8px;
	text-align: center;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.jf-authors-hero h1 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 2.3rem;
	color: #FFFFFF;
	margin-bottom: 10px;
	font-weight: 800;
}

.jf-authors-hero p {
	font-size: 1.02rem;
	color: #CBD5E1;
	max-width: 720px;
	margin: 0 auto;
	line-height: 1.5;
}

/* GRID DE CARDS DE AUTORES */
.jf-authors-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin-bottom: 50px;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (max-width: 992px) {
	.jf-authors-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.jf-authors-grid {
		grid-template-columns: 1fr;
	}
}

.jf-author-card {
	background: #FFFFFF;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	padding: 24px;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.jf-author-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
	border-color: #1A365D;
}

.jf-author-card .author-avatar-wrapper {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	background: #1A365D;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
	border: 3px solid #9B2C2C;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	flex-shrink: 0;
}

.jf-author-card .author-avatar-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.jf-author-card h3 {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 1.25rem;
	color: #1A365D;
	margin: 0 0 4px 0;
	font-weight: 700;
}

.jf-author-card .author-role {
	font-size: 0.8rem;
	color: #9B2C2C;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 12px;
}

.jf-author-card .author-bio-snippet {
	font-size: 0.86rem;
	color: #374151;
	margin-bottom: 16px;
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jf-author-card .author-meta {
	font-size: 0.78rem;
	color: #6B7280;
	border-top: 1px solid #E5E7EB;
	padding-top: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.jf-author-card .view-profile-btn {
	color: #1A365D;
	font-weight: 700;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	gap: 4px;
}

/* MODAL POPUP DO AUTOR (SEM CORTES NA FOTO E SEM AVALIAÇÕES) */
.jf-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(15, 23, 42, 0.75) !important;
	backdrop-filter: blur(4px) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 999999 !important;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
	padding: 20px;
	font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

.jf-modal-overlay.active {
	opacity: 1 !important;
	pointer-events: auto !important;
}

.jf-modal-container {
	background: #ffffff !important;
	width: 100% !important;
	max-width: 600px !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3) !important;
	transform: translateY(20px);
	transition: transform 0.3s ease;
	position: relative !important;
	max-height: 90vh !important;
	display: flex !important;
	flex-direction: column !important;
	border: none !important;
}

.jf-modal-overlay.active .jf-modal-container {
	transform: translateY(0) !important;
}

/* BANNER DE CABEÇALHO SUPERIOR */
.jf-modal-header-bg {
	background: linear-gradient(135deg, #1A365D 0%, #0D1B2A 100%) !important;
	height: 80px !important;
	position: relative !important;
	border-bottom: 4px solid #9B2C2C !important;
	flex-shrink: 0 !important;
}

/* BOTÃO DE FECHAR DO MODAL */
button.jf-modal-close-btn,
.jf-modal-close-btn {
	position: absolute !important;
	top: 14px !important;
	right: 16px !important;
	background: rgba(255, 255, 255, 0.22) !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #ffffff !important;
	width: 34px !important;
	height: 34px !important;
	border-radius: 50% !important;
	font-size: 1.15rem !important;
	line-height: 1 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	z-index: 10 !important;
	transition: all 0.2s ease !important;
	padding: 0 !important;
	margin: 0 !important;
}

button.jf-modal-close-btn:hover,
.jf-modal-close-btn:hover {
	background: #9B2C2C !important;
	color: #ffffff !important;
	transform: scale(1.08) !important;
}

/* CORPO DO MODAL */
.jf-modal-body {
	padding: 0 25px 25px !important;
	overflow-y: auto !important;
	position: relative !important;
}

.jf-modal-author-header {
	display: flex !important;
	align-items: center !important;
	gap: 18px !important;
	padding-top: 18px !important;
	margin-bottom: 18px !important;
}

.jf-modal-avatar {
	width: 84px !important;
	height: 84px !important;
	border-radius: 50% !important;
	overflow: hidden !important;
	background: #1A365D !important;
	border: 3px solid #9B2C2C !important;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12) !important;
	flex-shrink: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.jf-modal-avatar img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 50% !important;
}

.jf-modal-author-info {
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
}

.jf-modal-author-info h2 {
	font-family: 'Playfair Display', Georgia, serif !important;
	font-size: 1.45rem !important;
	color: #1A365D !important;
	margin: 0 0 2px 0 !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
}

.jf-modal-author-role {
	font-size: 0.82rem !important;
	color: #9B2C2C !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.jf-modal-bio {
	font-size: 0.92rem !important;
	color: #374151 !important;
	line-height: 1.55 !important;
	margin-bottom: 20px !important;
	background: #F8FAFC !important;
	padding: 14px 16px !important;
	border-radius: 8px !important;
	border-left: 4px solid #1A365D !important;
}

/* ESTATÍSTICAS DO AUTOR (APENAS 2 COLUNAS: MATÉRIAS E LEITURAS) */
.jf-modal-stats-grid {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 16px !important;
	background: #F1F5F9 !important;
	padding: 16px !important;
	border-radius: 8px !important;
	text-align: center !important;
	margin-bottom: 22px !important;
}

.jf-modal-stats-grid .stat-number {
	font-family: 'Cinzel', serif !important;
	font-size: 1.4rem !important;
	font-weight: 800 !important;
	color: #1A365D !important;
}

.jf-modal-stats-grid .stat-label {
	font-size: 0.75rem !important;
	color: #64748b !important;
	text-transform: uppercase !important;
	margin-top: 2px !important;
	font-weight: 600 !important;
}

.jf-modal-recent-articles h4 {
	font-family: 'Cinzel', serif !important;
	font-size: 0.9rem !important;
	color: #1A365D !important;
	border-bottom: 2px solid #E2E8F0 !important;
	padding-bottom: 6px !important;
	margin: 0 0 12px 0 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.jf-article-link-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.jf-article-link-list li {
	margin-bottom: 8px !important;
	padding-bottom: 8px !important;
	border-bottom: 1px solid #F1F5F9 !important;
	font-size: 0.88rem !important;
}

.jf-article-link-list li:last-child {
	border-bottom: none !important;
	margin-bottom: 0 !important;
}

.jf-article-link-list li a {
	color: #1E293B !important;
	text-decoration: none !important;
	font-weight: 500 !important;
	transition: color 0.2s !important;
	display: block !important;
}

.jf-article-link-list li a:hover {
	color: #9B2C2C !important;
}
