/*
 * ReaderX shared manga card -- styles for the card itself only.
 *
 * Deliberately does NOT include any section/grid/slider layout rules
 * (no six-column grid, no Swiper behavior) -- those belong to whatever
 * container arranges multiple cards, introduced in a later batch. This
 * file only styles template-parts/readerx-manga-card.php's own markup,
 * using ReaderX-specific class names exclusively. Old Shape A/Shape B
 * card classes are not touched, removed, or referenced here.
 */

.readerx-card {
	display: block;
	text-decoration: none;
	color: inherit;
	width: 100%;
	max-width: 176px;
}

.readerx-card__badges {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 4px;
	margin-bottom: 6px;
	font-size: 9px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9a9aa8;
	overflow: hidden;
}

.readerx-card__badge {
	white-space: nowrap;
}

.readerx-card__cover {
	width: 100%;
	aspect-ratio: 3 / 4.2;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(160deg, #26202e, #181820);
	border: 1px solid #2a2a38;
}

.readerx-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: filter 0.15s ease;
}

.readerx-card:hover .readerx-card__image {
	filter: brightness(1.08);
}

.readerx-card__image--fallback {
	object-fit: contain;
	padding: 20%;
	box-sizing: border-box;
	opacity: 0.6;
}

.readerx-card__title {
	font-size: 12.5px;
	font-weight: 600;
	color: #f5f5f7;
	text-align: center;
	margin-top: 6px;
	line-height: 1.35;
	height: 2.6em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	transition: color 0.15s ease;
}

.readerx-card:hover .readerx-card__title {
	color: #ec4899;
}

.readerx-card__footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 6px;
	font-size: 11px;
	color: #9a9aa8;
}

.readerx-card__rating,
.readerx-card__views {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	white-space: nowrap;
}
