/*
Theme Name: Clint Blog
Theme URI: https://www.useclint.com/
Author: Clint
Description: Tema do blog da Clint, no mesmo visual do site useclint.com: fundo escuro, Poppins, roxo da marca e superfícies de vidro.
Version: 1.2.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: clint-blog
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--bg: #060309;
	--bg-raised: #0d0916;
	--surface: rgba(255, 255, 255, 0.04);
	--surface-hover: rgba(255, 255, 255, 0.07);
	--line: rgba(255, 255, 255, 0.1);
	--line-strong: rgba(255, 255, 255, 0.18);

	--text: #ffffff;
	--text-2: rgba(255, 255, 255, 0.84);
	--text-3: rgba(255, 255, 255, 0.58);

	--violet: #8b5cf6;
	--violet-deep: #6d28d9;
	--lilac: #c4b0ff;
	--lilac-soft: rgba(167, 139, 250, 0.12);

	--grad-text: linear-gradient(100deg, #ffffff 12%, #c4a4ff 58%, #8b5cf6 100%);
	--grad-violet: linear-gradient(#8b5cf6, #6d28d9);
	--grad-glass-edge: linear-gradient(140deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.05) 36%, rgba(255, 255, 255, 0.04) 68%, rgba(255, 255, 255, 0.2));

	--font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1200px;
	--narrow: 760px;
	--gutter: clamp(20px, 4vw, 40px);
	--header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text-2);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.menu-open {
	overflow: hidden;
}

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
	text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
	color: var(--text);
	font-weight: 500;
	line-height: 1.15;
	margin: 0;
}

p {
	margin: 0;
}

:focus-visible {
	outline: 2px solid var(--lilac);
	outline-offset: 3px;
	border-radius: 6px;
}

::selection {
	background: var(--violet);
	color: #fff;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -60px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--violet);
	color: #fff;
	font-weight: 500;
}

.skip-link:focus {
	top: 12px;
}

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: calc(var(--narrow) + var(--gutter) * 2);
}

/* ==========================================================================
   Botões
   ========================================================================== */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 18px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn-ghost {
	background: var(--surface);
	border: 1px solid var(--line-strong);
	color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
	background: var(--surface-hover);
	border-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.btn-primary {
	border: 0;
	border-radius: 999px;
	padding: 12px 22px;
	color: #fff;
	background: var(--grad-violet);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px rgba(109, 40, 217, 0.35);
}

.btn-primary:hover {
	background: linear-gradient(#9b72f8, #7a35e6);
}

/* Botão "Teste Grátis 7 dias", igual ao do site */
.btn-trial {
	display: inline-flex;
	padding: 6px 7px;
	border-radius: 999px;
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(38, 38, 42, 0.85), rgba(12, 12, 14, 0.9)) padding-box,
		linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.12)) border-box;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-trial__inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 8px 8px 18px;
	border-radius: 999px;
	background: var(--grad-violet);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
	transition: filter 0.2s;
}

.btn-trial:hover .btn-trial__inner {
	filter: brightness(1.12);
}

