/**
 * Estilos Front-End de Alta Conversão - YES App Funnel Manager
 * 100% Nativo WordPress / Tema Astra: Sem wraps, sem caixas flutuantes, sem canvas cinza.
 */

:root {
	--yes-app-primary: #0284c7;
	--yes-app-primary-hover: #0369a1;
	--yes-app-success: #16a34a;
	--yes-app-text-main: inherit;
	--yes-app-text-muted: #64748b;
	--yes-app-border: #e2e8f0;
}

/* Neutralização Total de Wrappers e Caixas Artificiais */
.yes-app-main,
.yes-app-container,
.yes-app-article,
.ast-article-single {
	box-shadow: none;
}

/* Título H1 das Landing Pages do Funil (Recomendador, P1, P2, P3) */
body.single-app_p1 .entry-title,
body.single-app_p2 .entry-title,
body.single-app_p3 .entry-title,
body.single-app_rec .entry-title {
	font-size: 28px;
	line-height: 1.25;
}

@media (max-width: 768px) {
	body.single-app_p1 .entry-title,
	body.single-app_p2 .entry-title,
	body.single-app_p3 .entry-title,
	body.single-app_rec .entry-title,
	body.single-app_p1 header.entry-header .entry-title,
	body.single-app_p2 header.entry-header .entry-title,
	body.single-app_p3 header.entry-header .entry-title,
	body.single-app_rec header.entry-header .entry-title {
		font-size: 17px !important;
		line-height: 1.35 !important;
	}
}

/* Tipografia e Parágrafos Editoriais Naturais */
.entry-content .yes-app-text-block {
	font-size: 1.05rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
	color: inherit;
}

.entry-content .yes-app-text-block p {
	margin-bottom: 1.25rem;
	line-height: 1.8;
}

/* Slots de Anúncios GAM / Ad Inserter */
.yes-app-ad-slot {
	margin: 24px auto;
	text-align: center;
	clear: both;
	display: block;
	max-width: 100%;
}

.yes-app-ad-wrapper {
	margin: 20px auto;
	text-align: center;
	clear: both;
}

.yes-app-ad-label {
	display: block;
	font-size: 10px;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

/* Destaque Editorial Integrado ao Conteúdo */
.entry-content .yes-app-highlight-box {
	background: #f8fafc;
	border-left: 4px solid var(--yes-app-primary);
	padding: 16px 20px;
	border-radius: 4px;
	margin: 24px 0;
	font-size: 1rem;
	line-height: 1.7;
}

.entry-content .yes-app-highlight-box p:last-child {
	margin-bottom: 0;
}

/* Lista de Recursos (P2) */
.entry-content .yes-app-features-box ul {
	margin: 16px 0 20px 24px;
	padding-left: 0;
}

.entry-content .yes-app-features-box li {
	margin-bottom: 10px;
	line-height: 1.6;
}

/* Passo a Passo de Instalação (P3) */
.entry-content .yes-app-steps-list {
	margin: 20px 0;
}

.entry-content .yes-app-step-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 14px;
}

.entry-content .yes-app-step-item strong {
	color: var(--yes-app-primary);
	font-size: 1.05rem;
	display: block;
	margin-bottom: 6px;
}

.entry-content .yes-app-step-item p:last-child {
	margin-bottom: 0;
}

/* Botões de Ação de Alta Conversão (CTR Alto) */
.yes-app-cta-wrap {
	margin: 32px 0 20px 0;
	text-align: center;
	clear: both;
}

.yes-app-cta-btn {
	display: block;
	width: 100%;
	max-width: 640px;
	margin: 0 auto;
	background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
	color: #ffffff !important;
	text-align: center;
	padding: 18px 24px;
	font-size: 18px;
	font-weight: 700;
	border-radius: 10px;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
	transition: all 0.25s ease;
	cursor: pointer;
	box-sizing: border-box;
}

.yes-app-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
	background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
	color: #ffffff !important;
}

