/**
 * Front-end styles for the Lost in the Swell Episode Manager.
 *
 * Scoped to the plugin's own classes so it works with any block theme
 * without depending on theme-specific selectors.
 */

.lits-season-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Two per row on tablets, one on phones. */
@media (max-width: 781px) {
	.lits-season-list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.lits-season-list {
		grid-template-columns: 1fr;
	}
}

.lits-season {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.lits-season__thumb {
	display: block;
}

.lits-season__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 4px;
}

.lits-season__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}

.lits-season__title a {
	text-decoration: none;
}

/* Season link shown above the episode title on the single template. */
.lits-episode-season {
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Recent Episodes block: a grid of episode cards (e.g. on the home page). */
.lits-recent-episodes {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
}

@media (max-width: 781px) {
	.lits-recent-episodes {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.lits-recent-episodes {
		grid-template-columns: 1fr;
	}
}

.lits-recent-episodes__heading {
	margin: 0 0 clamp(1rem, 3vw, 2rem);
	text-align: center;
}

.lits-recent-episode {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.lits-recent-episode__thumb {
	display: block;
}

.lits-recent-episode__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 4px;
}

.lits-recent-episode__season {
	font-size: 0.8125rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
}

.lits-recent-episode__title {
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.3;
}

.lits-recent-episode__title a {
	text-decoration: none;
}

.lits-recent-episode__date {
	font-size: 0.875rem;
	opacity: 0.75;
}