.btn-trial__badge {
	padding: 3px 9px;
	border-radius: 999px;
	background: #fff;
	color: var(--violet-deep);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	transition: background-color 0.25s, border-color 0.25s;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
body.menu-open .site-header {
	background: rgba(6, 3, 9, 0.78);
	-webkit-backdrop-filter: blur(18px) saturate(140%);
	backdrop-filter: blur(18px) saturate(140%);
	border-bottom-color: var(--line);
}

.admin-bar .site-header {
	top: 32px;
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header-h);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.brand__logo {
	display: block;
	height: 26px;
	width: auto;
}

.brand__label {
	padding-left: 12px;
	border-left: 1px solid var(--line-strong);
	color: var(--text-3);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
}

.primary-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.nav-list {
	display: flex;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-list a {
	display: block;
	padding: 8px 14px;
	border-radius: 999px;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s;
}

.nav-list a:hover,
.nav-list .current-menu-item > a,
.nav-list .current-menu-ancestor > a {
	background: var(--surface-hover);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.menu-toggle {
	display: none;
	position: relative;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	cursor: pointer;
}

.menu-toggle span {
	position: absolute;
	left: 13px;
	right: 13px;
	height: 1.5px;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.25s, top 0.25s;
}

.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }

.menu-toggle[aria-expanded="true"] span:first-child {
	top: 21px;
	transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
	top: 21px;
	transform: rotate(-45deg);
}

.mobile-panel {
	border-top: 1px solid var(--line);
	padding: 16px 0 28px;
	height: calc(100dvh - var(--header-h));
	overflow-y: auto;
}

.mobile-panel .nav-list {
	flex-direction: column;
	gap: 2px;
	margin-bottom: 20px;
}

.mobile-panel .nav-list a {
	padding: 14px 4px;
	border-radius: 0;
	border-bottom: 1px solid var(--line);
	font-size: 18px;
}

.mobile-panel .nav-list a:hover {
	background: none;
}

.mobile-panel__actions {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}

.mobile-panel__actions .btn {
	padding: 14px 20px;
}

/* ==========================================================================
   Brilho roxo (assinatura visual do site)
   ========================================================================== */
.hero__glow {
	position: absolute;
	inset: calc(var(--header-h) * -1) 0 0;
	pointer-events: none;
	z-index: -1;
	background:
		radial-gradient(90% 58% at 50% -6%, rgba(140, 70, 255, 0.42) 0%, rgba(88, 40, 190, 0.14) 46%, transparent 76%),
		radial-gradient(40% 40% at 85% 10%, rgba(55, 57, 173, 0.25) 0%, transparent 70%);
}

.hero__glow::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 64px 64px;
	-webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
	mask-image: radial-gradient(70% 60% at 50% 0%, #000 0%, transparent 75%);
}

.hero__glow--soft {
	background: radial-gradient(70% 70% at 50% -10%, rgba(140, 70, 255, 0.28) 0%, rgba(88, 40, 190, 0.08) 50%, transparent 78%);
}

.hero__glow--soft::after {
	display: none;
}

/* ==========================================================================
   Hero da home
   ========================================================================== */
.hero {
	position: relative;
	isolation: isolate;
	padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 80px);
	text-align: center;
}

.hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
}

.pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 8px;
	border-radius: 999px;
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(13, 9, 22, 0.62), rgba(9, 6, 16, 0.58)) padding-box,
		var(--grad-glass-edge) border-box;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 500;
}

.hero__title {
	max-width: 18ch;
	font-size: clamp(36px, 6vw, 64px);
	font-weight: 500;
	line-height: 1.06;
	letter-spacing: -0.035em;
	background: var(--grad-text);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	text-wrap: balance;
}

.hero__text {
	max-width: 46ch;
	color: var(--text-2);
	font-size: clamp(16px, 1.6vw, 19px);
	line-height: 1.55;
	text-wrap: pretty;
}

.hero .search-form {
	margin-top: 8px;
}

.hero--404 {
	padding-bottom: 120px;
}

/* ==========================================================================
   Busca
   ========================================================================== */
.search-form {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 560px;
	padding: 6px;
	border-radius: 999px;
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(13, 9, 22, 0.75), rgba(9, 6, 16, 0.7)) padding-box,
		var(--grad-glass-edge) border-box;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	text-align: left;
}

.search-form:focus-within {
	box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

.search-form__icon {
	position: absolute;
	left: 20px;
	color: var(--text-3);
}

.search-form__input {
	flex: 1;
	min-width: 0;
	padding: 10px 12px 10px 44px;
	border: 0;
	background: transparent;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	outline: none;
}

.search-form__input::placeholder {
	color: var(--text-3);
}

.search-form__input::-webkit-search-cancel-button {
	filter: invert(1);
}

.search-form__submit {
	padding: 10px 20px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s;
}

.search-form__submit:hover {
	background: var(--violet);
}

/* ==========================================================================
   Listagens
   ========================================================================== */
.listing {
	padding-bottom: 96px;
}

.listing__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin: 72px 0 28px;
}