/* Badge / Tag de Escassez Superior nos Botões */
.yes-app-scarcity-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #fde68a;
	padding: 4px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 10px;
	letter-spacing: 0.3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Botões Agressivos de P1 (Verde Alto CTR estilo yesgethired / yes-funnel-manager) */
.yes-app-p1-btn-aggressive {
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
	box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35) !important;
}

.yes-app-p1-btn-aggressive:hover {
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
	box-shadow: 0 6px 22px rgba(22, 163, 74, 0.45) !important;
	transform: translateY(-2px) scale(1.01);
}

.yes-app-cta-footer {
	margin-top: 36px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

/* Efeito Sutil de Pulso */
@keyframes yesAppPulse {
	0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5); }
	70% { box-shadow: 0 0 0 10px rgba(2, 132, 199, 0); }
	100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.yes-app-pulse {
	animation: yesAppPulse 2s infinite;
}

/* Botão Oficial da Loja de Download (P3) */
.yes-app-store-btn {
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
	box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
	font-size: 19px;
	padding: 20px 28px;
}

.yes-app-store-btn:hover {
	background: linear-gradient(135deg, #15803d 0%, #166534 100%);
	box-shadow: 0 6px 20px rgba(22, 163, 74, 0.45);
	color: #ffffff !important;
}

/* Cluster de 3 Botões de Alto CTR (Recomendador / Bridge Page) */
.yes-button-cluster-wrap {
	margin: 28px auto 32px auto;
	max-width: 480px;
	text-align: center;
}

/* Título divisor acima do Cluster de Botões (Separação estrita de Anúncio / Alto CTR / AdSense Safe) */
.yes-cluster-title {
	font-size: 16px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 auto 14px auto;
	text-align: center;
	line-height: 1.4;
	display: inline-block;
	background: #f8fafc;
	padding: 7px 18px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	letter-spacing: -0.2px;
}

.yes-button-cluster {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.yes-cluster-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
	padding: 16px 20px;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.28);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
	line-height: 1.35;
	text-align: center;
	box-sizing: border-box;
}

.yes-cluster-btn:hover {
	background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(22, 163, 74, 0.4);
}

/* Simulador Interativo (alternativa ao Cluster de 3 Botões no Recomendador) */
.yes-sim {
	--yes-sim-green: #16a34a;
	background: #ffffff;
	border: 1px solid var(--yes-app-border);
	border-radius: 14px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
	padding: 20px 18px 16px;
	text-align: left;
}

.yes-sim-q {
	font-size: 17px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 12px;
	line-height: 1.35;
}

.yes-sim-range-box {
	position: relative;
	background: #f1f5f9;
	border-radius: 10px;
	padding: 46px 14px 10px;
	margin-bottom: 18px;
}

.yes-sim-bubble {
	position: absolute;
	top: 8px;
	left: calc(31px + (100% - 62px) * var(--yes-sim-r));
	transform: translateX(-50%);
	background: var(--yes-sim-green);
	color: #ffffff;
	font-weight: 700;
	font-size: 15px;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

.yes-sim-bubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-bottom: 0;
	border-top-color: var(--yes-sim-green);
}

