/**
 * SwiPay Terminal Slider – Stylesheet
 * Responsive Grid: 1 (mobile) | 2 (tablet) | 3 (desktop)
 * Fully clickable cards with hover effects
 *
 * @version 1.0.0
 * @author  SwiPay AG | Sven Leitl
 */

.swipay-terminal-slider {
	display: grid;
	grid-template-columns: repeat(var(--swipay-columns, 3), 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ─────────────────────────────────────────────────────────
   CARD: Base
   ─────────────────────────────────────────────────────────── */
.swipay-terminal-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	background: #ffffff;
}

.swipay-terminal-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ─────────────────────────────────────────────────────────
   IMAGE Container
   ─────────────────────────────────────────────────────────── */
.swipay-terminal-card__image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

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

/* ─────────────────────────────────────────────────────────
   CONTENT: Title + CTA
   ─────────────────────────────────────────────────────────── */
.swipay-terminal-card__content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	flex-grow: 1;
	padding: 16px;
	gap: 12px;
}

.swipay-terminal-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
	color: #1a1a1a;
	word-wrap: break-word;
}

.swipay-terminal-card__cta {
	display: inline-block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ED6B10;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-top: auto;
	align-self: flex-start;
}

.swipay-terminal-card:hover .swipay-terminal-card__cta {
	color: #3E4B4C;
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE: Tablet (768px und kleiner)
   ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.swipay-terminal-slider {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.swipay-terminal-card__image {
		height: 160px;
	}

	.swipay-terminal-card__content {
		padding: 12px;
	}
}

/* ─────────────────────────────────────────────────────────
   RESPONSIVE: Mobile (640px und kleiner)
   ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.swipay-terminal-slider {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.swipay-terminal-card__image {
		height: 180px;
	}

	.swipay-terminal-card__title {
		font-size: 0.95rem;
	}
}