/* Lombok Events Calendar - mobile first */

.tle-page {
	--tle-accent: var(--pri-color, #3D72C4);
	--tle-accent-soft: rgba(61, 114, 196, .1);
	--tle-text: #16202e;
	--tle-muted: #5d6b7f;
	--tle-surface: #fff;
	--tle-surface-2: #f4f6f9;
	--tle-border: #e3e8ef;
	--tle-radius: 14px;
	--tle-shadow: 0 1px 2px rgba(16, 30, 54, .05), 0 6px 18px rgba(16, 30, 54, .06);
	padding: 8px 0 56px;
	color: var(--tle-text);
}

body.dark .tle-page {
	--tle-text: #e9eef6;
	--tle-muted: #9fb0c6;
	--tle-surface: #17202c;
	--tle-surface-2: #1e2937;
	--tle-border: #2b3849;
	--tle-accent-soft: rgba(102, 152, 232, .16);
	--tle-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px rgba(0, 0, 0, .25);
}

.tle-page *,
.tle-page *::before,
.tle-page *::after { box-sizing: border-box; }

.tle-page svg {
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

/* ---------- Hero ---------- */
.tle-hero { padding: 24px 0 20px; }

.tle-hero__kicker {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tle-accent);
}

.tle-hero__title {
	margin: 0 0 10px;
	font-size: clamp(28px, 7vw, 44px);
	line-height: 1.15;
	font-weight: 800;
	color: var(--tle-text);
}

.tle-hero__intro {
	margin: 0 0 20px;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.65;
	color: var(--tle-muted);
}

/* ---------- Upcoming / Past ---------- */
.tle-toggle {
	display: inline-flex;
	padding: 4px;
	gap: 4px;
	background: var(--tle-surface-2);
	border: 1px solid var(--tle-border);
	border-radius: 999px;
}

.tle-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--tle-muted);
	transition: background .18s ease, color .18s ease;
}

.tle-toggle__btn:hover { color: var(--tle-text); }

.tle-toggle__btn.is-active {
	background: var(--tle-accent);
	color: #fff;
	box-shadow: 0 2px 8px rgba(61, 114, 196, .3);
}

/* ---------- Filters ---------- */
.tle-filters {
	display: flex;
	gap: 8px;
	margin: 20px 0 8px;
	padding-bottom: 8px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.tle-filters::-webkit-scrollbar { display: none; }

.tle-filter {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--tle-border);
	border-radius: 999px;
	background: var(--tle-surface);
	color: var(--tle-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all .18s ease;
}

.tle-filter span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--tle-surface-2);
	font-size: 12px;
}

.tle-filter:hover { border-color: var(--tle-accent); color: var(--tle-text); }

.tle-filter.is-active {
	background: var(--tle-accent);
	border-color: var(--tle-accent);
	color: #fff;
}

