// 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

.fv-content {
	--background: #f4f5f8;
}

.fv-hero {
	padding: 20px 16px 8px;
	h1 {
		margin: 0;
		font-size: 1.5rem;
		font-weight: 700;
		color: var(--ion-text-color, #1f2330);
	}
	p {
		margin: 4px 0 0;
		font-size: 0.85rem;
		color: #7a8194;
	}
}

.fv-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 16px 4px;
	padding: 8px 12px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);

	ion-icon {
		font-size: 1.1rem;
		color: #9aa0b0;
	}
	input {
		flex: 1;
		border: none;
		outline: none;
		background: transparent;
		font-size: 0.95rem;
	}
}

.fv-list {
	padding: 8px 16px 24px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pv-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 12px 14px 16px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	cursor: pointer;

	.pv-rail {
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 4px;
		background: #f5a623;
	}

	.pv-icon {
		flex: 0 0 auto;
		width: 42px;
		height: 42px;
		border-radius: 12px;
		display: flex;
		align-items: center;
		justify-content: center;
		background: rgba(245, 166, 35, 0.12);
		ion-icon {
			font-size: 1.4rem;
			color: #f5a623;
		}
	}

	.pv-main {
		flex: 1;
		min-width: 0;
	}

	.pv-name {
		margin: 0 0 4px;
		font-size: 1rem;
		font-weight: 600;
		color: #1f2330;
	}

	.pv-meta {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 12px;
		.m {
			display: inline-flex;
			align-items: center;
			gap: 4px;
			font-size: 0.8rem;
			color: #7a8194;
			ion-icon {
				font-size: 0.95rem;
			}
		}
	}

	.pv-chevron {
		flex: 0 0 auto;
		color: #c2c7d4;
		font-size: 1.1rem;
	}
}

.fv-skel {
	padding: 8px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	.fv-skel-card {
		height: 78px;
		border-radius: 14px;
		background: linear-gradient(90deg, #ececec 25%, #f5f5f5 37%, #ececec 63%);
		background-size: 400% 100%;
		animation: fv-shimmer 1.4s ease infinite;
	}
}

@keyframes fv-shimmer {
	0% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

.fv-empty {
	text-align: center;
	padding: 48px 24px;
	color: #9aa0b0;
	ion-icon {
		font-size: 3rem;
		color: #d7dbe5;
	}
	h3 {
		margin: 12px 0 4px;
		font-size: 1.05rem;
		color: #5a6072;
	}
	p {
		margin: 0;
		font-size: 0.85rem;
	}
}
