// Questo file fa parte di MyTown.
// MyTown è software libero: puoi ridistribuirlo e/o modificarlo secondo
// i termini della GNU Affero General Public License come pubblicata dalla
// Free Software Foundation, versione 3.
// Distribuito senza ALCUNA GARANZIA; vedi la GNU AGPL v3 per i dettagli.
// Copyright (C) Kondor Consulting & Services S.r.l.
// SPDX-License-Identifier: AGPL-3.0-or-later

.sl-content {
	--background: #f4f6f9;
}

/* ── Hero (coerente con Assemblee / Unità) ─────────────── */
.sl-hero {
	padding: 18px 16px 14px;
	background: linear-gradient(135deg, var(--ion-color-primary) 0%, #0a5a92 100%);
	color: #fff;
	border-bottom-left-radius: 22px;
	border-bottom-right-radius: 22px;
	h1 {
		margin: 0;
		font-size: 1.5rem;
		font-weight: 800;
		letter-spacing: -0.4px;
		color: #fff;
	}
	p {
		margin: 2px 0 0;
		font-size: 0.82rem;
		opacity: 0.85;
		color: #fff;
	}
}

.sl-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 14px 4px;
	padding: 0 12px;
	height: 42px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(20, 40, 70, 0.06);
	ion-icon {
		font-size: 1.1rem;
		color: var(--ion-color-medium);
	}
	input {
		flex: 1;
		border: none;
		background: transparent;
		font-size: 0.9rem;
		outline: none;
		color: var(--ion-color-dark);
	}
}

.sl-list {
	padding: 10px 12px 120px;
}

.sl-card {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 14px 14px 18px;
	margin-bottom: 10px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 18px -10px rgba(17, 24, 39, 0.25);
	cursor: pointer;
	&:active {
		transform: scale(0.985);
	}

	.sl-rail {
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 5px;
	}

	.sl-info {
		flex: 1;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 2px;
		.nm {
			font-size: 15px;
			font-weight: 700;
			line-height: 1.25;
			color: var(--ion-color-dark);
			white-space: normal;
			overflow-wrap: anywhere;
			display: -webkit-box;
			-webkit-line-clamp: 2;
			-webkit-box-orient: vertical;
			overflow: hidden;
		}
		.sub {
			font-size: 12px;
			color: var(--ion-color-medium);
		}
	}
	.sl-badges {
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 4px;
		flex-shrink: 0;
	}
}

.sl-empty {
	text-align: center;
	padding: 48px 16px;
	color: var(--ion-color-medium);
	ion-icon {
		font-size: 48px;
	}
	h3 {
		margin: 12px 0 4px;
		font-size: 16px;
	}
	p {
		margin: 0;
		font-size: 13px;
	}
}
