/*!
 * Sentio for Elementor - tec-event-carousel widget
 * Extracted from frontend.css during Batch 2356 Checkpoint 2 mechanical extraction (2026-04-19)
 * Section: TEC-09 Event Carousel (.sentio-tecr)
 */

/* ── TEC-09 · Event Carousel (.sentio-tecr) ────────────────────── */
/* 10 differentiators: CSS Scroll Snap, 5 card presets, parallax,
   smart autoplay, status ribbons, thumbnail nav, dynamic CTA,
   responsive slides-per-view, infinite loop, announcement mode */

.sentio-tecr {
	position: relative;
	overflow: hidden;
}

/* ── Navigation Arrows ── */
.sentio-tecr__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,0.95);
	border: 1px solid #e5e7eb;
	border-radius: 50%;
	cursor: pointer;
	font-size: 18px;
	color: #374151;
	transition: all 0.25s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sentio-tecr__arrow:hover {
	background: #ffffff;
	box-shadow: 0 4px 16px rgba(0,0,0,0.15);
	color: #111827;
}

.sentio-tecr__arrow--prev { left: 12px; }
.sentio-tecr__arrow--next { right: 12px; }

/* ── Track ── */
.sentio-tecr__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: var(--tecr-gap, 24px);
	padding: 4px 0;
}

.sentio-tecr__track::-webkit-scrollbar {
	display: none;
}

