/**
 * Books list styles (extracted from style.css)
 * @package GuiaSaude
 */

.books__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.25rem;
	margin: 2rem 0;
}

.book {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
	position: relative;
}

.book:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.book__cover {
	width: 100%;
	height: 308px;
	overflow: hidden;
	background: var(--light-gray);
	position: relative;
}

.book__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.book:hover .book__cover img {
	transform: scale(1.05);
}

.book__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--primary-color);
	color: var(--white);
	padding: 0.25rem 0.5rem;
	border-radius: 12px;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	z-index: 2;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.book__title {
	font-size: 0.875rem;
	font-weight: 600;
	margin: 0.75rem 0.75rem 0.375rem;
	color: var(--text-color);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.book__author {
	font-size: 0.75rem;
	color: var(--text-light);
	margin: 0 0.75rem 0.5rem;
	font-weight: 400;
}

.stars {
	font-size: 0.75rem;
	color: #FFB800;
	margin: 0 0.75rem 0.5rem;
	letter-spacing: 1px;
}

.book__desc {
	font-size: 0.75rem;
	color: var(--text-light);
	line-height: 1.4;
	margin: 0 0.75rem 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.book__cta {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--primary-color);
	margin: 0 0.75rem 0.875rem;
	transition: color 0.3s ease;
}

.book:hover .book__cta {
	color: var(--primary-dark);
}

