/* =========================================
   CARDS DE BUSCA (Search Results)
   ========================================= */

/* Container Principal do Card */
.escs-search-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	margin-bottom: 2rem;
}

/* Hover no Card */
.escs-search-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;
}

/* --- Imagem (Thumbnail) --- */
.search-card-thumb-link {
	display: block;
	width: 100%;
	height: 240px;
	overflow: hidden;
	margin-bottom: 1rem;
	border-radius: 0.5rem;
}

.search-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.escs-search-card:hover .search-card-img {
	transform: scale(1.05);
}

/* --- Cabeçalho (Data e Badges) --- */
.search-card-header {
	display: flex;
	justify-content: space-between;
	width: 100%;
	padding: 0 0.5rem;
	margin-top: 0.5rem;
	margin-bottom: 1rem;
	align-items: center;
}

.search-card-meta-top {
	font-size: 0.85rem;
	color: #64748b;
}

.search-meta-date i {
	margin-right: 5px;
}

.search-card-badges {
	z-index: 10;
}

.search-badge-category,
.search-badge-type {
	background-color: #64748b;
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 2rem;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	display: inline-block;
}

.search-badge-category:hover {
	background-color: #77808e;
	color: #fff;
}

/* Badge específico para Páginas */
.search-badge-type {
	background-color: var(--cor-primaria);
}

/* --- Corpo do Card --- */
.search-card-body {
	padding: 0 0.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Título */
.search-card-title {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.search-card-title a {
	text-decoration: none;
	color: #1e293b;
	transition: color 0.2s;
}

.search-card-title a:hover {
	color: var(--cor-primaria);
}

/* Resumo (Excerpt) */
.search-card-excerpt {
	font-size: 1rem;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

/* Rodapé Interno */
.search-card-footer {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.search-card-author {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
	color: #64748b;
	font-weight: 500;
}

.search-read-more-btn {
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	background-color: var(--cor-primaria);
	padding: 0.5rem 1.2rem;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: all 0.2s;
}

.search-read-more-btn:hover {
	background-color: var(--cor-primaria-clara);
	transform: translateY(-1px);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- Responsividade --- */
@media (max-width: 768px) {
	.search-card-thumb-link {
		height: 200px;
	}

	.search-card-title {
		font-size: 1.25rem;
	}

	.search-card-header {
		flex-direction: column-reverse;
		align-items: center;
		gap: 0.8rem;
	}

	.search-card-badges {
		align-self: flex-end;
	}

	.search-card-footer {
		flex-direction: column;
		gap: 1rem;
		align-items: stretch;
		text-align: center;
	}
}