.section-title {
	font-size: clamp(24px, 2.6vw, 32px);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chip {
	display: inline-flex;
	padding: 8px 16px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	color: var(--text-2);
	font-size: 13px;
	font-weight: 500;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.chip:hover {
	border-color: var(--line-strong);
	color: #fff;
}

.chip.is-active {
	border-color: rgba(167, 139, 250, 0.5);
	background: var(--lilac-soft);
	color: var(--lilac);
}

.grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 28px;
}

/* Card */
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	background: var(--bg-raised);
	box-shadow: 0 0 0 1px var(--line);
}

.card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card:hover .card__media img {
	transform: scale(1.035);
}

.card__placeholder {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(80% 90% at 20% 0%, rgba(139, 92, 246, 0.55), transparent 65%),
		radial-gradient(70% 80% at 100% 100%, rgba(55, 57, 173, 0.5), transparent 60%),
		var(--bg-raised);
}

.card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}

.cat-tag {
	color: var(--lilac);
	font-size: 13px;
	font-weight: 500;
}

.cat-tag:hover {
	color: #fff;
}

.card__title {
	font-size: 19px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.01em;
	text-wrap: pretty;
}

.card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
}

.card .cat-tag {
	position: relative;
	z-index: 1;
}

.card__title a:hover {
	color: var(--lilac);
}

.card__excerpt {
	color: var(--text-2);
	font-size: 16px;
	line-height: 1.6;
}

/* Destaque */
.card--featured {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	padding: 14px;
	border-radius: 28px;
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(13, 9, 22, 0.8), rgba(9, 6, 16, 0.75)) padding-box,
		var(--grad-glass-edge) border-box;
}

.card--featured .card__media {
	border-radius: 18px;
}

.card--featured .card__body {
	gap: 14px;
	padding: 12px 24px 12px 0;
}

.card__title--lg {
	font-size: clamp(24px, 2.8vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

/* Meta */
.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	color: var(--text-3);
	font-size: 13px;
}

.post-meta__author {
	color: rgba(255, 255, 255, 0.75);
}

.post-meta__sep {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
}

.post-meta__avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	box-shadow: 0 0 0 1px var(--line-strong);
}

/* Paginação */
.pagination {
	margin-top: 64px;
	display: flex;
	justify-content: center;
}

.pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--surface);
	font-size: 14px;
	font-weight: 500;
}

.pagination a.page-numbers:hover {
	border-color: var(--line-strong);
	color: #fff;
}

.pagination .current {
	background: var(--grad-violet);
	border-color: transparent;
	color: #fff;
}

.pagination .dots {
	border: 0;
	background: none;
}

/* Vazio */
.empty {
	padding: 72px 24px;
	text-align: center;
	border-radius: 24px;
	border: 1px dashed var(--line-strong);
}

.empty h2 {
	font-size: 24px;
	margin-bottom: 10px;
}

.empty a {
	color: var(--lilac);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Cabeçalho de arquivo/busca */
.archive-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(48px, 7vw, 88px) 0 48px;
}

.archive-hero .container {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
}

.archive-hero__title {
	font-size: clamp(34px, 5vw, 54px);
	letter-spacing: -0.03em;
	line-height: 1.08;
}

.archive-hero__text {
	max-width: 60ch;
	font-size: 17px;
}

.archive-hero .chips {
	margin-top: 8px;
}

/* ==========================================================================
   Post
   ========================================================================== */
.post-header {
	position: relative;
	isolation: isolate;
	padding: clamp(40px, 6vw, 72px) 0 40px;
}

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
	color: var(--text-3);
	font-size: 14px;
}

.breadcrumb a:hover {
	color: #fff;
}

.breadcrumb a:last-child {
	color: var(--lilac);
}

.post-title {
	font-size: clamp(32px, 4.6vw, 50px);
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.035em;
	text-wrap: balance;
}

.post-lede {
	margin-top: 20px;
	font-size: clamp(17px, 1.7vw, 20px);
	line-height: 1.55;
	color: var(--text-2);
}

