/**
 * Upcoming Events Carousel Styles
 *
 * Prefix: tamuk-ue-
 * Lightweight horizontal carousel with arrow nav + dots.
 *
 * @package TAMUK_Foundation
 * @since   1.0.0
 */

/* ==========================================================================
   Container
   ========================================================================== */

.tamuk-ue {
	font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
	color: #333;
	line-height: 1.6;
	max-width: 100%;
	overflow: hidden;
}

/* ==========================================================================
   Section Header — contained divider that introduces a new content zone
   ========================================================================== */

.tamuk-ue-banner {
	position: relative;
	border-top: 3px solid #FCC10F;
	padding-top: 1rem;
	margin-bottom: 1rem;
}

.tamuk-ue-banner-bg {
	display: none;
}

.tamuk-ue-banner-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.tamuk-ue-banner-text {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.tamuk-ue-banner-label {
	display: none;
}

.tamuk-ue-heading {
	font-family: 'Cinzel', serif;
	font-weight: 700;
	font-size: 1.35rem;
	color: #003399;
	margin: 0;
	line-height: 1.3;
	white-space: nowrap;
}

.tamuk-ue-subheading {
	font-size: 0.85rem;
	color: #9CA3AF;
	margin: 0;
	line-height: 1.4;
}

/* ==========================================================================
   Arrow Buttons
   ========================================================================== */

.tamuk-ue-arrows {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}

.tamuk-ue-arrow {
	width: 42px;
	height: 42px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #003399;
	border-radius: 50%;
	background: transparent;
	color: #003399;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.tamuk-ue-arrow:hover:not(:disabled) {
	background: #003399;
	color: #fff;
	transform: scale(1.06);
}

.tamuk-ue-arrow:active:not(:disabled) {
	transform: scale(0.96);
}

.tamuk-ue-arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.tamuk-ue-arrow:focus-visible {
	outline: 2px solid #003399;
	outline-offset: 2px;
}

/* ==========================================================================
   Carousel Viewport & Track
   ========================================================================== */

.tamuk-ue-viewport {
	overflow: hidden;
	position: relative;
	padding-top: 0.75rem;
}

.tamuk-ue-track {
	display: flex;
	transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform;
}

/* Slide sizing — uses viewport-relative calc so slides don't cause the track to grow.
   Gap (1.5rem total = 0.75rem padding each side) is built into the calc. */

.tamuk-ue-slide {
	flex: none;
	width: calc(33.3333% - 1rem);
	margin-right: 1.5rem;
	box-sizing: border-box;
}

.tamuk-ue[data-visible="2"] .tamuk-ue-slide { width: calc(50% - 0.75rem); }
.tamuk-ue[data-visible="3"] .tamuk-ue-slide { width: calc(33.3333% - 1rem); }
.tamuk-ue[data-visible="4"] .tamuk-ue-slide { width: calc(25% - 1.125rem); }

.tamuk-ue-slide:last-child { margin-right: 0; }

/* ==========================================================================
   Event Card
   ========================================================================== */

.tamuk-ue-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tamuk-ue-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.12);
	border-color: #bfdbfe;
}

/* -- Card Image -- */

.tamuk-ue-card-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e9ecef;
	margin: 0.6rem 0.6rem 0;
	border-radius: 8px;
}

.tamuk-ue-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 8px;
	transition: transform 0.45s ease;
}

.tamuk-ue-card:hover .tamuk-ue-card-image img {
	transform: scale(1.05);
}

.tamuk-ue-card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #003399 0%, #00286E 100%);
	border-radius: 8px;
}

/* -- Date Badge -- */

.tamuk-ue-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 58px;
	padding: 6px 4px;
	background: #003399;
	color: #fff;
	border-radius: 8px;
	text-align: center;
	line-height: 1;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

.tamuk-ue-card-badge-month {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 1px;
}

.tamuk-ue-card-badge-day {
	font-size: 1.4rem;
	font-weight: 700;
	font-family: 'Cinzel', serif;
}

.tamuk-ue-card-badge-time {
	font-size: 0.55rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	opacity: 0.75;
	margin-top: 3px;
	padding-top: 3px;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	width: 100%;
}

/* -- Card Body -- */

.tamuk-ue-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.25rem;
}

.tamuk-ue-card-type {
	display: inline-block;
	align-self: flex-start;
	padding: 2px 10px;
	background: #FCC10F;
	color: #003399;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 50px;
	margin-bottom: 0.5rem;
}

.tamuk-ue-card-title {
	font-family: 'Cinzel', serif;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	color: #003399;
	margin: 0 0 0.5rem;
	transition: color 0.2s ease;
}

.tamuk-ue-card:hover .tamuk-ue-card-title {
	color: #FCC10F;
}

/* -- Card Meta -- */

.tamuk-ue-card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin-bottom: auto;
}

.tamuk-ue-card-meta-item {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 0.8rem;
	color: #6B7280;
	line-height: 1.4;
}

.tamuk-ue-card-meta-item svg {
	flex-shrink: 0;
	margin-top: 2px;
	opacity: 0.5;
}

