/**
 * Timeline (V8) — horizontal day-by-day.
 *
 * @package Tobalt_Renginiai
 * @author  Tobalt — https://tobalt.lt
 */

.tr-timeline {
	max-width: 1200px;
	margin: 0 auto;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.tr-timeline::-webkit-scrollbar {
	display: none;
}

.tr-timeline__track {
	display: flex;
	gap: 0;
	min-width: min-content;
	padding-bottom: 8px;
}

/* ── Day Column ───────────────────────────────────────────── */

.tr-timeline__day {
	flex: 0 0 240px;
	min-width: 240px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tr-timeline__day-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px;
}

.tr-timeline__day-wd {
	font-size: 12px;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
}

.tr-timeline__day-num {
	font-size: 28px;
	font-weight: 800;
	color: #111827;
	line-height: 1;
}

.tr-timeline__day--today .tr-timeline__day-num {
	color: #2563eb;
}

.tr-timeline__day-month {
	font-size: 13px;
	color: #6b7280;
}

/* Vertical line connector */
.tr-timeline__day-line {
	width: 2px;
	height: 24px;
	background: #e5e7eb;
}

.tr-timeline__day--today .tr-timeline__day-line {
	background: #2563eb;
}

/* ── Events in day ────────────────────────────────────────── */

.tr-timeline__events {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 0 12px;
}

.tr-timeline__event {
	background: #fff;
	border-radius: 10px;
	padding: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.tr-timeline__event-thumb {
	width: 100%;
	height: 100px;
	object-fit: cover;
	border-radius: 6px;
}

.tr-timeline__event-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827;
}

.tr-timeline__event-title a {
	color: inherit;
	text-decoration: none;
}

.tr-timeline__event-title a:hover {
	color: #2563eb;
}

.tr-timeline__event-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tr-timeline__event-meta .tr-meta-item {
	font-size: 12px;
}

.tr-timeline__event .tr-like-btn {
	align-self: flex-start;
	padding: 4px 10px;
	font-size: 12px;
}

@media ( max-width: 768px ) {
	.tr-timeline__day {
		flex: 0 0 200px;
		min-width: 200px;
	}
}