.post-header .post-meta {
	margin-top: 28px;
	font-size: 14px;
}

.post-cover {
	margin: 0 auto 56px;
	max-width: calc(1040px + var(--gutter) * 2);
}

.post-cover img {
	display: block;
	width: 100%;
	border-radius: 24px;
	box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(109, 40, 217, 0.45);
}

/* Barra de leitura */
.read-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 60;
	pointer-events: none;
}

.admin-bar .read-progress {
	top: 32px;
}

.read-progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #9747ff, #d1a6ff);
	transform: scaleX(0);
	transform-origin: left;
}

/* ==========================================================================
   Conteúdo do post (prose)
   ========================================================================== */
.prose {
	font-size: 18px;
	line-height: 1.78;
	color: var(--text-2);
}

.prose > * + * {
	margin-top: 1.25em;
}

.prose h2 {
	margin-top: 2.2em;
	font-size: clamp(24px, 2.6vw, 30px);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.prose h3 {
	margin-top: 1.9em;
	font-size: 22px;
	line-height: 1.3;
}

.prose h4 {
	margin-top: 1.6em;
	font-size: 18px;
	font-weight: 600;
}

.prose h2 + *,
.prose h3 + *,
.prose h4 + * {
	margin-top: 0.7em;
}

.prose strong {
	color: #fff;
	font-weight: 600;
}

.prose a {
	color: var(--lilac);
	text-decoration: underline;
	text-decoration-color: rgba(196, 176, 255, 0.4);
	text-underline-offset: 3px;
	transition: text-decoration-color 0.2s;
}

.prose a:hover {
	text-decoration-color: var(--lilac);
}

.prose ul,
.prose ol {
	padding-left: 1.3em;
}

.prose li + li {
	margin-top: 0.5em;
}

.prose li::marker {
	color: var(--violet);
}

.prose ol li::marker {
	font-weight: 600;
}

.prose blockquote,
.prose .wp-block-quote {
	margin-inline: 0;
	padding: 4px 0 4px 24px;
	border-left: 2px solid var(--violet);
	color: #fff;
	font-size: 20px;
	line-height: 1.6;
}

.prose blockquote cite {
	display: block;
	margin-top: 10px;
	color: var(--text-3);
	font-size: 14px;
	font-style: normal;
}

.prose .wp-block-pullquote {
	padding: 32px;
	border: 0;
	border-radius: 20px;
	background: var(--surface);
	text-align: left;
}

.prose hr,
.prose .wp-block-separator {
	border: 0;
	height: 1px;
	background: var(--line-strong);
	margin: 3em 0;
}

.prose img {
	border-radius: 16px;
}

.prose figure {
	margin-inline: 0;
}

.prose figcaption,
.prose .wp-element-caption {
	margin-top: 10px;
	color: var(--text-3);
	font-size: 14px;
	text-align: center;
}

.prose code {
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.88em;
}

.prose pre {
	padding: 20px 24px;
	border-radius: 16px;
	border: 1px solid var(--line);
	background: var(--bg-raised);
	overflow-x: auto;
	font-size: 15px;
	line-height: 1.6;
}

.prose pre code {
	padding: 0;
	background: none;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.prose .wp-block-table {
	overflow-x: auto;
	border-radius: 16px;
	border: 1px solid var(--line);
}

.prose th,
.prose td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--line);
	text-align: left;
}

.prose th {
	background: var(--surface);
	color: #fff;
	font-weight: 500;
}

.prose tr:last-child td {
	border-bottom: 0;
}

.prose .wp-block-button__link {
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--grad-violet);
	color: #fff;
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
}

.prose .is-style-outline .wp-block-button__link {
	background: var(--surface);
	border: 1px solid var(--line-strong);
}

.prose .wp-block-embed iframe {
	border-radius: 16px;
}

.prose .alignwide {
	margin-inline: min(-120px, calc((var(--narrow) - 100vw) / 2 + var(--gutter)));
}

.prose .alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
}

