/*
 * Minimal, theme-agnostic styling for the Simulaciones hub/setup/result
 * shortcodes. See onboarding.css's header comment for why this stays plain
 * and lives in the plugin, not a theme.
 */

.ent-sim-hub,
.ent-sim-setup,
.ent-sim-result {
	max-width: 40rem;
	margin: 0 auto;
}

.ent-sim-hub__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.ent-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	border: 0;
	cursor: pointer;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ent-sim-hub__resume {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	border-radius: 1rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	background: rgba(0, 0, 0, 0.05);
}

.ent-sim-hub__resume-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
	margin-bottom: 0.3rem;
}

.ent-sim-hub__resume-title {
	font-weight: 600;
}

.ent-sim-hub__filters {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
}

.ent-sim-hub__filters a {
	display: inline-block;
	padding: 0.5rem 0.9rem;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	text-decoration: none;
	font-size: 0.85rem;
	color: inherit;
}

.ent-sim-hub__filters a.is-active {
	background: currentColor;
	border-color: transparent;
}

.ent-sim-hub__filters a.is-active {
	filter: invert(1);
}

.ent-sim-hub__history {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.ent-sim-hub__row {
	display: grid;
	grid-template-columns: 4rem 1fr auto;
	gap: 1rem;
	align-items: center;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 1rem;
	padding: 1rem 1.25rem;
	text-decoration: none;
	color: inherit;
}

.ent-sim-hub__date {
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 0.75;
}

.ent-sim-hub__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.ent-sim-hub__label {
	font-weight: 600;
}

.ent-sim-hub__mode {
	font-size: 0.8rem;
	opacity: 0.7;
}

.ent-sim-hub__score {
	font-weight: 700;
	white-space: nowrap;
}

.ent-sim-setup fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 1.5rem;
}

.ent-sim-setup legend {
	font-weight: 600;
	margin-bottom: 0.75rem;
	padding: 0;
}

/* Same option-card look as onboarding.css's .ent-onboarding-option —
   duplicated rather than shared so this file has no load-order dependency
   on onboarding.css being enqueued too. */
.ent-sim-setup .ent-onboarding-option {
	display: block;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 0.75rem;
	padding: 0.85rem 1rem;
	margin-bottom: 0.6rem;
	cursor: pointer;
}

.ent-sim-setup .ent-onboarding-option:has(input:checked) {
	border-color: currentColor;
	background: rgba(0, 0, 0, 0.04);
}

.ent-sim-setup .ent-onboarding-option input {
	margin-right: 0.6rem;
}

.ent-sim-result__back {
	display: inline-block;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	opacity: 0.75;
	text-decoration: none;
	color: inherit;
}

.ent-sim-result__meta {
	opacity: 0.75;
	margin-bottom: 1rem;
}

.ent-sim-result__score {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
}

.ent-sim-result__score-total {
	font-size: 1.25rem;
	opacity: 0.6;
}

.ent-sim-result__breakdown {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.ent-sim-result__breakdown li {
	display: flex;
	justify-content: space-between;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	margin-bottom: 0.5rem;
}