.tamuk-ue-card-time {
	color: #9CA3AF;
}

/* -- View Details Link -- */

.tamuk-ue-card-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: 1rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #003399;
	transition: gap 0.25s ease;
}

.tamuk-ue-card:hover .tamuk-ue-card-link {
	gap: 0.6rem;
}

.tamuk-ue-card-link svg {
	transition: transform 0.25s ease;
}

.tamuk-ue-card:hover .tamuk-ue-card-link svg {
	transform: translateX(2px);
}

/* ==========================================================================
   Dot Indicators
   ========================================================================== */

.tamuk-ue-dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 1.5rem;
}

.tamuk-ue-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	padding: 0;
	background: #D1D5DB;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.tamuk-ue-dot:hover {
	background: #9CA3AF;
}

.tamuk-ue-dot.is-active {
	background: #003399;
	transform: scale(1.25);
}

.tamuk-ue-dot:focus-visible {
	outline: 2px solid #003399;
	outline-offset: 2px;
}

/* ==========================================================================
   CTA Slide (final card in carousel)
   ========================================================================== */

.tamuk-ue-cta-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	height: 100%;
	min-height: 320px;
	background: linear-gradient(145deg, #003399 0%, #001a4d 100%);
	border-radius: 10px;
	padding: 2.5rem 2rem;
	text-decoration: none;
	color: #fff;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.tamuk-ue-cta-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 32px rgba(0, 51, 153, 0.25);
}

.tamuk-ue-cta-icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(252, 193, 15, 0.15);
	border: 2px solid rgba(252, 193, 15, 0.4);
	border-radius: 50%;
	color: #FCC10F;
	margin-bottom: 1.25rem;
}

.tamuk-ue-cta-title {
	font-family: 'Cinzel', serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 0.5rem;
	line-height: 1.3;
}

.tamuk-ue-cta-desc {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.65);
	margin: 0 0 1.5rem;
	line-height: 1.5;
	max-width: 240px;
}

.tamuk-ue-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.65rem 1.75rem;
	font-family: 'Source Sans 3', sans-serif;
	font-size: 0.9rem;
	font-weight: 600;
	color: #003399;
	background: #FCC10F;
	border: none;
	border-radius: 50px;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.15s ease;
}

.tamuk-ue-cta-card:hover .tamuk-ue-cta-btn {
	background: #fff;
	transform: translateX(3px);
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.tamuk-ue-empty {
	text-align: center;
	color: #6B7280;
	padding: 3rem 1rem;
	font-size: 1rem;
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */

@media (max-width: 1024px) {
	.tamuk-ue[data-visible="3"] .tamuk-ue-slide,
	.tamuk-ue[data-visible="4"] .tamuk-ue-slide {
		width: calc(50% - 0.75rem);
	}

	.tamuk-ue-heading {
		font-size: 1.75rem;
	}
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */

@media (max-width: 640px) {
	.tamuk-ue[data-visible="2"] .tamuk-ue-slide,
	.tamuk-ue[data-visible="3"] .tamuk-ue-slide,
	.tamuk-ue[data-visible="4"] .tamuk-ue-slide {
		width: 100%;
		margin-right: 1.5rem;
	}

	.tamuk-ue-banner-text {
		flex-direction: column;
		gap: 0.15rem;
	}

	.tamuk-ue-heading {
		font-size: 1.2rem;
	}

	.tamuk-ue-arrow {
		width: 38px;
		height: 38px;
	}

	.tamuk-ue-card-badge {
		width: 46px;
		height: 50px;
	}

	.tamuk-ue-card-badge-day {
		font-size: 1.25rem;
	}
}

/* ==========================================================================
   Featured Event Cards (Facebook sync)
   ========================================================================== */

.tamuk-ue-card--featured {
	border-color: #FCC10F;
	box-shadow: 0 2px 12px rgba(252, 193, 15, 0.15);
}

.tamuk-ue-card--featured:hover {
	box-shadow: 0 10px 32px rgba(252, 193, 15, 0.2);
	border-color: #FCC10F;
}

.tamuk-ue-card--featured .tamuk-ue-card-badge {
	background: #FCC10F;
	color: #003399;
}

.tamuk-ue-featured-badge {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	background: linear-gradient(135deg, #FCC10F, #f0b400);
	color: #003399;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	border-radius: 3px;
	margin-bottom: 0.35rem;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.tamuk-ue-track {
		transition: none;
	}

	.tamuk-ue-card,
	.tamuk-ue-card-image img,
	.tamuk-ue-arrow,
	.tamuk-ue-cta-card,
	.tamuk-ue-cta-btn,
	.tamuk-ue-dot,
	.tamuk-ue-card-link,
	.tamuk-ue-card-link svg {
		transition: none;
	}

	.tamuk-ue-card:hover,
	.tamuk-ue-cta-card:hover {
		transform: none;
	}

	.tamuk-ue-card:hover .tamuk-ue-card-image img {
		transform: none;
	}
}