.tle-filter.is-active span { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- Month sections ---------- */
.tle-list { margin-top: 8px; }

.tle-month { margin-bottom: 34px; }

.tle-month__head {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
	padding: 12px 0 10px;
	background: linear-gradient(to bottom, var(--wrap-color, #fff) 70%, transparent);
	border-bottom: 2px solid var(--tle-border);
	font-size: 20px;
	font-weight: 800;
}

body.dark .tle-month__head { background: linear-gradient(to bottom, #101823 70%, transparent); }

.tle-month__name { color: var(--tle-text); }

.tle-month__count {
	font-size: 13px;
	font-weight: 600;
	color: var(--tle-muted);
	white-space: nowrap;
}

.tle-month__items { display: grid; gap: 12px; }

/* ---------- Event card ---------- */
.tle-card { margin: 0; }

.tle-card__link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid var(--tle-border);
	border-radius: var(--tle-radius);
	background: var(--tle-surface);
	box-shadow: var(--tle-shadow);
	text-decoration: none;
	color: inherit;
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tle-card__link:hover,
.tle-card__link:focus-visible {
	border-color: var(--tle-accent);
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(16, 30, 54, .08), 0 12px 28px rgba(16, 30, 54, .10);
}

.tle-card__date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 62px;
	padding: 10px 4px;
	border-radius: 12px;
	background: var(--tle-accent-soft);
	color: var(--tle-accent);
	line-height: 1.1;
}

.tle-card__day { font-size: 24px; font-weight: 800; }

.tle-card__mon {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-top: 2px;
}

.tle-card__days {
	margin-top: 5px;
	padding: 1px 6px;
	border-radius: 999px;
	background: var(--tle-accent);
	color: #fff;
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.tle-card__body { display: block; flex: 1 1 auto; min-width: 0; }

.tle-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 6px;
}

.tle-card__title {
	display: block;
	margin-bottom: 6px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tle-text);
}

.tle-card__link:hover .tle-card__title { color: var(--tle-accent); }

.tle-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	font-size: 13px;
	color: var(--tle-muted);
}

.tle-fact { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }

.tle-fact svg { width: 14px; height: 14px; opacity: .8; }

.tle-card__go {
	display: none;
	flex: none;
	color: var(--tle-muted);
	font-size: 22px;
}

/* ---------- Chips ---------- */
.tle-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--tle-surface-2);
	color: var(--tle-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.6;
}

a.tle-chip:hover { background: var(--tle-accent); color: #fff; }

.tle-chip--sport { background: rgba(61, 114, 196, .12); color: #2f5fa8; }
.tle-chip--culture { background: rgba(158, 90, 46, .12); color: #8d5227; }
.tle-chip--festival { background: rgba(183, 70, 53, .12); color: #a33d2d; }
.tle-chip--music { background: rgba(119, 92, 185, .14); color: #6b52a6; }
.tle-chip--food { background: rgba(134, 102, 28, .14); color: #7a5c19; }
.tle-chip--note { background: rgba(255, 209, 102, .3); color: #7a5c19; }

body.dark .tle-chip--sport { color: #8fb4ea; }
body.dark .tle-chip--culture { color: #d5a179; }
body.dark .tle-chip--festival { color: #e79180; }
body.dark .tle-chip--music { color: #b8a3e6; }
body.dark .tle-chip--food,
body.dark .tle-chip--note { color: #e6c46f; }

/* ---------- Empty / no results ---------- */
.tle-empty {
	padding: 48px 24px;
	text-align: center;
	border: 1px dashed var(--tle-border);
	border-radius: var(--tle-radius);
	background: var(--tle-surface-2);
}

.tle-empty h2 { margin: 0 0 8px; font-size: 20px; color: var(--tle-text); }
.tle-empty p { margin: 0 0 18px; color: var(--tle-muted); }

.tle-noresults {
	padding: 40px 20px;
	text-align: center;
	color: var(--tle-muted);
	font-size: 15px;
}

/* ---------- Buttons ---------- */
.tle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: all .18s ease;
}

.tle-btn svg { width: 17px; height: 17px; }

.tle-btn--primary {
	background: var(--tle-accent);
	color: #fff;
	border: 1px solid var(--tle-accent);
}

.tle-btn--primary:hover { filter: brightness(1.08); color: #fff; }

.tle-btn--ghost {
	background: transparent;
	color: var(--tle-accent);
	border: 1px solid var(--tle-border);
}

.tle-btn--ghost:hover { border-color: var(--tle-accent); color: var(--tle-accent); }

/* ---------- Single event ---------- */
.tle-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 18px 0 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--tle-muted);
	text-decoration: none;
}

.tle-back:hover { color: var(--tle-accent); }

.tle-event__head { margin-bottom: 18px; }

.tle-event__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.tle-event__title {
	margin: 0 0 8px;
	font-size: clamp(26px, 6.5vw, 40px);
	line-height: 1.18;
	font-weight: 800;
	color: var(--tle-text);
}

.tle-event__when {
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	color: var(--tle-accent);
}

.tle-event__media { margin: 0 0 22px; }

.tle-event__media img {
	width: 100%;
	height: auto;
	border-radius: var(--tle-radius);
}

.tle-event__grid { display: grid; gap: 26px; }

.tle-event__content { font-size: 16.5px; line-height: 1.75; }

.tle-event__content h2 { font-size: 22px; margin: 26px 0 10px; }
.tle-event__content h3 { font-size: 18px; margin: 20px 0 8px; }
.tle-event__content p { margin: 0 0 16px; }
.tle-event__content ul { margin: 0 0 16px; padding-left: 20px; }
.tle-event__content li { margin-bottom: 7px; }

.tle-facts {
	padding: 20px;
	border: 1px solid var(--tle-border);
	border-radius: var(--tle-radius);
	background: var(--tle-surface-2);
}

.tle-facts__title {
	margin: 0 0 14px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--tle-muted);
}

.tle-facts dl { margin: 0 0 18px; }

.tle-facts dt {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--tle-muted);
	margin-bottom: 2px;
}

.tle-facts dd {
	margin: 0 0 14px;
	font-size: 15.5px;
	font-weight: 600;
	color: var(--tle-text);
	line-height: 1.45;
}

.tle-facts dd:last-child { margin-bottom: 0; }

.tle-facts__actions { display: grid; gap: 10px; }

.tle-related {
	margin-top: 44px;
	padding-top: 28px;
	border-top: 2px solid var(--tle-border);
}

.tle-related__title { margin: 0 0 16px; font-size: 22px; font-weight: 800; }

.tle-related__all { margin-top: 16px; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
	.tle-card__link { gap: 18px; padding: 16px 18px; }
	.tle-card__date { width: 72px; }
	.tle-card__day { font-size: 28px; }
	.tle-card__title { font-size: 19px; }
	.tle-card__go { display: block; }
	.tle-facts__actions { grid-auto-flow: column; justify-content: start; }
	.tle-month__head { font-size: 23px; }
}

@media (min-width: 992px) {
	.tle-hero { padding: 34px 0 24px; }
	.tle-event__grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 40px; }
	.tle-event__aside { position: sticky; top: 90px; }
	.tle-facts__actions { grid-auto-flow: row; }
	.tle-month__items { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.tle-page * { transition: none !important; }
	.tle-card__link:hover { transform: none; }
}
