/*! SlotPokerPro Compatibilidade — front | v1.0.4
 *  Valores tirados do get_design_context do Figma (nós 2006:4301 / 2006:4854).
 */

.sppc {
	--sppc-bg: #040406;
	--sppc-text: #FFFFFF;
	--sppc-muted: #8FA0C8;
	--sppc-blue: #59ABFA;
	--sppc-amber: #EEA042;

	--sppc-row: rgba(255, 255, 255, .04);
	--sppc-blue-fill: rgba(28, 63, 156, .35);
	--sppc-blue-line: rgba(89, 171, 250, .9);
	--sppc-amber-fill: rgba(90, 49, 1, .35);
	--sppc-amber-line: rgba(238, 160, 66, .9);

	--sppc-off: #2A365C;
	--sppc-bar: #1C2A52;

	--sppc-feat: 400px;
	--sppc-gap: 2px;

	box-sizing: border-box;
	display: block;
	padding-block: 4rem;
	padding-inline: max(1.5rem, (100% - 76rem) / 2);
	background: var(--sppc-bg);
	color: var(--sppc-text);
	/* o body do tema não usa Google Sans (o Elementor aplica por widget), então
	   herdar daria a pilha do sistema — por isso a fonte é declarada aqui */
	font-family: "Google Sans", sans-serif;
	font-feature-settings: "salt" 1;
	/* trocar o plano reordena linhas; sem isto o Chrome "ancora" o scroll
	   numa linha que mudou de lugar e a página pula ~200px */
	overflow-anchor: none;
}

.sppc *,
.sppc *::before,
.sppc *::after { box-sizing: border-box; }

.sppc p { margin: 0; }

.sppc .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- intro */

.sppc-intro {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-bottom: 32px;
	text-align: center;
}

.sppc-badge {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 18px;
	border: 1px solid #1C357B;
	border-radius: 46px;
	background: rgba(12, 18, 39, .7);
	-webkit-backdrop-filter: blur(11.45px);
	backdrop-filter: blur(11.45px);
	font-size: 12px;
	line-height: 1.5;
	text-transform: uppercase;
	color: var(--sppc-text);
}
.sppc-badge svg { width: 20px; height: 20px; flex: none; }

