/**
 * Series Display Block - Frontend Styles
 */

.wp-block-bampfa-series-display {
	margin: 0;
	padding: 0;
}

/* New Display Shortcode Styles */
.border-2 {
	border-width: 2px;
}

.border-purple-500 {
	border-color: #a855f7;
}

.rounded-lg {
	border-radius: 0.5rem;
}

.bg-purple-50 {
	background-color: #faf5ff;
}

.flex {
	display: flex;
}

.items-center {
	align-items: center;
}

.justify-between {
	justify-content: space-between;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.w-6 {
	width: 1.5rem;
}

.h-6 {
	height: 1.5rem;
}

.h-20 {
	height: 5rem;
}

.bg-purple-600 {
	background-color: #9333ea;
}

.rounded {
	border-radius: 0.25rem;
}

.text-white {
	color: #ffffff;
}

.text-sm {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.text-xs {
	font-size: 0.75rem;
	line-height: 1rem;
}

.text-slate-900 {
	color: #0f172a;
}

.text-slate-500 {
	color: #64748b;
}

.text-slate-600 {
	color: #475569;
}

.text-purple-700 {
	color: #7e22ce;
}

.bg-purple-200 {
	background-color: #e9d5ff;
}

.px-2 {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.py-1 {
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}

.mb-1 {
	margin-bottom: 0.25rem;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-3 {
	margin-bottom: 0.75rem;
}

.mt-1 {
	margin-top: 0.25rem;
}

.mt-3 {
	margin-top: 0.75rem;
}

.p-3 {
	padding: 0.75rem;
}

.p-4 {
	padding: 1rem;
}

.bg-white {
	background-color: #ffffff;
}

.border-purple-300 {
	border-color: #c084fc;
}

.border-slate-200 {
	border-color: #e2e8f0;
}

.grid {
	display: grid;
}

.grid-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.text-center {
	text-align: center;
}

.w-full {
	width: 100%;
}

.object-cover {
	object-fit: cover;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.size-3 {
	width: 0.75rem;
	height: 0.75rem;
}

/* Grid Layouts */
.bampfa-series-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

.bampfa-series-grid--2-column {
	grid-template-columns: repeat(2, 1fr);
}

.bampfa-series-grid--3-column {
	grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
	.bampfa-series-grid--2-column,
	.bampfa-series-grid--3-column {
		grid-template-columns: 1fr;
	}
}

/* List Layout */
.bampfa-series-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bampfa-series-list__item {
	margin: 0;
	padding: 0;
}

/* Carousel Layout */
.bampfa-series-carousel {
	position: relative;
	overflow: hidden;
}

.bampfa-series-carousel__track {
	display: flex;
	gap: 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.bampfa-series-carousel__track::-webkit-scrollbar {
	height: 8px;
}

.bampfa-series-carousel__track::-webkit-scrollbar-track {
	background: #f1f5f9;
	border-radius: 4px;
}

.bampfa-series-carousel__track::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

.bampfa-series-carousel__track::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

.bampfa-series-carousel__slide {
	flex: 0 0 calc(100% - 1rem);
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.bampfa-series-carousel__slide {
		flex: 0 0 calc(50% - 1rem);
	}
}

@media (min-width: 1024px) {
	.bampfa-series-carousel__slide {
		flex: 0 0 calc(33.333% - 1rem);
	}
}

/* Series Card */
.bampfa-series-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
}

.bampfa-series-card:hover {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.bampfa-series-card__image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f1f5f9;
}

.bampfa-series-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bampfa-series-card__image a {
	display: block;
	width: 100%;
	height: 100%;
}

.bampfa-series-card__content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.bampfa-series-card__title {
	margin: 0 0 0.5rem 0;
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.4;
}

.bampfa-series-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bampfa-series-card__title a:hover {
	color: #3b82f6;
}

.bampfa-series-card__type {
	font-size: 0.875rem;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 0.75rem;
}

.bampfa-series-card__summary {
	font-size: 0.9375rem;
	line-height: 1.6;
	color: #475569;
	margin-bottom: 1rem;
	flex: 1;
}

.bampfa-series-card__dates {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: #64748b;
	margin-top: auto;
}

.bampfa-series-card__date-separator {
	color: #cbd5e1;
}

/* List View Specific Styles */
.bampfa-series-list .bampfa-series-card {
	flex-direction: row;
}

.bampfa-series-list .bampfa-series-card__image {
	width: 200px;
	flex-shrink: 0;
}

.bampfa-series-list .bampfa-series-card__content {
	flex: 1;
}

@media (max-width: 768px) {
	.bampfa-series-list .bampfa-series-card {
		flex-direction: column;
	}

	.bampfa-series-list .bampfa-series-card__image {
		width: 100%;
	}
}

/* Keyboard Navigation */
.has-keyboard-navigation .bampfa-series-card:focus-within {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.has-keyboard-navigation .bampfa-series-card a:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

