/* =========================================================
   Link Bio Profissional Max — Public Styles
   Layout full-width, isolado do tema/Elementor via reset
   escopado em .lbpm-root, estilo SaaS moderno e responsivo.
   ========================================================= */

/* Força a página a ignorar containers/margens do tema quando o shortcode está presente. */
body.lbpm-fullwidth-page .lbpm-root {
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	width: 100vw;
	max-width: 100vw;
}

body.lbpm-fullwidth-page .elementor,
body.lbpm-fullwidth-page .elementor-section-wrap,
body.lbpm-fullwidth-page .site-content,
body.lbpm-fullwidth-page .entry-content {
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

.lbpm-root,
.lbpm-root * {
	box-sizing: border-box;
}

.lbpm-root {
	--lbpm-primary: #7C3AED;
	--lbpm-secondary: #06B6D4;
	--lbpm-font: system-ui, -apple-system, sans-serif;
	--lbpm-radius: 16px;
	--lbpm-bg: #0b0f19;
	--lbpm-surface: rgba(255,255,255,0.06);
	--lbpm-border: rgba(255,255,255,0.12);
	--lbpm-text: #f3f4f6;
	--lbpm-text-muted: #9ca3af;

	font-family: var(--lbpm-font);
	background: var(--lbpm-bg) !important;
	color: var(--lbpm-text);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
	line-height: 1.5;
	padding: 0 0 60px;
}

.lbpm-root h1, .lbpm-root h2, .lbpm-root h3, .lbpm-root p, .lbpm-root ul {
	margin: 0;
	padding: 0;
}

/* Fundo animado com blobs em gradiente */
.lbpm-bg-fx {
	position: absolute;
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	z-index: 0;
}

.lbpm-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.35;
	animation: lbpm-float 14s ease-in-out infinite;
}

.lbpm-blob-1 {
	width: 480px;
	height: 480px;
	background: var(--lbpm-primary);
	top: -180px;
	left: -120px;
}

.lbpm-blob-2 {
	width: 420px;
	height: 420px;
	background: var(--lbpm-secondary);
	bottom: -160px;
	right: -100px;
	animation-delay: -7s;
}

@keyframes lbpm-float {
	0%, 100% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(40px, 30px) scale(1.08); }
}

.lbpm-container {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
	padding: 56px 20px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
}

/* Logo */
.lbpm-logo-wrap {
	animation: lbpm-fade-in-down 0.6s ease both;
}

.lbpm-root .lbpm-logo-wrap {
	display: flex;
	justify-content: center;
}

/*
 * Estrutura de recorte circular: um contêiner (.lbpm-logo-clip) com
 * overflow:hidden garante o recorte independentemente do que aconteça
 * com a <img> interna — mesmo que o tema force border-radius:0 ou
 * max-width:100% na imagem, o container já cortou o excesso.
 * Todas as regras têm !important e réplica em estilo inline no HTML
 * (ver shortcode-wrapper.php) como segunda camada de proteção.
 */
.lbpm-root .lbpm-logo-clip {
	display: block !important;
	width: 108px !important;
	height: 108px !important;
	min-width: 108px !important;
	min-height: 108px !important;
	max-width: 108px !important;
	max-height: 108px !important;
	border-radius: 50% !important;
	-webkit-border-radius: 50% !important;
	-moz-border-radius: 50% !important;
	overflow: hidden !important;
	background-color: rgba(255,255,255,0.05);
	border: 3px solid var(--lbpm-border);
	box-shadow: 0 0 0 6px rgba(124,58,237,0.15), 0 10px 30px rgba(0,0,0,0.4);
	flex-shrink: 0;
	aspect-ratio: 1 / 1;
}

.lbpm-root .lbpm-logo-clip img.lbpm-logo {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center !important;
	border-radius: 50% !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
}

@media (min-width: 782px) {
	.lbpm-root .lbpm-logo-clip {
		width: 128px !important;
		height: 128px !important;
		min-width: 128px !important;
		min-height: 128px !important;
		max-width: 128px !important;
		max-height: 128px !important;
	}
}

@media (max-width: 480px) {
	.lbpm-root .lbpm-logo-clip {
		width: 88px !important;
		height: 88px !important;
		min-width: 88px !important;
		min-height: 88px !important;
		max-width: 88px !important;
		max-height: 88px !important;
	}
}

.lbpm-site-title {
	font-size: 24px;
	font-weight: 800;
	text-align: center;
	background: linear-gradient(135deg, var(--lbpm-primary), var(--lbpm-secondary));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: lbpm-fade-in-up 0.6s ease both 0.1s;
}

