/**
 * Sermon Series Styles
 * 
 * Component styles for sermon series display with card layout
 * 
 * @package Revival
 */

/* ==========================================================================
   Series Section
   ========================================================================== */

   .sermon-series-section {
	margin-block-end: var(--space-xl);
}

.sermon-series-section__title {
	margin-block-end: var(--space-m);
}

/* ==========================================================================
   Series Card
   ========================================================================== */

.sermon-series-card {
	display: flex;
	gap: var(--space-m);
	margin-block: calc(var(--space-m) * .75);
	padding: 0;
	border-radius: var(--radius);
}

/* Card Image */
.sermon-series-card__image {
	flex-shrink: 0;
	width: 100px;
	aspect-ratio: 1 / 1;
	border-radius: var(--radius-l);
	overflow: hidden; /* Add this */
}

.sermon-series-card__placeholder {
	width: 100px; /* Match parent width explicitly */
	height: 100px; /* Match parent height explicitly */
	flex-shrink: 0; /* Prevent flex from squishing it */
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-ultra-light);
	border-radius: var(--radius-l);
	color: var(--text-color);
	opacity: 0.5;
}

.sermon-series-card__placeholder svg {
	width: 40%; /* 40% of the placeholder container */
	height: auto;
}

.sermon-series-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-l);
}

/* Card Content */
.sermon-series-card__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.sermon-series-card__title {
	margin: 0;
	margin-block-end: calc(var(--space-xs) * .5);
	font-family: var(--text-font-family);
	font-size: var(--text-m);
	font-weight: 700;
	line-height: var(--heading-line-height);
	color: var(--text-color);
}

p.sermon-series-card__description {
	margin: 0;
	font-size: calc(var(--text-s) * 1.25);
	font-weight: 400;
	line-height: var(--text-line-height);
	color: var(--text-color-light);
	font-family: var(--text-font-family);
}

@media (max-width: 768px) {

	.sermon-series-card__placeholder, .sermon-series-card__image {
		width: 80px;
		height: 80px;
	}

	p.sermon-series-card__description {
		font-size: var(--text-s);
		line-height: calc(var(--text-line-height) * .85);
	}
}


.sermon-series-card__button-group.btn-group {
	border: 2px solid var(--neutral-ultra-light);
}