/* ============================================================
   Filtro Jugadores — tema oscuro basket
   Vars editables (overridables desde el tema/Avada)
   ============================================================ */
.fj-wrapper {
	--fj-bg:        #0E0E0E;
	--fj-surface:   #1a1a1a;
	--fj-surface-2: #242424;
	--fj-accent:    #F88138;
	--fj-accent-2:  #ff9a55;
	--fj-text:      #ffffff;
	--fj-muted:     rgba(255, 255, 255, 0.65);
	--fj-border:    rgba(255, 255, 255, 0.12);
	--fj-radius:    10px;
	--fj-shadow:    0 4px 18px rgba(0, 0, 0, 0.45);

	margin: 0 0 2.5rem;
	color: var(--fj-text);
	font-family: inherit;
}

/* ---------- Form ---------- */
.fj-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	background: var(--fj-surface);
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-radius);
	box-shadow: var(--fj-shadow);
	position: relative;
}

/* Línea naranja decorativa lateral (acento basket) */
.fj-filter::before {
	content: "";
	position: absolute;
	left: 0;
	top: 18%;
	bottom: 18%;
	width: 3px;
	background: var(--fj-accent);
	border-radius: 0 3px 3px 0;
}

.fj-filter__label {
	font-weight: 700;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--fj-muted);
	margin: 0;
	padding-left: 0.25rem;
}

/* ---------- Select ---------- */
.fj-filter__select {
	flex: 1 1 240px;
	min-width: 220px;
	padding: 0.75rem 2.75rem 0.75rem 1rem;
	background-color: var(--fj-surface-2);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23F88138' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M1 1.5l5 5 5-5'/></svg>");
	background-repeat: no-repeat;
	background-position: right 1rem center;
	background-size: 12px 8px;
	border: 1px solid var(--fj-border);
	border-radius: var(--fj-radius);
	color: var(--fj-text);
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;

	/* reset nativo */
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.fj-filter__select:hover {
	border-color: var(--fj-accent);
	background-color: #2c2c2c;
}

.fj-filter__select:focus {
	outline: none;
	border-color: var(--fj-accent);
	box-shadow: 0 0 0 3px rgba(248, 129, 56, 0.25);
}

/* Options (limitado: navegadores estilan poco el dropdown nativo) */
.fj-filter__select option {
	background: #1a1a1a;
	color: var(--fj-text);
	padding: 0.5rem;
}

/* ---------- Submit (solo noscript) ---------- */
.fj-filter__submit {
	padding: 0.75rem 1.4rem;
	background: var(--fj-accent);
	color: #0E0E0E;
	border: none;
	border-radius: var(--fj-radius);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, transform 0.18s ease;
}

.fj-filter__submit:hover {
	background: var(--fj-accent-2);
	transform: translateY(-1px);
}

/* ---------- Resultados ---------- */
.fj-results {
	position: relative;
	min-height: 80px;
	transition: opacity 0.18s ease;
}

.fj-results--loading {
	opacity: 0.45;
	pointer-events: none;
}

.fj-loading,
.fj-error,
.fj-empty {
	padding: 1.5rem 1rem;
	text-align: center;
	font-size: 0.95rem;
	color: var(--fj-muted);
	background: var(--fj-surface);
	border: 1px dashed var(--fj-border);
	border-radius: var(--fj-radius);
}

.fj-loading::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 0.6rem;
	border: 2px solid rgba(248, 129, 56, 0.3);
	border-top-color: var(--fj-accent);
	border-radius: 50%;
	animation: fj-spin 0.7s linear infinite;
	vertical-align: -2px;
}

@keyframes fj-spin {
	to { transform: rotate(360deg); }
}

.fj-error {
	color: #ff8a7a;
	border-color: rgba(255, 138, 122, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 540px) {
	.fj-filter {
		padding: 0.85rem 1rem;
		gap: 0.6rem;
	}

	.fj-filter__select {
		flex: 1 1 100%;
		min-width: 0;
	}

	.fj-filter__label {
		flex: 1 1 100%;
	}
}