@keyframes lbpm-fade-in-down {
	from { opacity: 0; transform: translateY(-16px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes lbpm-fade-in-up {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.lbpm-section {
	width: 100%;
	animation: lbpm-fade-in-up 0.6s ease both;
}

/* Vídeo */
.lbpm-video-wrap {
	width: 100%;
}

.lbpm-video-frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	border-radius: var(--lbpm-radius);
	overflow: hidden;
	border: 1px solid var(--lbpm-border);
	box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.lbpm-video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Chat */
.lbpm-chat-box {
	width: 100%;
	background: var(--lbpm-surface);
	border: 1px solid var(--lbpm-border);
	border-radius: var(--lbpm-radius);
	backdrop-filter: blur(12px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.lbpm-chat-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 18px;
	border-bottom: 1px solid var(--lbpm-border);
	background: rgba(255,255,255,0.03);
}

.lbpm-chat-status-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #22c55e;
	box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
	animation: lbpm-pulse 2s ease-in-out infinite;
}

@keyframes lbpm-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.lbpm-chat-title {
	font-weight: 700;
	font-size: 14.5px;
}

.lbpm-chat-messages {
	max-height: 340px;
	min-height: 160px;
	overflow-y: auto;
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lbpm-chat-messages::-webkit-scrollbar {
	width: 6px;
}

.lbpm-chat-messages::-webkit-scrollbar-thumb {
	background: var(--lbpm-border);
	border-radius: 10px;
}

.lbpm-chat-msg {
	max-width: 82%;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14.5px;
	animation: lbpm-fade-in-up 0.3s ease both;
}

.lbpm-chat-msg p {
	margin: 0;
}

.lbpm-chat-msg-assistant {
	align-self: flex-start;
	background: rgba(255,255,255,0.08);
	border-bottom-left-radius: 4px;
}

.lbpm-chat-msg-user {
	align-self: flex-end;
	background: linear-gradient(135deg, var(--lbpm-primary), var(--lbpm-secondary));
	color: #fff;
	border-bottom-right-radius: 4px;
}

.lbpm-chat-msg-typing {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 12px 16px;
}

.lbpm-chat-msg-typing span {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--lbpm-text-muted);
	animation: lbpm-typing 1.2s infinite;
}

.lbpm-chat-msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.lbpm-chat-msg-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes lbpm-typing {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
	30% { transform: translateY(-4px); opacity: 1; }
}

.lbpm-chat-input-row {
	display: flex;
	gap: 8px;
	padding: 14px;
	border-top: 1px solid var(--lbpm-border);
	background: rgba(255,255,255,0.03);
}

.lbpm-chat-input {
	flex: 1;
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--lbpm-border);
	border-radius: 30px;
	padding: 11px 18px;
	color: var(--lbpm-text);
	font-size: 14.5px;
	outline: none;
	transition: border-color 0.2s;
}

.lbpm-chat-input:focus {
	border-color: var(--lbpm-primary);
}

.lbpm-chat-input::placeholder {
	color: var(--lbpm-text-muted);
}

.lbpm-chat-send-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	background: linear-gradient(135deg, var(--lbpm-primary), var(--lbpm-secondary));
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: transform 0.15s;
}

.lbpm-chat-send-btn:hover {
	transform: scale(1.08);
}

.lbpm-chat-send-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

/* Carrossel */
.lbpm-carousel-section {
	overflow: hidden;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.lbpm-carousel-track {
	display: flex;
	gap: 16px;
	width: max-content;
	animation: lbpm-scroll-x 30s linear infinite;
	padding: 0 20px;
}

.lbpm-carousel-section:hover .lbpm-carousel-track {
	animation-play-state: paused;
}

@keyframes lbpm-scroll-x {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.lbpm-carousel-item {
	flex-shrink: 0;
	width: 220px;
	height: 150px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--lbpm-border);
	display: block;
	box-shadow: 0 10px 24px rgba(0,0,0,0.3);
	transition: transform 0.25s;
}

.lbpm-carousel-item:hover {
	transform: translateY(-4px) scale(1.02);
}

.lbpm-carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Destaques */
.lbpm-featured-section {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lbpm-featured-item {
	display: block;
	width: 100%;
	border-radius: var(--lbpm-radius);
	overflow: hidden;
	border: 1px solid var(--lbpm-border);
	box-shadow: 0 14px 30px rgba(0,0,0,0.3);
	transition: transform 0.25s, box-shadow 0.25s;
}

.lbpm-featured-item:hover,
.lbpm-featured-item:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(0,0,0,0.3), 0 0 0 4px rgba(var(--lbpm-featured-shadow-rgb, 124, 58, 237), var(--lbpm-featured-shadow-intensity, 0.4)), 0 18px 40px rgba(var(--lbpm-featured-shadow-rgb, 124, 58, 237), calc(var(--lbpm-featured-shadow-intensity, 0.4) * 0.6));
}

.lbpm-featured-item:active {
	transform: translateY(-1px) scale(0.99);
	box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 0 6px rgba(var(--lbpm-featured-shadow-rgb, 124, 58, 237), calc(var(--lbpm-featured-shadow-intensity, 0.4) * 1.2));
}

.lbpm-featured-item img {
	width: 100%;
	height: auto;
	display: block;
}

/* Formulário */
.lbpm-form-card {
	width: 100%;
	background: var(--lbpm-surface);
	border: 1px solid var(--lbpm-border);
	border-radius: var(--lbpm-radius);
	padding: 26px;
	backdrop-filter: blur(12px);
	box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.lbpm-form-title {
	font-size: 19px;
	font-weight: 700;
	margin-bottom: 18px;
	text-align: center;
}

.lbpm-lead-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lbpm-form-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--lbpm-text-muted);
}

.lbpm-form-group input[type="text"],
.lbpm-form-group input[type="email"],
.lbpm-form-group input[type="tel"],
.lbpm-form-group textarea {
	width: 100%;
	background: rgba(255,255,255,0.06);
	border: 1px solid var(--lbpm-border);
	border-radius: 10px;
	padding: 11px 14px;
	color: var(--lbpm-text);
	font-size: 14.5px;
	outline: none;
	transition: border-color 0.2s;
	font-family: inherit;
}

.lbpm-form-group input:focus,
.lbpm-form-group textarea:focus {
	border-color: var(--lbpm-primary);
}

.lbpm-form-group-checkbox {
	background: rgba(255,255,255,0.04);
	border-radius: 10px;
	padding: 10px 12px;
}

.lbpm-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	color: var(--lbpm-text-muted);
	cursor: pointer;
}

.lbpm-checkbox-label input {
	margin-top: 3px;
	accent-color: var(--lbpm-primary);
}

.lbpm-checkbox-label a {
	color: var(--lbpm-secondary);
	text-decoration: underline;
}

.lbpm-field-error {
	display: block;
	color: #f87171;
	font-size: 12px;
	margin-top: 4px;
	min-height: 14px;
}

/*
 * Especificidade elevada (.lbpm-root .lbpm-btn) + !important nas
 * propriedades visuais: o Elementor e temas costumam aplicar regras
 * globais em `button`/`.elementor-button`/`input[type=submit]` que,
 * de outra forma, sobrescreveriam o estilo do plugin.
 */
.lbpm-root .lbpm-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	border: none !important;
	cursor: pointer;
	font-weight: 700 !important;
	font-size: 15px !important;
	font-family: inherit !important;
	line-height: normal !important;
	padding: 13px 24px !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	box-shadow: none;
	transition: transform 0.15s, opacity 0.2s;
}