.sppc-title {
	margin: 0;
	font-size: 48px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--sppc-text);
}
.sppc-title em {
	font-style: normal;
	background: linear-gradient(90deg, #1D9FCD 0%, #60D8F7 27.885%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.sppc-sub {
	font-size: 14px;
	line-height: 1.5;
	color: var(--sppc-text);
}

/* ------------------------------------------------------- filtro de plano */

.sppc-filter {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 0 12px;
}

.sppc-filter-main {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sppc-filter-label {
	font-size: 14px;
	line-height: normal;
	color: var(--sppc-muted);
	white-space: nowrap;
}

.sppc-toggle {
	display: flex;
	align-items: flex-start;
	gap: 4px;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 999px;
	background: rgba(255, 255, 255, .04);
}

.sppc-opt {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--sppc-muted);
	font: inherit;
	line-height: normal;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.sppc-opt:hover,
.sppc-opt:focus { background: transparent; color: var(--sppc-muted); }
.sppc-opt i {
	width: 6px; height: 6px;
	flex: none;
	border-radius: 50%;
	background: #4F576C;
	transition: background-color .18s ease;
}
.sppc-opt-name  { font-size: 14px; font-weight: 500; }
.sppc-opt-count { font-size: 12px; font-weight: 400; opacity: .7; }

.sppc-opt.is-on { color: var(--sppc-text); }
.sppc-opt.is-on .sppc-opt-count { opacity: 1; }

.sppc-opt.is-on[data-plan="premium"],
.sppc-opt.is-on[data-plan="premium"]:hover { background: var(--sppc-amber-fill); border-color: var(--sppc-amber-line); color: var(--sppc-text); }
.sppc-opt.is-on[data-plan="premium"] i { background: var(--sppc-amber); }
.sppc-opt.is-on[data-plan="premium"] .sppc-opt-count { color: var(--sppc-amber); }

.sppc-opt.is-on[data-plan="essencial"],
.sppc-opt.is-on[data-plan="essencial"]:hover { background: var(--sppc-blue-fill); border-color: var(--sppc-blue-line); color: var(--sppc-text); }
.sppc-opt.is-on[data-plan="essencial"] i { background: var(--sppc-blue); }
.sppc-opt.is-on[data-plan="essencial"] .sppc-opt-count { color: var(--sppc-blue); }

.sppc-opt:focus-visible { outline: 2px solid var(--sppc-blue-line); outline-offset: 2px; }

.sppc-hint {
	font-size: 12px;
	line-height: normal;
	color: var(--sppc-muted);
	white-space: nowrap;
}
.sppc[data-plan="premium"]   .sppc-hint[data-for="essencial"],
.sppc[data-plan="essencial"] .sppc-hint[data-for="premium"] { display: none; }

/* ----------------------------------------------------------------- grade */

.sppc-scroll {
	position: relative;
	margin-top: 32px;
}

.sppc-table {
	position: relative;
	isolation: isolate;          /* cria o contexto para o overlay ficar ATRÁS das linhas */
	display: flex;
	flex-direction: column;
	gap: var(--sppc-gap);
}

/* Coluna em destaque — no Figma é a camada de baixo; as linhas (branco 4%)
   passam por cima dela, e é isso que dá os dois tons de azul. */
.sppc-overlay { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sppc-mark {
	position: absolute;
	background: var(--sppc-blue-fill);
	border: 1px solid var(--sppc-blue-line);
	border-radius: 12px;
}

.sppc-row {
	display: grid;
	grid-template-columns: var(--sppc-feat) repeat(var(--sppc-cols), minmax(0, 1fr));
	align-items: center;
	min-height: 40px;
	border-radius: 8px;
	background: var(--sppc-row);
	--sppc-rowbg: #0E0E10;
}

.sppc-row--head {
	min-height: 92px;
	align-items: end;
	border-radius: 0;
	background: transparent;
	--sppc-rowbg: var(--sppc-bg);
}

.sppc-group {
	min-height: 36px;
	align-items: end;
	border-radius: 0;
	background: transparent;
	--sppc-rowbg: var(--sppc-bg);
}
.sppc-group .sppc-cell--feat {
	padding: 0 0 8px 12px;
	font-size: 11px;
	font-weight: 500;
	line-height: normal;
	letter-spacing: .88px;
	text-transform: uppercase;
	color: var(--sppc-blue);
	white-space: nowrap;
}

.sppc-cell {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	align-self: stretch;
}

/* ----------------------------------------------- coluna 1 (recurso + selo) */

.sppc-cell--feat {
	justify-content: space-between;
	gap: 12px;
	padding: 6px 12px;
	text-align: left;
}

.sppc-label {
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	color: var(--sppc-text);
}

.sppc-tag {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 59px;
	height: 25px;
	padding: 0 8px;
	border: 1px solid;
	border-radius: 8px;
	font-size: 10px;
	line-height: normal;
	white-space: nowrap;
}
.sppc-tag--essential { background: var(--sppc-blue-fill);  border-color: var(--sppc-blue-line);  color: var(--sppc-blue); }
.sppc-tag--premium   { background: var(--sppc-amber-fill); border-color: var(--sppc-amber-line); color: var(--sppc-amber); }

/* ------------------------------------------------------------ cabeçalho */

.sppc-row--head .sppc-cell--feat {
	align-self: end;
	align-items: center;
	padding: 0 12px 14px;
}

.sppc-legend-box {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.sppc-legend-title {
	font-size: 18px;
	font-weight: 500;
	line-height: normal;
	color: var(--sppc-text);
}
.sppc-legend {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 12px;
	line-height: normal;
	color: var(--sppc-muted);
	white-space: nowrap;
}
.sppc-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sppc-plan-col {
	width: 59px;
	flex: none;
	text-align: center;
	font-size: 12px;
	line-height: normal;
	color: var(--sppc-muted);
}

.sppc-cell--site {
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	height: 92px;
	margin: 0;
	padding: 14px 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	scroll-snap-align: start;
}
.sppc-cell--site:hover,
.sppc-cell--site:focus,
.sppc-cell--site:active { background: transparent; color: inherit; outline: 0; box-shadow: none; }
.sppc-cell--site:focus-visible { outline: 2px solid var(--sppc-blue-line); outline-offset: -2px; border-radius: 12px; }

.sppc-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 30px;
	flex: none;
}
.sppc-logo img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.sppc-logo-txt { font-size: 11px; line-height: 1.1; text-align: center; color: #C2C2C6; }

.sppc-score {
	font-size: 11px;
	line-height: normal;
	color: var(--sppc-muted);
	transition: color .18s ease;
}
.sppc-cell--site.is-on .sppc-score { color: var(--sppc-text); }

.sppc-bar {
	position: relative;
	display: block;
	width: 40px;
	height: 3px;
	flex: none;
	border-radius: 2px;
	background: var(--sppc-bar);
	overflow: hidden;
}
.sppc-bar i {
	position: absolute;
	left: 0; top: 0;
	height: 3px;
	border-radius: 2px;
	background: var(--sppc-blue);
}

/* ------------------------------------------------------------- bolinhas */

.sppc-dot {
	display: inline-block;
	flex: none;
	width: 6px; height: 6px;
	border-radius: 50%;
	background: var(--sppc-off);
}
.sppc-dot.is-on {
	width: 10px; height: 10px;
	background: var(--sppc-blue);
	box-shadow: 0 0 8px 0 rgba(89, 171, 250, .65);
}

/* ------------------------------------------------------- modo Essencial */

.sppc[data-plan="essencial"] .sppc-row--premium {
	order: 1000;
	opacity: .2;
}
.sppc[data-plan="essencial"] .sppc-row--premium.is-demoted-first { margin-top: 18px; }
.sppc .sppc-group.is-empty { display: none; }

/* ---------------------------------------------------------------- rodapé */

.sppc-foot {
	margin-top: var(--sppc-gap);
	padding: 12px 0;
	font-size: 12px;
	line-height: normal;
	color: var(--sppc-muted);
}
.sppc-foot b,
.sppc-foot strong { font-weight: 600; color: var(--sppc-amber); }
.sppc-foot em,
.sppc-foot i { font-style: normal; color: var(--sppc-blue); }

/* --------------------------------------------- modo embutido (na página) */

.sppc.sppc--embed {
	background: transparent;
	padding-block: 0;
	padding-inline: max(0px, (100% - 76rem) / 2);
}

/* ------------------------------------------- Elementor: widget Shortcode */

.elementor-widget-shortcode:has(.sppc),
.elementor-widget-shortcode:has(.sppc) > .elementor-widget-container,
.elementor-widget-shortcode:has(.sppc) .elementor-shortcode { width: 100%; }

/* --------------------------------------------------------------- mobile */

@media (max-width: 1024px) {
	.sppc { padding-block: 3rem; }
	.sppc-title { font-size: 32px; }
	.sppc-filter { flex-wrap: wrap; padding: 0; }
	.sppc-filter-main { flex-wrap: wrap; gap: 12px; }
	.sppc-hint { white-space: normal; }

	.sppc-scroll {
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		margin-inline: -1.5rem;
		padding-inline: 1.5rem;
	}
	.sppc-row {
		grid-template-columns: 216px repeat(var(--sppc-cols), 72px);
		width: max-content;
		min-width: 100%;
	}
	.sppc-cell--feat {
		position: sticky;
		left: 0;
		z-index: 2;
		background: var(--sppc-rowbg);
		border-radius: 8px 0 0 8px;
	}
	.sppc-row--head .sppc-cell--feat,
	.sppc-group .sppc-cell--feat { border-radius: 0; }
	.sppc-label { white-space: normal; }
	.sppc-legend { flex-wrap: wrap; gap: 8px 12px; }
}

@media (max-width: 480px) {
	.sppc-title { font-size: 28px; }
	.sppc-row { grid-template-columns: 184px repeat(var(--sppc-cols), 68px); }
}


/* --------------------------------- desktop: 8 colunas + scroll lateral (v1.0.6)
   Mostra 8 sites por vez; as demais colunas ficam num scroll horizontal.
   A coluna de recursos fica fixa (sticky) e o front.js recorta a moldura e os
   logos do cabeçalho quando passam por baixo dela. Mudar a quantidade visível:
   --sppc-visiveis. */

@media (min-width: 1025px) {
	.sppc { --sppc-visiveis: 8; }

	.sppc .sppc-scroll {
		container-type: inline-size;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		scroll-padding-left: var(--sppc-feat);
		overscroll-behavior-x: contain;
		/* overflow-y:hidden cortaria a moldura (top:-4px) — folga em cima */
		margin-top: 24px;
		padding-top: 8px;
		padding-bottom: 14px;
		scrollbar-width: thin;
		scrollbar-color: rgba(89, 171, 250, .55) rgba(255, 255, 255, .06);
	}
	.sppc .sppc-row {
		grid-template-columns: var(--sppc-feat) repeat(var(--sppc-cols), calc((100cqw - var(--sppc-feat)) / var(--sppc-visiveis)));
		width: max-content;
		min-width: 100%;
	}
	.sppc .sppc-cell--feat {
		position: sticky;
		left: 0;
		z-index: 2;
		background: var(--sppc-rowbg);
		border-radius: 8px 0 0 8px;
	}
	.sppc .sppc-row--head .sppc-cell--feat,
	.sppc .sppc-group .sppc-cell--feat {
		border-radius: 0;
		background: transparent;
	}
}
