/**
 * ==============================================================================
 * Archivo: list.css
 * Ruta: localpadel/includes/modules/matches/ui/list/list.css
 *
 * Descripción:
 *   Estilos del listado. No incluye pills ni filters (van en shared CSS).
 *   + Barra inferior de estado (plazas) en cada card:
 *     - Naranja cuando faltan jugadores
 *     - Verde cuando está full
 *   + Cabecera (hero) moderna iOS premium (sin chips)
 *
 * Versión: 2.3.0
 * Autor: Alberto Aranda Aranda
 * Último cambio: 2025-12-23 Europe/Madrid
 * ==============================================================================
 */

.lp-osans,
.lp-osans *{
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, Arial, sans-serif;
}

.lp-matches-list{
	max-width: 980px;
	margin: 14px auto 40px auto;
	padding: 0 14px;
}

/* =============================================================================
   HERO cabecera (PRO, moderna, iOS) — sin “chips”
   ========================================================================== */

.lp-hero{
	position: relative;
	border-radius: 24px;
	padding: 16px 16px 14px 16px;

	border: 1px solid rgba(15,23,42,.10);
	background:
		radial-gradient(900px 420px at 12% 5%, rgba(44,74,156,.18), transparent 60%),
		radial-gradient(700px 380px at 88% 0%, rgba(245,158,11,.10), transparent 55%),
		linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.70));

	box-shadow:
		0 18px 46px rgba(15,23,42,.10),
		inset 0 1px 0 rgba(255,255,255,.60);

	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.lp-hero-top{
	display:flex;
	align-items:flex-start;
	justify-content: space-between;
	gap: 14px;
}

.lp-hero-titlewrap{
	display:flex;
	align-items:flex-start;
	gap: 12px;
	min-width: 0;
}

.lp-hero-icon{
	width: 40px;
	height: 40px;
	border-radius: 14px;
	display:flex;
	align-items:center;
	justify-content:center;

	border: 1px solid rgba(44,74,156,.22);
	background:
		radial-gradient(600px 260px at 30% 20%, rgba(44,74,156,.18), transparent 55%),
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
	box-shadow:
		0 10px 26px rgba(15,23,42,.10),
		inset 0 1px 0 rgba(255,255,255,.70);
	flex: 0 0 auto;
}

.lp-hero-title{
	font-size: 22px;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color:#0f172a;
}

.lp-hero-sub{
	margin-top: 6px;
	color: rgba(15,23,42,.62);
	font-size: 13px;
	line-height: 1.35;
	max-width: 62ch;
}

.lp-hero-kpi{
	flex: 0 0 auto;
	text-align: right;
	padding: 10px 12px;
	border-radius: 18px;

	border: 1px solid rgba(15,23,42,.10);
	background: rgba(255,255,255,.75);
	box-shadow:
		0 10px 26px rgba(15,23,42,.08),
		inset 0 1px 0 rgba(255,255,255,.60);
}

.lp-hero-kpi__num{
	font-size: 18px;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color:#0f172a;
}

.lp-hero-kpi__txt{
	margin-top: 3px;
	color: rgba(15,23,42,.62);
	font-size: 12px;
	line-height: 1.2;
}

.lp-hero-foot{
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid rgba(15,23,42,.08);
}

.lp-hero-hint{
	color: rgba(15,23,42,.56);
	font-size: 12.5px;
	line-height: 1.25;
}

/* =============================================================================
   Cards base
   ========================================================================== */

.lp-card{
	background: #fff;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 22px;
	padding: 14px 14px;
	box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.lp-card--filters{
	margin-top: 12px;
}

.lp-muted{
	color: #6b7280;
	font-size: 13px;
	line-height: 1.35;
}

.lp-btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	padding: 10px 12px;
	border-radius: 14px;
	border: 1px solid rgba(15,23,42,.10);
	background: #fff;
	color: #0f172a;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
	transition: transform .08s ease, border-color .12s ease, box-shadow .12s ease;
}

.lp-btn:hover{
	border-color: rgba(44,74,156,.25);
	box-shadow: 0 10px 26px rgba(15,23,42,.07);
}

.lp-btn:active{
	transform: translateY(1px);
}

