/* Licinio Event List – Theme-agnostic block styles */

.licinio-events-list {
	max-width: 100%;
	margin: 1.5em 0;
}

/* Empty state */
.licinio-events-list--empty {
	padding: 2em 1em;
	text-align: center;
	color: #666;
}

/* Date group container */
.licinio-events-list-date-group {
	margin-bottom: 2em;
	border-bottom: 1px solid #e0e0e0;
	padding-bottom: 1.5em;
}

.licinio-events-list-date-group:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

/* Date heading */
.licinio-events-list-date-heading {
	display: flex;
	align-items: baseline;
	gap: 0.4em;
	margin: 0 0 0.75em;
	font-size: 1.1em;
	line-height: 1.4;
}

.licinio-events-list-date-day {
	font-size: 1.6em;
	font-weight: 700;
	line-height: 1;
}

.licinio-events-list-date-month {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 0.85em;
	color: #666;
}

.licinio-events-list-date-year {
	font-size: 0.85em;
	color: #999;
}

.licinio-events-list-date-weekday {
	margin-left: auto;
	font-size: 0.8em;
	color: #888;
	text-transform: uppercase;
}

/* Events list */
.licinio-events-list-items {
	display: flex;
	flex-direction: column;
	gap: 0.75em;
}

/* Single event card */
.licinio-events-list-item {
	display: flex;
	gap: 1em;
	align-items: flex-start;
	padding: 0.75em;
	background: #fafafa;
	border: 1px solid #eee;
	border-radius: 4px;
	transition: background 0.15s ease;
}

.licinio-events-list-item:hover {
	background: #f0f0f0;
}

/* Thumbnail */
.licinio-events-list-item-thumb {
	flex: 0 0 80px;
	max-width: 80px;
}

.licinio-events-list-item-thumb img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 3px;
}

/* Item body */
.licinio-events-list-item-body {
	flex: 1;
	min-width: 0;
}

.licinio-events-list-item-title {
	margin: 0 0 0.25em;
	font-size: 1em;
	line-height: 1.3;
}

.licinio-events-list-item-title a {
	text-decoration: none;
	color: inherit;
}

.licinio-events-list-item-title a:hover {
	text-decoration: underline;
}

/* Meta row: date, time, location */
.licinio-events-list-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 0.75em;
	font-size: 0.85em;
	color: #666;
	line-height: 1.5;
}

.licinio-events-list-item-date::before {
	content: "\f508"; /* dashicons-calendar */
	font-family: dashicons;
	margin-right: 0.2em;
	vertical-align: middle;
}

.licinio-events-list-item-time::before {
	content: "\f469"; /* dashicons-clock */
	font-family: dashicons;
	margin-right: 0.2em;
	vertical-align: middle;
}

.licinio-events-list-item-location::before {
	content: "\f230"; /* dashicons-location */
	font-family: dashicons;
	margin-right: 0.2em;
	vertical-align: middle;
}

/* Responsive: stack on small screens */
@media (max-width: 480px) {
	.licinio-events-list-item {
		flex-direction: column;
	}

	.licinio-events-list-item-thumb {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.licinio-events-list-date-heading {
		flex-wrap: wrap;
	}

	.licinio-events-list-date-weekday {
		margin-left: 0;
		width: 100%;
	}
}