.lbpm-root .lbpm-btn-primary {
	background: linear-gradient(135deg, var(--lbpm-primary), var(--lbpm-secondary)) !important;
	color: #fff !important;
}

.lbpm-root .lbpm-btn:hover,
.lbpm-root .lbpm-btn:focus {
	transform: translateY(-2px);
	color: #fff !important;
}

.lbpm-root .lbpm-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.lbpm-root[data-button-style="rounded"] .lbpm-btn { border-radius: 10px !important; }
.lbpm-root[data-button-style="pill"] .lbpm-btn { border-radius: 999px !important; }
.lbpm-root[data-button-style="square"] .lbpm-btn { border-radius: 2px !important; }

/* Botão de envio do chat também deve respeitar as cores configuradas, sobre o tema. */
.lbpm-root .lbpm-chat-send-btn {
	background: linear-gradient(135deg, var(--lbpm-primary), var(--lbpm-secondary)) !important;
	color: #fff !important;
	border: none !important;
	box-shadow: none;
}

.lbpm-form-feedback {
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	min-height: 20px;
}

.lbpm-form-feedback.success { color: #34d399; }
.lbpm-form-feedback.error { color: #f87171; }

/* Rodapé customizável (texto + link, estilo definido por item no admin). */
.lbpm-root .lbpm-custom-footer {
	width: 100%;
	margin-top: 8px;
	padding-top: 18px;
	border-top: 1px solid var(--lbpm-border);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px 18px;
	text-align: center;
}

.lbpm-root .lbpm-custom-footer-item {
	text-decoration: none !important;
	line-height: 1.5;
	opacity: 0.9;
	transition: opacity 0.2s;
}

.lbpm-root a.lbpm-custom-footer-item:hover {
	opacity: 1;
	text-decoration: underline !important;
}

/* ===== Responsividade ===== */

@media (min-width: 782px) {
	.lbpm-container {
		max-width: 720px;
		padding-top: 72px;
	}

	.lbpm-site-title {
		font-size: 30px;
	}
}

@media (max-width: 480px) {
	.lbpm-container {
		padding: 36px 14px 0;
		gap: 22px;
	}

	.lbpm-site-title {
		font-size: 20px;
	}

	.lbpm-form-card {
		padding: 18px;
	}

	.lbpm-chat-messages {
		max-height: 280px;
	}

	.lbpm-carousel-item {
		width: 160px;
		height: 110px;
	}
}