.prose .alignfull img {
	border-radius: 0;
}

.prose .alignleft {
	float: left;
	margin: 0.4em 1.5em 1em 0;
}

.prose .alignright {
	float: right;
	margin: 0.4em 0 1em 1.5em;
}

.post-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 48px;
}

/* ==========================================================================
   Quadro de chamada
   ========================================================================== */
.cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-top: 80px;
	padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
	border-radius: 28px;
	border: 1px solid transparent;
	background:
		linear-gradient(rgba(13, 9, 22, 0.88), rgba(9, 6, 16, 0.85)) padding-box,
		var(--grad-glass-edge) border-box;
	text-align: center;
}

.cta__glow {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(70% 90% at 50% 120%, rgba(140, 70, 255, 0.45) 0%, rgba(88, 40, 190, 0.12) 50%, transparent 75%);
}

.cta__mark {
	display: block;
	margin: 0 auto 20px;
}

.cta__title {
	max-width: 22ch;
	margin-inline: auto;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.2;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.cta__text {
	max-width: 52ch;
	margin: 16px auto 0;
	font-size: 16px;
}

.cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 28px;
}

.listing .cta {
	margin-top: 112px;
}

/* ==========================================================================
   Relacionados e comentários
   ========================================================================== */
.related {
	padding: 104px var(--gutter) 112px;
}

.related .section-title {
	margin-bottom: 28px;
}

.comments {
	margin-top: 72px;
}

.comment-list {
	list-style: none;
	margin: 24px 0 0;
	padding: 0;
}

.comment-list .comment {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.comment-list .children {
	list-style: none;
	padding-left: 32px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	font-weight: 500;
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	color: var(--text-3);
	font-size: 13px;
}

.comment-respond {
	margin-top: 40px;
}

.comment-reply-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid var(--line-strong);
	background: var(--surface);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
}

.comment-form p {
	margin-bottom: 16px;
}

/* ==========================================================================
   Rodapé (igual ao do useclint.com)
   ========================================================================== */
.site-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	background: linear-gradient(#0a0710 0%, #060309 100%);
	padding: 80px 48px 104px; /* espaço para a pílula flutuante não cobrir os links legais */
	color: #fff;
}

.footer-inner {
	max-width: 1180px;
	margin: 0 auto;
}

.footer-top {
	display: flex;
	gap: 56px;
}

.footer-brand {
	flex: 0 0 255px;
}

.footer-logo img {
	display: block;
	height: 26px;
	width: auto;
}

.footer-tagline {
	margin-top: 16px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 11px;
	line-height: 1.6;
}

.footer-meta {
	display: block;
	box-sizing: content-box;
	margin-top: 18px;
	width: 72px;
	height: auto;
	padding: 6px 10px;
	border-radius: 4px;
	background: #ffffff;
}

.footer-col {
	flex: 1 1 0;
	max-width: 200px;
}

.footer-label {
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.55);
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 1.6;
}

.footer-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	display: block;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11.5px;
	line-height: 1.5;
	transition: color 0.2s;
}

.footer-links a:hover {
	color: #fff;
}

.footer-app {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 56px;
}

.footer-app .footer-label {
	margin-bottom: 4px;
}

.app-btn {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 240px;
	padding: 11px 18px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	color: #fff;
	transition: background-color 0.2s, border-color 0.2s;
}

.app-btn:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: rgba(255, 255, 255, 0.4);
}

.app-btn span {
	display: flex;
	flex-direction: column;
}

.app-btn small {
	color: rgba(255, 255, 255, 0.6);
	font-size: 9.5px;
	line-height: 1.15;
}

.app-btn strong {
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.15;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	margin-top: 64px;
	padding-top: 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-follow {
	display: flex;
	align-items: center;
	gap: 18px;
}

.footer-follow span {
	color: rgba(255, 255, 255, 0.55);
	font-size: 11px;
}

.footer-follow a {
	display: inline-flex;
	opacity: 0.9;
	transition: opacity 0.2s;
}

.footer-follow a:hover {
	opacity: 1;
}

.footer-meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
}

