/**
 * RecipesJV — Recipe Card Component
 * Used on homepage, archive, search, and single (related posts).
 */

.recipe-card {
	background-color: var(--color-white);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	border: 1px solid var(--color-border);
	transition: transform var(--transition), box-shadow var(--transition);
	display: flex;
	flex-direction: column;
}

.recipe-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-md);
}

/* ── Image ── */

.recipe-card__image {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background-color: var(--color-bg-alt);
	flex-shrink: 0;
}

.recipe-card__image a {
	display: block;
	height: 100%;
}

.recipe-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.recipe-card:hover .recipe-card__image img {
	transform: scale(1.05);
}

/* ── Time badge overlay ── */

.recipe-card__time-badge {
	position: absolute;
	top: var(--space-3);
	right: var(--space-3);
	background-color: rgba(15, 15, 15, 0.75);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: var(--text-xs);
	font-weight: 700;
	padding: 3px var(--space-2);
	border-radius: var(--radius-sm);
	line-height: 1.4;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

/* ── Body ── */

.recipe-card__body {
	padding: var(--space-4) var(--space-4) var(--space-6);
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* ── Category tag ── */

.recipe-card__category {
	display: inline-block;
	font-family: var(--font-heading);
	font-size: var(--text-xs);
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: var(--space-2);
	text-decoration: none;
}

.recipe-card__category:hover {
	color: var(--color-primary-dark);
}

/* ── Title ── */

.recipe-card__title {
	font-size: var(--text-lg);
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: var(--space-3);
}

.recipe-card__title a {
	color: var(--color-text);
	text-decoration: none;
	transition: color var(--transition);
}

.recipe-card__title a:hover {
	color: var(--color-primary);
}

/* ── Excerpt ── */

.recipe-card__excerpt {
	font-size: var(--text-sm);
	color: var(--color-text-muted);
	line-height: 1.65;
	margin-bottom: var(--space-4);
	flex: 1;
}

/* ── Footer row (CTA + reading time) ── */

.recipe-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	gap: var(--space-2);
}

.recipe-card__btn {
	font-size: var(--text-xs);
	padding: var(--space-2) var(--space-3);
}

.recipe-card__time {
	font-size: var(--text-xs);
	color: var(--color-text-muted);
	white-space: nowrap;
}