/* Seletores reforçados: o tema (Astra) estiliza input[type=range] com prioridade maior */
.yes-sim input[type="range"].yes-sim-range {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 22px;
	margin: 0;
	padding: 0;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: linear-gradient(to right, var(--yes-sim-green) 0, var(--yes-sim-green) var(--yes-sim-pct), #ffffff var(--yes-sim-pct), #ffffff 100%);
	box-shadow: none;
	cursor: pointer;
	outline: none;
}

.yes-sim input[type="range"].yes-sim-range::-webkit-slider-runnable-track {
	height: 20px;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.yes-sim input[type="range"].yes-sim-range::-moz-range-track {
	height: 20px;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.yes-sim input[type="range"].yes-sim-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 34px;
	height: 34px;
	margin-top: -7px;
	border-radius: 50%;
	background: var(--yes-sim-green);
	border: 3px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.yes-sim input[type="range"].yes-sim-range::-moz-range-thumb {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--yes-sim-green);
	border: 3px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.yes-sim-limits {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	margin-top: 6px;
}

.yes-sim-installments {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
	gap: 8px;
	margin-bottom: 16px;
}

.yes-sim-n {
	background: #f1f5f9;
	color: #64748b;
	border: 0;
	border-radius: 8px;
	padding: 14px 0;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.yes-sim-n:hover {
	background: #e2e8f0;
}

.yes-sim-n.is-active {
	background: var(--yes-sim-green);
	color: #ffffff;
}

.yes-sim-result {
	font-size: 17px;
	color: #0f172a;
	margin: 0 0 14px;
}

.yes-sim-value {
	color: var(--yes-sim-green);
	font-size: 22px;
	white-space: nowrap;
}

.yes-sim-btn {
	display: block;
	background: #facc15;
	color: #1f2937 !important;
	text-align: center;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	border-radius: 8px;
	padding: 16px 20px;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.yes-sim-btn:hover {
	background: #eab308;
	transform: translateY(-1px);
}

.yes-sim-disclaimer {
	font-size: 11px;
	color: #94a3b8;
	margin: 10px 0 0;
	line-height: 1.4;
	text-align: center;
}

@media (max-width: 480px) {
	.yes-sim {
		padding: 16px 14px 14px;
	}

	.yes-sim-q {
		font-size: 16px;
	}

	.yes-sim-n {
		font-size: 17px;
		padding: 12px 0;
	}

	.yes-sim-result {
		font-size: 15px;
	}

	.yes-sim-value {
		font-size: 20px;
	}

	.yes-sim-btn {
		font-size: 14px;
		letter-spacing: 0.5px;
		padding: 15px 12px;
	}
}

/* Selo de Link Oficial Verificado */
.yes-official-badge {
	display: inline-block;
	background: #dcfce7;
	color: #15803d;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 16px;
	margin-bottom: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Texto de Compliance / Disclaimer Editorial */
.yes-compliance-disclaimer {
	font-size: 12px;
	color: #94a3b8;
	margin-top: 10px;
	text-align: center;
	line-height: 1.4;
}

/* Título com Barra Lateral de Destaque */
.yes-vertical-accent-title {
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	border-left: 4px solid #22c55e;
	padding-left: 12px;
	margin: 28px 0 14px 0;
	line-height: 1.35;
}

/* Botão Largo com Wrapper */
.yes-wide-cta-wrap {
	margin: 20px auto 28px auto;
	text-align: center;
}

.yes-wide-cta-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #22c55e;
	color: #ffffff !important;
	font-size: 17px;
	font-weight: 700;
	border-radius: 12px;
	padding: 16px 22px;
	text-decoration: none !important;
	width: 100%;
	box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}

.yes-wide-cta-btn:hover {
	background: #16a34a;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 18px rgba(22, 163, 74, 0.4);
}

/* FAQ / Perguntas Frequentes (Inventário Valioso AdSense) */
.yes-faq-section {
	margin-top: 32px;
}

.yes-faq-list {
	border-top: 1px solid #e2e8f0;
	margin-top: 12px;
}

.yes-faq-item {
	padding: 16px 0;
	border-bottom: 1px solid #e2e8f0;
}

.yes-faq-question {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.yes-faq-answer {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin: 0;
}

/* Mobile Sticky Footer Ad */
.yes-app-sticky-footer-wrap {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 99999;
	text-align: center;
	padding: 6px 0;
}

.yes-app-sticky-footer-inner {
	display: inline-block;
	position: relative;
	max-width: 100%;
}

.yes-app-sticky-close {
	position: absolute;
	top: -12px;
	right: -10px;
	width: 22px;
	height: 22px;
	background: #334155;
	color: #ffffff;
	border-radius: 50%;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
	.yes-app-sticky-footer-wrap {
		display: none !important;
	}
}


/* =====================================================================
   HUB DE APPS DE ALTO CTR + "VOCÊ TAMBÉM PODE GOSTAR"
   ===================================================================== */
.yes-hub { max-width: 720px; margin: 0 auto; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.yes-hub-header-main { text-align: center; margin: 8px 0 22px; }
.yes-hub-h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.15; font-weight: 800; color: #0f172a; margin: 0 0 8px; letter-spacing: -0.02em; }
.yes-hub-sub { color: #475569; font-size: 15px; margin: 0; }
.yes-hub-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .yes-hub-list { grid-template-columns: 1fr 1fr; } .yes-hub-list .yes-hub-ad { grid-column: 1 / -1; } }
.yes-hub-ad { margin: 4px 0; }

.yes-hub-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); text-decoration: none !important; color: inherit; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.yes-hub-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, .10); border-color: #fdba74; }
.yes-hub-card.is-featured { padding: 22px; margin-bottom: 18px; border: 2px solid #fed7aa; box-shadow: 0 8px 30px rgba(234, 88, 12, .12); }

.yes-hub-trending { align-self: flex-start; background: #dc2626; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; }
.yes-hub-pills { position: absolute; top: 14px; right: 14px; display: flex; gap: 6px; }
.yes-hub-pill { background: #f1f5f9; color: #334155; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }

.yes-hub-head { display: flex; gap: 14px; align-items: center; }
.yes-hub-icon { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.is-featured .yes-hub-icon { width: 84px; height: 84px; border-radius: 20px; }
.yes-hub-icon-fallback { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; font-size: 28px; font-weight: 800; }
.yes-hub-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.yes-hub-meta { align-self: flex-start; background: #f1f5f9; color: #334155; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.yes-hub-title { font-size: 18px; line-height: 1.3; font-weight: 800; color: #0f172a; padding-right: 0; }
.yes-hub-list .yes-hub-card .yes-hub-head { margin-top: 18px; }
.is-featured .yes-hub-title { font-size: clamp(21px, 5vw, 26px); line-height: 1.2; }
.yes-hub-teaser { color: #64748b; font-size: 15px; line-height: 1.5; }

.yes-hub-cta { display: block; margin-top: auto; text-align: center; padding: 14px 16px; border-radius: 12px; color: #fff !important; font-weight: 800; font-size: 16px; background: linear-gradient(90deg, #f97316 0%, #ef4444 100%); box-shadow: 0 6px 18px rgba(239, 68, 68, .30); transition: filter .15s ease, box-shadow .15s ease; }
.is-featured .yes-hub-cta { font-size: 17px; padding: 16px; animation: yesHubPulse 2.2s ease-in-out infinite; }
.yes-hub-card:hover .yes-hub-cta { filter: brightness(1.06); box-shadow: 0 8px 24px rgba(239, 68, 68, .40); }
@keyframes yesHubPulse { 0%, 100% { box-shadow: 0 6px 18px rgba(239, 68, 68, .30); } 50% { box-shadow: 0 6px 30px rgba(239, 68, 68, .55); } }

.yes-hub-empty { text-align: center; color: #64748b; padding: 40px 0; }
.yes-hub-related { max-width: none; margin: 28px 0; padding: 20px; background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%); border: 1px solid #fed7aa; border-radius: 18px; }
.yes-hub-related-title { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 14px; }
.yes-hub-related .yes-hub-list { grid-template-columns: 1fr; gap: 12px; }
.yes-hub-related .yes-hub-card { padding: 16px; }
@media (min-width: 700px) {
	.yes-hub-related .yes-hub-card { flex-direction: row; align-items: center; gap: 18px; padding: 16px 18px; }
	.yes-hub-related .yes-hub-card .yes-hub-head { margin-top: 0; flex: 1 1 auto; min-width: 0; }
	.yes-hub-related .yes-hub-pills { position: static; order: 2; flex: 0 0 auto; flex-direction: column; align-items: flex-end; }
	.yes-hub-related .yes-hub-teaser { display: none; }
	.yes-hub-related .yes-hub-cta { order: 3; flex: 0 0 auto; margin-top: 0; padding: 14px 26px; white-space: nowrap; }
	.yes-hub-related .yes-hub-title { font-size: 19px; }
}