.footer-legal {
	display: flex;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-legal a,
.footer-copy {
	color: rgba(255, 255, 255, 0.55);
	font-size: 10.5px;
}

.footer-legal a:hover {
	color: #fff;
}

.footer-langs {
	display: flex;
	gap: 6px;
	padding: 4px 6px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
}

.footer-langs a {
	display: inline-flex;
	padding: 4px 6px;
	border-radius: 999px;
	opacity: 0.45;
	transition: opacity 0.2s;
}

.footer-langs a:hover,
.footer-langs a.is-active {
	opacity: 1;
}

.footer-langs a.is-active {
	background: rgba(167, 139, 250, 0.16);
}

.footer-langs img {
	display: block;
	width: 15px;
	height: 15px;
	border-radius: 50%;
}

/* ==========================================================================
   Pílula flutuante "Comece seu teste grátis 7 dias" (igual à do site)
   ========================================================================== */
.trial-pill {
	position: fixed;
	left: 50%;
	bottom: calc(28px + env(safe-area-inset-bottom, 0px));
	z-index: 60;
	display: flex;
	align-items: center;
	height: 46px;
	padding: 0 16px 0 10px;
	border-radius: 999px;
	overflow: hidden;
	isolation: isolate;
	background: rgba(10, 8, 20, 0.82);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 0 30px rgba(123, 120, 255, 0.4);
	color: #fff;
	transform: translate(-50%, 140%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s, box-shadow 0.3s;
}

.trial-pill.is-visible {
	transform: translate(-50%, 0);
	opacity: 1;
	pointer-events: auto;
}

.trial-pill:hover {
	box-shadow: 0 0 40px rgba(123, 120, 255, 0.6);
}

.trial-pill__ring {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -2;
	width: 400px;
	height: 400px;
	background: conic-gradient(#ff9d5c, #b44df7, #4f8df9, #cf75ff, #ff9d5c);
	transform: translate(-50%, -50%);
	animation: clintPillRing 6s linear infinite;
}

.trial-pill__bg {
	position: absolute;
	inset: 1.5px;
	z-index: -1;
	border-radius: 999px;
	background: rgba(12, 10, 25, 0.94);
}

.trial-pill__icon {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}

.trial-pill__glow {
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	background: conic-gradient(rgba(255, 157, 92, 0) 0deg, rgba(180, 77, 247, 0.75) 120deg, rgba(79, 141, 249, 0.75) 240deg, rgba(255, 157, 92, 0) 360deg);
	filter: blur(4px);
	animation: clintPillSpin 4.5s linear infinite;
}

.trial-pill__pulse {
	position: absolute;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 1px solid rgba(196, 164, 255, 0.6);
	opacity: 0;
	animation: clintPillPulse 2.8s ease-out infinite;
}

.trial-pill__pulse--late {
	border-color: rgba(196, 164, 255, 0.45);
	animation-delay: 1.4s;
}

.trial-pill__icon img {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	animation: clintPillShine 3.2s ease-in-out infinite;
}

.trial-pill__text {
	margin-left: 8px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1px;
	white-space: nowrap;
	background: linear-gradient(90deg, #ffffff 0%, #c4a4ff 22%, #7fd3ff 42%, #ffffff 62%, #c4a4ff 82%, #ffffff 100%);
	background-size: 200% 100%;
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	animation: clintPillText 6s linear infinite;
}

.trial-pill__badge {
	margin-left: 8px;
	padding: 4px 9px;
	border-radius: 999px;
	background: #fff;
	color: var(--violet-deep);
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space: nowrap;
}

@keyframes clintPillRing {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes clintPillSpin {
	to { transform: rotate(360deg); }
}

@keyframes clintPillPulse {
	0% { transform: scale(1); opacity: 0.8; }
	100% { transform: scale(1.9); opacity: 0; }
}

@keyframes clintPillShine {
	0%, 100% { filter: brightness(1); }
	50% { filter: brightness(1.25); }
}

@keyframes clintPillText {
	to { background-position: -200% 0; }
}

/* ==========================================================================
   Páginas com o modelo "Página com o visual do blog"
   ========================================================================== */
.page-body {
	padding-bottom: 96px;
}

/* ==========================================================================
   Elementor: páginas montadas no Elementor ganham as cores e a fonte do tema
   (pode ser desligado em Personalizar → Tema Clint)
   ========================================================================== */
.is-elementor-page .site-main {
	padding: 0;
}

body.clint-elementor-style {
	background-color: var(--bg);
	--e-global-color-primary: #ffffff;
	--e-global-color-secondary: rgba(255, 255, 255, 0.84);
	--e-global-color-text: rgba(255, 255, 255, 0.84);
	--e-global-color-accent: #8b5cf6;
	--e-global-typography-primary-font-family: "Poppins";
	--e-global-typography-secondary-font-family: "Poppins";
	--e-global-typography-text-font-family: "Poppins";
	--e-global-typography-accent-font-family: "Poppins";
}

body.clint-elementor-style .clint-elementor {
	color: var(--text-2);
	font-family: var(--font);
}

body.clint-elementor-style .clint-elementor h1,
body.clint-elementor-style .clint-elementor h2,
body.clint-elementor-style .clint-elementor h3,
body.clint-elementor-style .clint-elementor h4,
body.clint-elementor-style .clint-elementor h5,
body.clint-elementor-style .clint-elementor h6 {
	color: var(--text);
	font-family: var(--font);
}

body.clint-elementor-style .clint-elementor a:not(.elementor-button) {
	color: var(--lilac);
}

body.clint-elementor-style .clint-elementor .elementor-button {
	border-radius: 999px;
	background: var(--grad-violet);
	color: #fff;
	font-family: var(--font);
	font-weight: 500;
}

body.clint-elementor-style .clint-elementor .elementor-widget-container img {
	border-radius: 16px;
}

/* Cards do Loop Grid do Elementor Pro, caso alguma página ainda use */
body.clint-elementor-style .clint-elementor .e-loop-item {
	border-radius: 18px;
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1080px) {
	.primary-nav,
	.header-actions .btn-ghost {
		display: none;
	}

	.menu-toggle {
		display: inline-block;
	}

	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.footer-top {
		flex-wrap: wrap;
		gap: 40px 32px;
	}

	.footer-brand {
		flex: 1 0 100%;
	}

	.footer-col {
		flex: 1 1 calc(50% - 16px);
		max-width: none;
	}
}

@media (min-width: 1081px) {
	.mobile-panel {
		display: none !important;
	}
}

@media (max-width: 782px) {
	.admin-bar .site-header,
	.admin-bar .read-progress {
		top: 46px;
	}
}

@media (max-width: 760px) {
	:root {
		--header-h: 64px;
	}

	.card--featured {
		grid-template-columns: 1fr;
		padding: 10px;
		border-radius: 22px;
	}

	.card--featured .card__body {
		padding: 4px 12px 16px;
	}

	.grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.listing__head {
		margin-top: 56px;
	}

	.chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		width: calc(100% + var(--gutter));
		margin-right: calc(var(--gutter) * -1);
		padding-right: var(--gutter);
		scrollbar-width: none;
	}

	.chips::-webkit-scrollbar {
		display: none;
	}

	.chip {
		flex-shrink: 0;
	}

	.prose {
		font-size: 17px;
	}

	.prose .alignwide {
		margin-inline: 0;
	}

	.post-cover img {
		border-radius: 18px;
	}

	.search-form__submit {
		display: none;
	}

	.site-footer {
		padding: 64px var(--gutter) 112px;
	}

	.footer-bottom,
	.footer-meta-row {
		flex-direction: column;
		align-items: flex-start;
	}

	.trial-pill {
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	}
}

@media (max-width: 420px) {
	.brand__label {
		display: none;
	}

	.btn-trial__inner {
		padding-left: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trial-pill *,
	.trial-pill__ring {
		animation: none !important;
	}

	*,
	*::before,
	*::after {
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
	}
}