.lp-btn--ghost{
	background:#fff;
}

.lp-cards{
	margin-top: 12px;
	display: grid;
	gap: 12px;
}

.lp-match-card{
	display:block;
	text-decoration:none;
	background:#fff;
	border: 1px solid rgba(15,23,42,.08);
	border-radius: 22px;
	padding: 14px 14px;

	position: relative;
	overflow: hidden;

	padding-bottom: 54px;

	box-shadow: 0 8px 24px rgba(15,23,42,.06);
	transition: transform .10s ease, box-shadow .14s ease, border-color .14s ease;
}

.lp-match-card:hover{
	border-color: rgba(44,74,156,.25);
	box-shadow: 0 14px 34px rgba(15,23,42,.08);
	transform: translateY(-1px);
}

.lp-match-card:active{
	transform: translateY(0px);
}

.lp-match-card-top{
	display:flex;
	align-items:flex-start;
	justify-content: space-between;
	gap: 10px;
}

.lp-match-card-title{
	font-size: 15px;
	letter-spacing: -0.01em;
	color:#0f172a;
	line-height: 1.25;
}

.lp-match-card-chevron{
	color:#2C4A9C;
	font-size: 18px;
	line-height: 1;
	margin-top: 2px;
}

.lp-match-card-pills{
	margin-top: 10px;
	display:flex;
	gap: 7px;
	flex-wrap: wrap;
}

.lp-match-card-foot{
	margin-top: 10px;
}

.lp-empty-title{
	font-size: 15px;
	letter-spacing: -0.01em;
	color:#0f172a;
}

/* =============================================================================
   Barra inferior de estado (plazas) — PRO, iOS premium
   ========================================================================== */

.lp-match-bar{
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;

	height: 22px;
	border-radius: 999px;

	background: rgba(15,23,42,.06);
	border: 1px solid rgba(15,23,42,.10);

	display: flex;
	align-items: center;
	gap: 10px;

	padding: 0 8px;

	box-shadow:
		0 12px 30px rgba(15,23,42,.10),
		inset 0 1px 0 rgba(255,255,255,.55);
}

.lp-match-bar__fill{
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	border-radius: 999px;
	transition: width .25s ease;

	background: linear-gradient(
		90deg,
		rgba(245,158,11,.95),
		rgba(251,146,60,.95)
	);
	box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.lp-match-bar.is-full .lp-match-bar__fill{
	background: linear-gradient(
		90deg,
		rgba(34,197,94,.95),
		rgba(16,185,129,.95)
	);
}

.lp-match-dots,
.lp-match-bar__meta{
	position: relative;
	z-index: 2;
}

.lp-match-dots{
	display: flex;
	align-items: center;
	gap: 5px;
	margin-left: 2px;
}

.lp-match-dot{
	width: 7px;
	height: 7px;
	border-radius: 999px;
	border: 1px solid rgba(15,23,42,.18);
	background: rgba(255,255,255,.70);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.lp-match-dot.is-on{
	border-color: rgba(245,158,11,.55);
	background: rgba(245,158,11,.35);
}

.lp-match-bar.is-full .lp-match-dot.is-on{
	border-color: rgba(34,197,94,.55);
	background: rgba(34,197,94,.35);
}

.lp-match-bar__meta{
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.lp-match-bar__txt{
	font-size: 12px;
	line-height: 1;
	color: rgba(15,23,42,.82);
	letter-spacing: -0.01em;

	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.72);
	border: 1px solid rgba(15,23,42,.08);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.lp-match-bar__badge{
	font-size: 11px;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;

	border: 1px solid rgba(15,23,42,.10);
	background: rgba(255,255,255,.82);
	color: rgba(15,23,42,.82);

	box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

.lp-match-bar.is-full .lp-match-bar__badge{
	border-color: rgba(34,197,94,.35);
	background: rgba(34,197,94,.14);
	color: rgba(22,101,52,.95);
}

/* Responsive */
@media (max-width: 520px){
	.lp-hero-top{
		flex-direction: column;
		align-items: stretch;
	}
	.lp-hero-kpi{
		text-align: left;
		width: fit-content;
	}
}