/* ── Slides ── */
.sentio-tecr__slide {
	flex: 0 0 calc((100% - var(--tecr-gap, 24px) * (var(--tecr-slides, 3) - 1)) / var(--tecr-slides, 3));
	scroll-snap-align: start;
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.sentio-tecr__slide:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ── Image ── */
.sentio-tecr__image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.sentio-tecr__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.sentio-tecr__slide:hover .sentio-tecr__image img {
	transform: scale(1.05);
}

.sentio-tecr__img-placeholder {
	width: 100%;
	height: 100%;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	color: #d1d5db;
}

.sentio-tecr--parallax .sentio-tecr__image img {
	width: 120%;
	max-width: 120%;
}

/* ── Status Ribbons ── */
.sentio-tecr__ribbon {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 5;
	padding: 4px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #ffffff;
	border-radius: 4px;
}

.sentio-tecr__ribbon--featured { background: #8b5cf6; }
.sentio-tecr__ribbon--free { background: #10b981; }
.sentio-tecr__ribbon--selling-fast { background: #f97316; }
.sentio-tecr__ribbon--canceled { background: #ef4444; text-decoration: line-through; }

/* ── Content ── */
.sentio-tecr__content {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.sentio-tecr__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 8px;
}

.sentio-tecr__cat-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	color: #ffffff;
	background: #6366f1;
	border-radius: 4px;
}

.sentio-tecr__date {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.sentio-tecr__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 8px 0;
}

.sentio-tecr__title a { color: inherit; text-decoration: none; }
.sentio-tecr__title a:hover { color: #6366f1; }

.sentio-tecr__venue {
	font-size: 13px;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.sentio-tecr__cost { font-size: 15px; font-weight: 700; color: #059669; margin-bottom: 8px; }
.sentio-tecr__cost--free { color: #10b981; }

.sentio-tecr__excerpt {
	font-size: 14px;
	color: #6b7280;
	line-height: 1.5;
	margin: 0 0 12px 0;
}

/* ── CTA Button ── */
.sentio-tecr__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: #6366f1;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.25s ease;
	margin-top: auto;
}

.sentio-tecr__cta:hover { background: #4f46e5; color: #ffffff; }

/* ── Progress Bar ── */
.sentio-tecr__progress {
	height: 3px;
	background: #e5e7eb;
	margin-top: 16px;
	border-radius: 2px;
	overflow: hidden;
}

.sentio-tecr__progress-bar {
	height: 100%;
	background: #6366f1;
	border-radius: 2px;
	width: 0%;
	transition: width linear;
}

/* ── Thumbnail Strip ── */
.sentio-tecr__thumbs {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 0;
}

.sentio-tecr__thumbs::-webkit-scrollbar { display: none; }

.sentio-tecr__thumb {
	flex: 0 0 60px;
	height: 45px;
	border-radius: 6px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	opacity: 0.6;
	transition: all 0.25s ease;
	padding: 0;
	background: none;
}

.sentio-tecr__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sentio-tecr__thumb:hover { opacity: 0.9; }
.sentio-tecr__thumb--active { opacity: 1; border-color: #6366f1; }

/* ── Card Presets ── */

/* Editorial - overlay text on image */
.sentio-tecr__slide--editorial .sentio-tecr__image { aspect-ratio: 16 / 12; }
.sentio-tecr__slide--editorial .sentio-tecr__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 60px 20px 20px;
	background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
	color: #ffffff;
}
.sentio-tecr__slide--editorial .sentio-tecr__title a { color: #ffffff; }
.sentio-tecr__slide--editorial .sentio-tecr__date,
.sentio-tecr__slide--editorial .sentio-tecr__venue { color: rgba(255,255,255,0.8); }
.sentio-tecr__slide--editorial .sentio-tecr__cost { color: #a7f3d0; }
.sentio-tecr__slide--editorial { position: relative; }

/* Compact - horizontal */
.sentio-tecr__slide--compact { flex-direction: row; }
.sentio-tecr__slide--compact .sentio-tecr__image { flex: 0 0 140px; aspect-ratio: auto; }
.sentio-tecr__slide--compact .sentio-tecr__content { padding: 14px; }
.sentio-tecr__slide--compact .sentio-tecr__title { font-size: 15px; }

/* Magazine - mixed sizes */
.sentio-tecr__slide--magazine:nth-child(3n+1) { flex: 0 0 calc(50% - 12px); }
.sentio-tecr__slide--magazine:nth-child(3n+1) .sentio-tecr__image { aspect-ratio: 16 / 12; }

/* Minimal - text only */
.sentio-tecr__slide--minimal .sentio-tecr__image { display: none; }
.sentio-tecr__slide--minimal { border-left: 4px solid #6366f1; border-radius: 0 12px 12px 0; }

/* ── Announcement Mode ── */
.sentio-tecr--announcement { position: relative; min-height: 500px; overflow: hidden; }
.sentio-tecr--announcement .sentio-tecr__track { position: absolute; inset: 0; }
.sentio-tecr--announcement .sentio-tecr__slide { flex: 0 0 100%; min-height: 500px; border-radius: 0; }
.sentio-tecr--announcement .sentio-tecr__image { position: absolute; inset: 0; aspect-ratio: auto; }
.sentio-tecr--announcement .sentio-tecr__image img { animation: sentio-tecr-kenburns 20s ease infinite alternate; }
@keyframes sentio-tecr-kenburns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.sentio-tecr--announcement .sentio-tecr__content {
	position: relative; z-index: 5; min-height: 500px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center; color: #ffffff; background: rgba(0,0,0,0.5); padding: 40px;
}
.sentio-tecr--announcement .sentio-tecr__title { font-size: 36px; }
.sentio-tecr--announcement .sentio-tecr__title a { color: #ffffff; }
.sentio-tecr--announcement .sentio-tecr__date,
.sentio-tecr--announcement .sentio-tecr__venue { color: rgba(255,255,255,0.85); font-size: 16px; }
.sentio-tecr--announcement .sentio-tecr__cta { padding: 14px 32px; font-size: 16px; }

/* ── Announcement Background / Overlay / Content ── */
.sentio-tecr__announcement-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	animation: sentio-tecr-kenburns 20s ease infinite alternate;
	z-index: 1;
}

.sentio-tecr__announcement-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.35) 0%,
		rgba(0, 0, 0, 0.65) 100%
	);
}

.sentio-tecr__announcement-content {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #ffffff;
	padding: 60px 40px;
	min-height: 500px;
	gap: 12px;
}

/* ── Countdown (Announcement Mode) ── */
.sentio-tecr__countdown {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 16px 0;
}

.sentio-tecr__countdown-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.sentio-tecr__countdown-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	font-size: 28px;
	font-weight: 700;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 10px;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.sentio-tecr__countdown-label {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: rgba(255, 255, 255, 0.75);
}

.sentio-tecr__countdown-sep {
	font-size: 24px;
	font-weight: 700;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1;
	margin-bottom: 18px; /* visually align with numbers, above labels */
}

/* ── Announcement Hero CTA ── */
.sentio-tecr__cta--announcement {
	padding: 16px 40px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 10px;
	background: #6366f1;
	color: #ffffff;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
	transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
	margin-top: 8px;
}

.sentio-tecr__cta--announcement:hover {
	background: #4f46e5;
	box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55);
	transform: translateY(-2px);
	color: #ffffff;
}

/* ── Announcement Responsive ── */
@media (max-width: 1024px) {
	.sentio-tecr__announcement-content { min-height: 400px; padding: 40px 24px; }
	.sentio-tecr__countdown-number { width: 56px; height: 56px; font-size: 24px; }
}
@media (max-width: 767px) {
	.sentio-tecr__announcement-content { min-height: 350px; padding: 24px 16px; }
	.sentio-tecr__countdown-number { width: 48px; height: 48px; font-size: 20px; border-radius: 8px; }
	.sentio-tecr__countdown-label { font-size: 10px; }
	.sentio-tecr__cta--announcement { padding: 12px 28px; font-size: 14px; }
}

/* ── Empty ── */
.sentio-tecr__empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 200px; padding: 40px; text-align: center; color: #9ca3af;
	border: 2px dashed #e5e7eb; border-radius: 12px;
}
.sentio-tecr__empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }

/* ── Responsive ── */
@media (max-width: 1024px) {
	.sentio-tecr__slide { --tecr-slides: var(--tecr-slides-tablet, 2); }
	.sentio-tecr--announcement .sentio-tecr__title { font-size: 28px; }
}
@media (max-width: 767px) {
	.sentio-tecr__slide { --tecr-slides: var(--tecr-slides-mobile, 1); }
	.sentio-tecr__arrow { width: 36px; height: 36px; font-size: 14px; }
	.sentio-tecr__slide--compact { flex-direction: column; }
	.sentio-tecr__slide--compact .sentio-tecr__image { flex: none; aspect-ratio: 16 / 10; }
	.sentio-tecr--announcement { min-height: 350px; }
	.sentio-tecr--announcement .sentio-tecr__slide { min-height: 350px; }
	.sentio-tecr--announcement .sentio-tecr__content { min-height: 350px; padding: 20px; }
	.sentio-tecr--announcement .sentio-tecr__title { font-size: 22px; }
}
