/* Shkoder Events — front-end styles
   All colors come from CSS custom properties set per-instance inline
   (see class-se-shortcode.php render_inline_vars). Fallback values are
   provided here in case that block is ever stripped by a caching plugin. */

.se-events-section {
	--se-accent: #2dd4bf;
	--se-panel-bg: #0b1220;
	--se-card-bg: #141d2e;
	--se-text: #f8fafc;
	--se-muted: #94a3b8;

	box-sizing: border-box;
	width: 100%;
	background: var(--se-panel-bg);
	color: var(--se-text);
	overflow: hidden;
}

.se-events-section * {
	box-sizing: border-box;
}

/* Full-width edge-to-edge bleed, even inside a boxed theme container. */
.se-events-section--full-width {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
}

.se-events-inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	min-height: 360px;
}

/* ------------------------------------------------------------------ */
/* Left info panel                                                     */
/* ------------------------------------------------------------------ */

.se-events-panel {
	flex: 0 0 280px;
	width: 280px;
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.se-events-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--se-accent);
}

.se-events-title {
	margin: 0;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 800;
	color: var(--se-text);
}

.se-events-description {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--se-muted);
}

/* ------------------------------------------------------------------ */
/* Carousel                                                             */
/* ------------------------------------------------------------------ */

.se-events-carousel {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
}

.se-events-track {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 28px 56px;
	width: 100%;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--se-accent) transparent;
}

.se-events-track::-webkit-scrollbar {
	height: 6px;
}

.se-events-track::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.2);
	border-radius: 3px;
}

.se-events-track::-webkit-scrollbar-thumb:hover {
	background: var(--se-accent);
}

.se-events-empty,
.se-error-message {
	width: 100%;
	text-align: center;
	color: var(--se-muted);
	padding: 40px 24px;
	font-size: 15px;
}

.se-events-section--error {
	padding: 20px;
}

/* Arrow buttons */

.se-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(11, 18, 32, 0.75);
	color: var(--se-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.se-arrow:hover {
	background: var(--se-accent);
	border-color: var(--se-accent);
	color: #0b1220;
}

.se-arrow:focus-visible {
	outline: 2px solid var(--se-accent);
	outline-offset: 2px;
}

.se-arrow--prev {
	left: 8px;
}

.se-arrow--next {
	right: 8px;
}

.se-arrow[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Cards                                                                */
/* ------------------------------------------------------------------ */

.se-card {
	flex: 0 0 auto;
	width: 240px;
	scroll-snap-align: start;
	background: var(--se-card-bg);
	border: 1px solid rgba(255, 255, 255, 0.06);
	border-radius: 14px;
	overflow: hidden;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
	padding: 0;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.se-card:hover,
.se-card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
	border-color: var(--se-accent);
}

.se-card:focus-visible {
	outline: 2px solid var(--se-accent);
	outline-offset: 2px;
}

.se-card-media {
	position: relative;
	width: 100%;
	height: 150px;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
	overflow: hidden;
}

.se-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.se-card-media-placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.se-card-date {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--se-accent);
	color: #05221e;
	border-radius: 8px;
	padding: 5px 9px;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	font-weight: 800;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.se-card-date-day {
	font-size: 15px;
}

.se-card-date-month {
	font-size: 10px;
	letter-spacing: 0.04em;
	margin-top: 2px;
}

.se-card-body {
	padding: 14px 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
}

.se-card-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--se-text);
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.se-card-location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12.5px;
	color: var(--se-muted);
}

.se-card-location svg {
	flex: 0 0 auto;
	color: var(--se-accent);
}

.se-card-location span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Modal                                                                */
/* ------------------------------------------------------------------ */

.se-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.se-modal.is-open {
	display: flex;
}

.se-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(3, 7, 18, 0.78);
	backdrop-filter: blur(2px);
}

.se-modal-dialog {
	position: relative;
	background: #0f172a;
	color: #f8fafc;
	width: 100%;
	max-width: 640px;
	max-height: 88vh;
	overflow-y: auto;
	border-radius: 16px;
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.se-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
}

.se-modal-close:hover {
	background: rgba(0, 0, 0, 0.7);
}

.se-modal-media {
	width: 100%;
	max-height: 300px;
	overflow: hidden;
	background: #1e293b;
}

.se-modal-media img {
	width: 100%;
	height: 100%;
	max-height: 300px;
	object-fit: cover;
	display: block;
}

.se-modal-media[hidden],
.se-modal-media.is-empty {
	display: none;
}

.se-modal-content {
	padding: 24px 28px 28px;
}

.se-modal-category {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #05221e;
	background: #2dd4bf;
	padding: 4px 10px;
	border-radius: 999px;
	margin-bottom: 10px;
}

.se-modal-category:empty {
	display: none;
}

.se-modal-title {
	margin: 0 0 14px;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.3;
}

.se-modal-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 6px;
	font-size: 14px;
	color: #cbd5e1;
}

.se-modal-meta-item:empty {
	display: none;
}

.se-modal-address {
	margin: 0 0 16px;
	font-size: 13px;
	color: #94a3b8;
}

.se-modal-address:empty {
	display: none;
	margin: 0;
}

.se-modal-description {
	margin: 0 0 20px;
	font-size: 14.5px;
	line-height: 1.7;
	color: #e2e8f0;
	white-space: pre-line;
}

.se-modal-gallery {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-bottom: 20px;
}

.se-modal-gallery:empty {
	display: none;
	margin-bottom: 0;
}

.se-modal-gallery img {
	width: 92px;
	height: 68px;
	object-fit: cover;
	border-radius: 8px;
	flex: 0 0 auto;
}

.se-modal-ticket-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #2dd4bf;
	color: #05221e;
	font-weight: 700;
	font-size: 14px;
	padding: 12px 22px;
	border-radius: 10px;
	text-decoration: none;
}

.se-modal-ticket-btn:hover {
	filter: brightness(1.08);
}

.se-modal-ticket-btn[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                           */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
	.se-events-inner {
		flex-direction: column;
		min-height: 0;
	}

	.se-events-panel {
		flex: 0 0 auto;
		width: 100%;
		padding: 28px 24px 20px;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		text-align: left;
	}

	.se-events-title {
		font-size: 22px;
	}

	.se-events-track {
		padding: 20px 44px;
	}

	.se-card {
		width: 200px;
	}

	.se-card-media {
		height: 130px;
	}
}

@media (max-width: 520px) {
	.se-events-track {
		padding: 16px 40px 20px;
		gap: 14px;
	}

	.se-card {
		width: 168px;
	}

	.se-card-media {
		height: 110px;
	}

	.se-card-title {
		font-size: 13.5px;
	}

	.se-arrow {
		width: 32px;
		height: 32px;
	}

	.se-arrow--prev {
		left: 4px;
	}

	.se-arrow--next {
		right: 4px;
	}

	.se-modal-dialog {
		max-height: 92vh;
	}

	.se-modal-content {
		padding: 20px 18px 22px;
	}

	.se-modal-title {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.se-events-track {
		scroll-behavior: auto;
	}

	.se-card {
		transition: none;
	}
}
