/**
 * Event strip (V3) — horizontal scrolling card strip.
 *
 * @package Tobalt_Renginiai
 * @author  Tobalt — https://tobalt.lt
 */

.tr-strip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
}

.tr-strip__track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 8px 0;
}

.tr-strip__track::-webkit-scrollbar {
	display: none;
}

/* ── Card ─────────────────────────────────────────────────── */

.tr-strip__card {
	flex: 0 0 280px;
	min-width: 280px;
	scroll-snap-align: start;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s ease;
}

.tr-strip__card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* ── Image ────────────────────────────────────────────────── */

.tr-strip__image {
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.tr-strip__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tr-strip__badge {
	position: absolute;
	top: 10px;
	left: 10px;
}

/* ── Body ─────────────────────────────────────────────────── */

.tr-strip__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tr-strip__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.tr-strip__title a {
	color: inherit;
	text-decoration: none;
}

.tr-strip__title a:hover {
	color: #2563eb;
}

.tr-strip__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tr-strip__meta .tr-meta-item {
	font-size: 13px;
}

.tr-strip__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tr-strip__actions .tr-btn--primary {
	padding: 7px 14px;
	font-size: 13px;
}

/* ── Nav Arrows ───────────────────────────────────────────── */

.tr-strip__prev,
.tr-strip__next {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #d1d5db;
	border-radius: 50%;
	background: #fff;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s ease;
}

.tr-strip__prev:hover,
.tr-strip__next:hover {
	border-color: #2563eb;
	color: #2563eb;
}

@media ( max-width: 768px ) {
	.tr-strip__card {
		flex: 0 0 260px;
		min-width: 260px;
	}

	.tr-strip__prev,
	.tr-strip__next {
		display: none;
	}
}
