@charset "utf-8";
/*
 * CSS Document
 */

@import url('https://fonts.googleapis.com/css?family=Bangers&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Satisfy&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital@1&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&display=swap');

/* icons.css: carregado pelo Layout.php (app/hooks), com versão na URL. */

:root {
	--color-h: #808696;
	--color-font: #6d7587;
	--color-white: #FFFFFF;
	--font-title: 'Bricolage Grotesque', 'Montserrat', Arial;
	--font-title-weight: 700;
	--color-title: #5B6376;
	--color-text: #4E5566;
	--color-outline: #4A5468;
}

* {
	outline: none;
	text-decoration: none;
	margin: 0;
	padding: 0;
	z-index: 1;
}

img,
table {
	border: 0;
}

body {
	background-color: #E6E7EE;
	background-image: url("../image/background.png");
	background-repeat: repeat;
}

.header {
	min-height: 150px;
	margin: 0 auto;
	z-index: 1;
}

.header-article {
	margin: 0 auto;
	min-height: 150px;
	width: 980px;
	display: grid;
	grid-template-columns: 290px 1fr;
	grid-column-gap: 4px;
	align-items: center;
	padding: 8px 0 14px 0;
	box-sizing: border-box;
}

.article-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 30px;
	padding: 20px 0;
	box-sizing: border-box;
}

/* Menu de tecnologias: etiquetas-adesivo no estilo quadrinho */
.div-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px 12px;
	margin-top: 24px;
}

.div-menu .menu {
	--tech-color: #12A8C3;
	--tilt: -2deg;
	white-space: nowrap;
}

.div-menu .menu:nth-child(even) {
	--tilt: 1.5deg;
}

.div-menu .menu[data-technology="html"],
.empty-tech[data-technology="html"] { --tech-color: #D13076; }
.div-menu .menu[data-technology="css"],
.empty-tech[data-technology="css"] { --tech-color: #0AC5D4; }
.div-menu .menu[data-technology="js"],
.empty-tech[data-technology="js"] { --tech-color: #EF562D; }
.div-menu .menu[data-technology="node"],
.empty-tech[data-technology="node"] { --tech-color: #5FA04E; }
.div-menu .menu[data-technology="php"],
.empty-tech[data-technology="php"] { --tech-color: #5587A2; }
.div-menu .menu[data-technology="mysql"],
.empty-tech[data-technology="mysql"] { --tech-color: #5C7148; }
.div-menu .menu[data-technology="python"],
.empty-tech[data-technology="python"] { --tech-color: #D1AF94; }
.div-menu .menu[data-technology="react"],
.empty-tech[data-technology="react"] { --tech-color: #88B14B; }
.div-menu .menu[data-technology="flutter"],
.empty-tech[data-technology="flutter"] { --tech-color: #88B14B; }

.div-menu a {
	display: inline-block;
	font-family: 'Bangers';
	font-size: 22px;
	line-height: 26px;
	letter-spacing: 1px;
	text-decoration: none;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 10px;
	padding: 4px 12px 2px 12px;
	box-shadow: 3px 3px 0 var(--color-outline);
	text-shadow: none;
	transform: rotate(var(--tilt));
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease;
}

.div-menu a:hover,
.div-menu a:focus-visible {
	color: #FFFFFF;
	background-color: var(--tech-color);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	transform: translate(-2px, -2px) rotate(var(--tilt));
	box-shadow: 5px 5px 0 var(--color-outline);
}

/* Filtro ativo: botão "apertado" na cor da tecnologia */
.div-menu .menu.active a {
	color: #FFFFFF;
	background-color: var(--tech-color);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	transform: translate(2px, 2px) rotate(0deg);
	box-shadow: 1px 1px 0 var(--color-outline);
}

/* Busca */
.div-search {
	display: flex;
	align-items: center;
	gap: 10px;
}

.article-menu .icon-search {
	display: block;
	flex: none;
	font-size: 20px;
	color: #FFFFFF;
	width: 44px;
	height: 44px;
	line-height: 40px;
	text-align: center;
	background-color: #12A8C3;
	border: 2px solid var(--color-outline);
	border-radius: 50%;
	box-sizing: border-box;
	box-shadow: 3px 3px 0 var(--color-outline);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.article-menu .icon-search:hover {
	cursor: pointer;
	background-color: #db4551;
	transform: translate(-2px, -2px) rotate(-8deg);
	box-shadow: 5px 5px 0 var(--color-outline);
}

#div-input-search {
	position: relative;
	height: 44px;
	transition: width 0.5s ease;
}

#div-input-search.open {
	width: 420px;
}

#div-input-search.close {
	width: 0;
}

.article-menu input {
	font-family: 'Montserrat', Verdana, Arial;
	font-size: 15px;
	color: var(--color-text);
	height: 44px;
	width: 100%;
	padding: 0 38px 0 14px;
	box-sizing: border-box;
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 10px;
	box-shadow: 3px 3px 0 var(--color-outline);
	text-shadow: none;
	transition: opacity 0.3s ease, box-shadow 0.3s ease;
}

.article-menu input::placeholder {
	color: #A3AAB8;
	opacity: 1;
}

.article-menu input:focus {
	box-shadow: 3px 3px 0 var(--color-outline), 0 0 0 5px rgba(18, 168, 195, 0.2);
}

#div-input-search.close > input {
	opacity: 0;
	padding: 0;
	border-width: 0;
	box-shadow: none;
	pointer-events: none;
}

.article-menu .icon-cancel {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	color: var(--color-font);
	font-size: 16px;
	display: none;
	z-index: 2;
}

.article-menu .icon-cancel:hover {
	cursor: pointer;
	color: #db4551;
}

.article-logotipo-cicle {
	width: 106px;
	height: 106px;
	border-radius: 50%;
	background-color: var(--color-font);
}

.article-logotipo {
	cursor: pointer;
	padding-top: 40px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	transition: all 0.15s ease 0s;
}

.article-logotipo-top {
	text-align: left;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 72px;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 3px 1px 0 #B4B4B4;
	letter-spacing: -2px;
}

.article-logotipo-down {
	text-align: center;
	font-family: 'Dancing Script', Verdana, Arial;
	font-size: 36px;
	text-decoration: none;
	color: #1F1F1F;
	margin-top: -14px;
	text-shadow: 2px 2px 0 #C3C3C3;
	position: relative;
	transform: rotate(-10deg);
}

.logotipo-white {
	color: #FFFFFF;
}

.logotipo-red {
	color: #CD1433;
}

.aside-main-article {
	/* Retícula de pontos (estilo quadrinho) sobre a textura */
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.7px), url("../image/background-article-title.png");
	background-size: 12px 12px, auto;
	background-repeat: repeat;
	border-top: 3px solid var(--color-outline);
	border-bottom: 3px solid var(--color-outline);
	background-color: #12A8C3;
	min-height: 114px;
	margin: 0 auto;
	box-shadow: none;
}

.article-main-title {
	margin: 0 auto;
	max-width: 1000px;
	box-sizing: border-box;
	text-align: center;
	font-family: 'Bangers';
	font-size: 50px;
	font-weight: 400;
	color: #FFFFFF;
	text-decoration: none;
	text-shadow: 2px 2px 0 var(--color-outline);
	padding: 30px 16px 20px 16px;
	letter-spacing: 1px;
	overflow-wrap: anywhere;
}

.aside-article {
	/* Retícula de pontos (estilo quadrinho) sobre a textura */
	background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.5px, transparent 1.7px), url("../image/background-article-title.png");
	background-size: 12px 12px, auto;
	background-repeat: repeat;
	border-top: 3px solid var(--color-outline);
	border-bottom: 3px solid var(--color-outline);
	background-color: #12A8C3;
	min-height: 160px;
	padding: 20px 0;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-shadow: none;
}







/* Logo dentro de um balão de pensamento (www/image/logo-cloud.svg) */
.logo {
	width: 290px;
	height: 190px;
	margin: 0 auto;
	padding: 46px 21px 0 0;
	box-sizing: border-box;
	background-image: url('../image/logo-cloud.svg');
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
	transform-origin: 45% 50%;
	transition: transform 0.4s ease;
}

.logo:hover {
	cursor: pointer;
	transform: rotate(-3deg) scale(1.03);
}

.logo .up {
	margin: 0 auto;
	font-family: 'Bangers';
	font-size: 54px;
	line-height: 56px;
	letter-spacing: 1px;
	color: #12A8C3;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	text-shadow: 2px 2px 0 var(--color-outline);
	position: relative;
	transform: rotate(-4deg);
}

.logo .down {
	margin: -4px auto 0 auto;
	padding-left: 46px;
	text-align: center;
	font-family: 'Dancing Script';
	font-size: 24px;
	line-height: 30px;
	text-decoration: none;
	color: var(--color-outline);
	text-shadow: none;
	position: relative;
	transform: rotate(-3deg);
}

.article-title {
	margin: 0 auto;
	padding: 0;
	width: 960px;
	text-align: left;
	font-family: var(--font-title);
	font-size: 30px;
	font-weight: var(--font-title-weight);
	line-height: 38px;
	color: #FFFFFF;
	text-decoration: none;
	text-shadow: 2px 2px 0 var(--color-outline);
	letter-spacing: -0.3px;
}

.article-description {
	margin: 10px auto 0 auto;
	padding: 0;
	width: 960px;
	line-height: 25px;
	font-family: 'Montserrat', Verdana, Arial;
	font-size: 16px;
	font-weight: 400;
	color: #FFFFFF;
	text-shadow: 1px 1px 0 #13899f;
}

.article-container {
	width: 100%;
	padding: 0;
	margin: 0 auto;
	min-height: calc(100vh - 340px);
}

.article-content {
	margin: 0 auto;
	padding: 20px 0;
	width: 980px;
	font-family: 'Montserrat', Arial;
	color: var(--color-text);
	font-size: 15px;
	line-height: 25px;
	text-shadow: none;
}

h2 {
	font-family: 'Bangers', Arial;
	font-size: 28px;
	font-style: normal;
	font-weight: normal;
	line-height: 30px;
	display: block;
	color: var(--color-font);
	margin: 36px 0 0px 0;
	text-shadow: 1px 1px 0 #FFF;
	letter-spacing: 1px;
}

h3 {
	font-family: var(--font-title);
	font-size: 22px;
	font-style: normal;
	font-weight: var(--font-title-weight);
	line-height: 30px;
	display: block;
	color: var(--color-title);
	margin: 36px 0 0px 0;
	text-shadow: 1px 1px 0 #FFF;
	letter-spacing: -0.2px;
}

h4 {
	font-family: 'Dancing Script', Verdana, Arial;
	line-height: 32px;
	font-size: 26px;
	display: block;
	color: var(--color-font);
	font-weight: 700;
	margin: 12px 0;
	text-shadow: 1px 1px 0 #FFFFFF;
}

h5 {
	display: block;
	font-family: Verdana, Arial;
	font-size: 14px;
	font-weight: bold;
	font-style: italic;
	color: #5587A2;
	margin: 24px 0 -12px 0;
	padding: 0;

}

p {
	margin: 10px 0;
}

ul {
	list-style-type: square;
	margin-left: 35px;
	margin-bottom: 15px;
}

ul li {
	margin-top: 4px;
}

.tags {
	border-radius: 4px;
	font-family: 'Montserrat', Arial;
	font-weight: bold;
	font-size: 13px;
	color: #FFFFFF;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
	padding: 3px 8px 3px 6px;
	margin: 0 2px;
}

.links {
	font-family: 'Bangers';
	font-size: 22px;
	font-weight: normal;
	font-style: normal;
	text-decoration: none;
	margin: 0 2px;
	letter-spacing: 1px;
	transition: all 0.35s ease 0s;
	color: var(--color-font);
	vertical-align: -2px;
	text-shadow: 1px 1px 0px #FFFFFF;
}

.links:hover {
	cursor: pointer;
	color: #db4551;
}

.red {
	background-color: #db4551;
}

.green {
	background-color: #4CA143;
}

.blue {
	background-color: #5587A2;
}

.cyan {
	background-color: #AAAAAA;
}

.text-red {
	color: #db4551;
}

.article-footer {
	background-color: #1c1d25;
	border-top: 3px solid var(--color-outline);
	/* Retícula de pontos (estilo quadrinho) sobre a textura */
	background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1.5px, transparent 1.7px), url('../image/background-article-title.png');
	background-size: 12px 12px, auto;
	background-repeat: repeat;
	width: 100%;
	position: relative;
}

/* Rodapé: "todos os bugs reservados" + botão de voltar ao topo */
.article-copyright {
	max-width: 980px;
	margin: 0 auto;
	padding: 24px 16px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-family: 'Montserrat', Verdana, Arial;
	color: #FFFFFF;
	text-shadow: none;
}

.copyright-main {
	font-size: 15px;
	font-weight: 600;
	line-height: 26px;
}

/* O © invertido do copyleft volta ao normal no hover */
.copyright-main .copyleft {
	display: inline-block;
	font-size: 19px;
	vertical-align: -1px;
	padding: 0 2px;
	cursor: help;
	transform: rotate(180deg);
	transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.copyright-main .copyleft:hover {
	transform: rotate(0deg);
}

.copyright-bugs {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 17px;
	font-weight: normal;
	letter-spacing: 1px;
	line-height: 22px;
	color: #FFFFFF;
	background-color: #db4551;
	border: 2px solid #FFFFFF;
	border-radius: 6px;
	padding: 0 7px 0 5px;
	margin: 0 2px;
	transform: rotate(-3deg);
}

.copyright-bugs .material-symbols-outlined {
	font-size: 16px;
}

.copyright-bugs:hover .material-symbols-outlined {
	animation: bug-crawl 0.5s ease-in-out infinite alternate;
}

@keyframes bug-crawl {
	from { transform: translateX(-1px) rotate(-12deg); }
	to { transform: translateX(1px) rotate(12deg); }
}

.copyright-code {
	font-family: 'JetBrains Mono', Consolas, monospace;
	font-size: 12px;
	line-height: 20px;
	color: #7F8DA3;
	margin-top: 4px;
}

.copyright-code code {
	color: #82AAFF;
}

.footer-top {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 18px;
	letter-spacing: 1px;
	line-height: 22px;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 2px solid #FFFFFF;
	border-radius: 10px;
	padding: 6px 14px 4px 10px;
	box-shadow: 3px 3px 0 #12A8C3;
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.footer-top .material-symbols-outlined {
	font-size: 18px;
	transition: transform 0.3s ease;
}

.footer-top:hover {
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 #12A8C3;
}

.footer-top:hover .material-symbols-outlined {
	transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
	.copyright-bugs:hover .material-symbols-outlined {
		animation: none;
	}
}

.article-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 10px 0 30px 0;
}

/* Busca sem resultado: explosão de quadrinho + "consulta SQL" vazia */
.article-empty {
	position: relative;
	max-width: 720px;
	margin: 40px auto 20px auto;
	padding-top: 34px;
	font-family: 'Montserrat', Arial;
	text-shadow: none;
}

.empty-burst {
	position: absolute;
	top: 0;
	left: -18px;
	z-index: 2;
	transform: rotate(-10deg);
	animation: empty-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
	/* contorno + sombra sólida que acompanham o recorte da explosão */
	filter: drop-shadow(2px 0 0 var(--color-outline)) drop-shadow(-2px 0 0 var(--color-outline)) drop-shadow(0 2px 0 var(--color-outline)) drop-shadow(0 -2px 0 var(--color-outline)) drop-shadow(4px 4px 0 rgba(30, 38, 51, 0.25));
}

.empty-burst span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 150px;
	height: 110px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 30px;
	letter-spacing: 1px;
	color: #db4551;
	background-color: #FFCB6B;
	text-shadow: 1px 2px 0 #FFFFFF;
	clip-path: polygon(50% 0%, 59% 22%, 80% 6%, 76% 30%, 100% 26%, 84% 46%, 100% 62%, 76% 66%, 86% 92%, 62% 78%, 52% 100%, 42% 78%, 18% 94%, 24% 68%, 0% 70%, 14% 50%, 0% 30%, 24% 32%, 18% 6%, 40% 22%);
}

@keyframes empty-pop {
	0% { opacity: 0; transform: rotate(-40deg) scale(0.3); }
	100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}

.empty-panel {
	position: relative;
	padding: 40px 34px 30px 34px;
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 18px;
	box-shadow: 6px 6px 0 rgba(30, 38, 51, 0.12);
	text-align: center;
}

.empty-title {
	font-family: var(--font-title);
	font-size: 24px;
	font-weight: var(--font-title-weight);
	line-height: 32px;
	color: var(--color-title);
	margin: 0 0 18px 0;
}

.empty-query {
	margin: 0 auto 20px auto;
	padding: 16px 20px;
	text-align: left;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	background-color: #1E2633;
	border: 2px solid var(--color-outline);
	border-radius: 12px;
}

/* Reseta o estilo do <code> inline do artigo (.article-content code) */
.article-content pre.empty-query code {
	font-family: 'JetBrains Mono', Consolas, monospace;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.7;
	color: #D6DEEB;
	background: none;
	border: none;
	padding: 0;
}

.empty-prompt {
	color: #C792EA;
	font-weight: 600;
}

.empty-result {
	color: #F07178;
}

.empty-cursor {
	color: #82AAFF;
	animation: empty-blink 1s steps(1) infinite;
}

@keyframes empty-blink {
	50% { opacity: 0; }
}

.empty-hint {
	font-size: 15px;
	line-height: 24px;
	color: var(--color-text);
	margin: 0 0 14px 0;
}

.empty-techs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 22px;
}

/* Mesmas etiquetas-adesivo do menu */
.empty-tech {
	font-family: 'Bangers', Verdana, Arial;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 10px;
	padding: 4px 11px 2px 11px;
	box-shadow: 3px 3px 0 var(--color-outline);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease;
}

.empty-tech:nth-child(odd) {
	transform: rotate(-2deg);
}

.empty-tech:nth-child(even) {
	transform: rotate(1.5deg);
}

.empty-tech:hover,
.empty-tech:focus-visible {
	color: #FFFFFF;
	background-color: var(--tech-color, #12A8C3);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	transform: translate(-2px, -2px) rotate(0deg);
	box-shadow: 5px 5px 0 var(--color-outline);
}

.empty-clear {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Montserrat', Arial;
	font-size: 14px;
	font-weight: 600;
	color: #12A8C3;
	background: transparent;
	border: none;
	padding: 4px 8px;
	border-radius: 6px;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.empty-clear .material-symbols-outlined {
	font-size: 18px;
	transition: transform 0.4s ease;
}

.empty-clear:hover {
	color: #FFFFFF;
	background-color: #12A8C3;
}

.empty-clear:hover .material-symbols-outlined {
	transform: rotate(-180deg);
}

@media (prefers-reduced-motion: reduce) {
	.empty-burst,
	.empty-cursor {
		animation: none;
	}
}

.article-item {
	--tech-color: var(--color-font);
	position: relative;
	width: 100%;
	display: grid;
	grid-template-columns: 124px 1fr;
	grid-column-gap: 12px;
	padding: 20px 28px 18px 0;
	box-sizing: border-box;
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 14px;
	box-shadow: 4px 4px 0 rgba(30, 38, 51, 0.1);
	text-shadow: none;
	transition: translate 0.4s ease, box-shadow 0.4s ease;
}

/* O aos.css sobrescreve transition-property nos itens animados; mantém a animação de entrada e a do hover */
.article-list .article-item[data-aos] {
	transition: opacity 0.5s ease, transform 0.5s ease, translate 0.4s ease, box-shadow 0.4s ease;
}

/* No hover o card "sobe" e a sombra sólida ganha a cor da tecnologia.
   Usa a propriedade translate (e não transform) porque o AOS controla o transform. */
.article-item:hover,
.article-item:focus-within {
	translate: -2px -2px;
	box-shadow: 6px 6px 0 var(--tech-color);
}

.article-item[data-technology="html"] { --tech-color: #D13076; }
.article-item[data-technology="css"] { --tech-color: #0AC5D4; }
.article-item[data-technology="js"] { --tech-color: #EF562D; }
.article-item[data-technology="node"] { --tech-color: #5FA04E; }
.article-item[data-technology="php"] { --tech-color: #5587A2; }
.article-item[data-technology="mysql"] { --tech-color: #5C7148; }
.article-item[data-technology="python"] { --tech-color: #D1AF94; }
.article-item[data-technology="react"] { --tech-color: #88B14B; }
.article-item[data-technology="flutter"] { --tech-color: #88B14B; }

.article-item>div:nth-child(1) {
	text-align: center;
}

.article-item .title {
	font-family: var(--font-title);
	font-size: 21px;
	font-weight: var(--font-title-weight);
	line-height: 29px;
	letter-spacing: -0.2px;
	color: var(--color-title);
	margin: 2px 0 6px 0;
	text-shadow: none;
}

.article-item .title a {
	color: inherit;
	transition: color 0.6s ease-out;
}

/* Torna o card inteiro clicável */
.article-item .title a::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
}

.article-item:hover .title a {
	color: #db4551;
}

.article-item .title a:focus-visible {
	outline: 2px solid var(--tech-color);
	outline-offset: 3px;
	border-radius: 2px;
}

.article-item .badge-new {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #FFFFFF;
	background-color: #db4551;
	border: 2px solid var(--color-outline);
	border-radius: 6px;
	box-shadow: 2px 2px 0 var(--color-outline);
	padding: 0 7px;
	margin-left: 10px;
	vertical-align: 3px;
	transform: rotate(-4deg);
}

.article-item .description {
	font-family: 'Montserrat', Arial;
	font-size: 15px;
	font-weight: 500;
	line-height: 20px;
	max-width: 72ch;
	color: var(--color-text);
	margin: 0;
	text-shadow: none;
}

.article-item .creation {
	font-family: 'Montserrat', Arial;
	font-size: 13px;
	font-weight: 500;
	line-height: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 22px;
	color: #6B7280;
	margin: 12px 0 0 0;
	text-shadow: none;
}

.article-item.featured {
	grid-template-columns: 144px 1fr;
	padding: 30px 32px 26px 0;
	box-shadow: 6px 6px 0 var(--tech-color);
}

.article-item.featured:hover,
.article-item.featured:focus-within {
	box-shadow: 8px 8px 0 var(--tech-color);
}

.article-item.featured .title {
	font-size: 27px;
	line-height: 35px;
	margin-bottom: 10px;
}

.article-item.featured .description {
	font-size: 16px;
	line-height: 22px;
}

/* Selo de tecnologia: explosão de quadrinho na cor da tecnologia.
   ::before = contorno + linhas de ação (máscara SVG embutida)
   ::after  = explosão na cor --tech-color (máscara SVG embutida)
   Por serem máscaras, a cor vem do CSS (vale para todas as tecnologias). */
.article-item .icon-technology,
.line-page .icon-technology {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 88px;
	margin: -16px auto 0 auto;
	font-family: 'Bangers';
	font-size: 35px;
	letter-spacing: 1px;
	color: #FFFFFF;
	text-transform: uppercase;
	text-shadow: 2px 2px 0 var(--color-outline);
	transform: rotate(-4deg);
	transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.article-item:nth-child(even) .icon-technology {
	transform: rotate(4deg);
}

/* width/height/margin: anula o [class^="icon-"]:before da fonte de ícones,
   que também casa com .icon-technology e encolheria o ::before */
.article-item .icon-technology::before,
.line-page .icon-technology::before,
.article-item .icon-technology::after,
.line-page .icon-technology::after {
	content: '';
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	margin: 0;
	z-index: -1;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

.article-item .icon-technology::before,
.line-page .icon-technology::before {
	background-color: var(--color-outline);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 110'%3E%3Cpolygon points='72.5,17.0 83.4,24.3 96.0,24.0 102.7,32.0 119.4,33.4 115.0,45.7 123.6,53.3 117.7,62.2 124.4,72.9 109.9,77.7 105.3,86.2 93.6,88.7 86.3,100.3 72.5,92.7 60.1,96.4 51.4,88.7 36.4,89.0 35.1,77.7 25.7,71.5 27.3,62.2 16.4,52.8 30.0,45.7 30.5,36.0 42.3,32.0 47.6,22.0 61.6,24.3'/%3E%3Cg stroke='black' stroke-width='3.6' stroke-linecap='round'%3E%3Cline x1='63.9' y1='12.3' x2='62.6' y2='2.7'/%3E%3Cline x1='100.7' y1='18.6' x2='105.5' y2='13.0'/%3E%3Cline x1='123.0' y1='37.5' x2='135.8' y2='33.3'/%3E%3Cline x1='126.3' y1='65.4' x2='134.0' y2='66.8'/%3E%3Cline x1='114.4' y1='82.6' x2='122.9' y2='87.8'/%3E%3Cline x1='84.0' y1='96.6' x2='86.5' y2='103.8'/%3E%3Cline x1='57.9' y1='97.0' x2='55.2' y2='106.4'/%3E%3Cline x1='25.6' y1='82.6' x2='18.7' y2='86.9'/%3E%3Cline x1='13.7' y1='65.4' x2='2.1' y2='67.5'/%3E%3Cline x1='15.5' y1='40.3' x2='6.1' y2='37.8'/%3E%3Cline x1='37.6' y1='19.4' x2='33.1' y2='14.5'/%3E%3C/g%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 110'%3E%3Cpolygon points='72.5,17.0 83.4,24.3 96.0,24.0 102.7,32.0 119.4,33.4 115.0,45.7 123.6,53.3 117.7,62.2 124.4,72.9 109.9,77.7 105.3,86.2 93.6,88.7 86.3,100.3 72.5,92.7 60.1,96.4 51.4,88.7 36.4,89.0 35.1,77.7 25.7,71.5 27.3,62.2 16.4,52.8 30.0,45.7 30.5,36.0 42.3,32.0 47.6,22.0 61.6,24.3'/%3E%3Cg stroke='black' stroke-width='3.6' stroke-linecap='round'%3E%3Cline x1='63.9' y1='12.3' x2='62.6' y2='2.7'/%3E%3Cline x1='100.7' y1='18.6' x2='105.5' y2='13.0'/%3E%3Cline x1='123.0' y1='37.5' x2='135.8' y2='33.3'/%3E%3Cline x1='126.3' y1='65.4' x2='134.0' y2='66.8'/%3E%3Cline x1='114.4' y1='82.6' x2='122.9' y2='87.8'/%3E%3Cline x1='84.0' y1='96.6' x2='86.5' y2='103.8'/%3E%3Cline x1='57.9' y1='97.0' x2='55.2' y2='106.4'/%3E%3Cline x1='25.6' y1='82.6' x2='18.7' y2='86.9'/%3E%3Cline x1='13.7' y1='65.4' x2='2.1' y2='67.5'/%3E%3Cline x1='15.5' y1='40.3' x2='6.1' y2='37.8'/%3E%3Cline x1='37.6' y1='19.4' x2='33.1' y2='14.5'/%3E%3C/g%3E%3C/svg%3E");
}

.article-item .icon-technology::after,
.line-page .icon-technology::after {
	background-color: var(--tech-color);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 110'%3E%3Cpolygon points='70.0,18.0 79.9,25.2 91.6,24.5 97.5,32.0 113.6,32.7 108.8,44.1 117.2,50.8 111.2,58.7 118.2,68.5 104.2,72.4 100.2,80.2 89.3,82.2 82.8,93.4 70.0,85.7 58.5,89.5 50.7,82.2 36.5,83.0 35.8,72.4 27.0,67.1 28.8,58.7 17.9,50.3 31.2,44.1 31.3,35.2 42.5,32.0 47.0,22.6 60.1,25.2'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 110'%3E%3Cpolygon points='70.0,18.0 79.9,25.2 91.6,24.5 97.5,32.0 113.6,32.7 108.8,44.1 117.2,50.8 111.2,58.7 118.2,68.5 104.2,72.4 100.2,80.2 89.3,82.2 82.8,93.4 70.0,85.7 58.5,89.5 50.7,82.2 36.5,83.0 35.8,72.4 27.0,67.1 28.8,58.7 17.9,50.3 31.2,44.1 31.3,35.2 42.5,32.0 47.0,22.6 60.1,25.2'/%3E%3C/svg%3E");
}

/* No hover do card a explosão "estoura" um pouco */
.article-item:hover .icon-technology,
.article-item:focus-within .icon-technology {
	transform: rotate(-10deg) scale(1.1);
}

.article-item:nth-child(even):hover .icon-technology,
.article-item:nth-child(even):focus-within .icon-technology {
	transform: rotate(10deg) scale(1.1);
}

.article-item.featured .icon-technology {
	width: 132px;
	height: 104px;
	font-size: 40px;
}

.article-item .mysql,
.article-item .react {
	font-size: 31px;
}

.article-item .python,
.article-item .flutter {
	font-size: 27px;
}

.article-item.featured .mysql,
.article-item.featured .react {
	font-size: 35px;
}

.article-item.featured .python,
.article-item.featured .flutter {
	font-size: 31px;
}

@media (prefers-reduced-motion: reduce) {
	.article-item .icon-technology {
		transition: none;
	}
}

.div-article-comments {
	margin: 0 auto;
	padding: 20px 0;
	width: 980px;
}

/* Contador de comentários */
.div-article-comments #h-count-comments {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-title);
	font-size: 22px;
	font-weight: var(--font-title-weight);
	line-height: 30px;
	color: var(--color-title);
	text-shadow: none;
	margin: 10px 0 24px 0;
}

.div-article-comments #h-count-comments i {
	display: inline-block;
	width: 36px;
	height: 36px;
	font-size: 26px;
	line-height: 32px;
	text-align: center;
	color: #FFFFFF;
	background-color: #12A8C3;
	border: 2px solid var(--color-outline);
	border-radius: 50%;
	box-shadow: 2px 2px 0 var(--color-outline);
	box-sizing: border-box;
	transform: rotate(-8deg);
}

/* O glifo icon-chat-empty não existe na fonte de ícones; usa o Material Symbols */
.div-article-comments #h-count-comments i::before {
	content: 'chat';
	font-family: 'Material Symbols Outlined';
	font-size: 18px;
	font-style: normal;
	margin: 0;
}

.div-article-comments #number-count-comments {
	color: #db4551;
}

/* Lista de comentários: avatar com iniciais + balão de fala */
.div-itens-comments {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.div-item-comment {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	grid-column-gap: 16px;
	align-items: start;
}

.div-item-comment > .div-form-item-comment,
.div-item-comment > .span-item-comment {
	grid-column: 2;
}

.comment-avatar {
	width: 48px;
	height: 48px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 21px;
	line-height: 45px;
	letter-spacing: 1px;
	text-align: center;
	color: #FFFFFF;
	background-color: hsl(var(--avatar-hue, 190), 50%, 45%);
	border: 2px solid var(--color-outline);
	border-radius: 50%;
	box-shadow: 2px 2px 0 var(--color-outline);
	box-sizing: border-box;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	transform: rotate(-6deg);
	user-select: none;
}

.comment-bubble {
	position: relative;
	padding: 14px 18px 8px 18px;
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 14px;
	box-shadow: 4px 4px 0 rgba(30, 38, 51, 0.1);
}

/* Rabicho do balão apontando para o avatar */
.comment-bubble::before,
.comment-bubble::after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border-style: solid;
}

.comment-bubble::before {
	left: -12px;
	top: 14px;
	border-width: 8px 12px 8px 0;
	border-color: transparent var(--color-outline) transparent transparent;
}

.comment-bubble::after {
	left: -8px;
	top: 17px;
	border-width: 5px 8px 5px 0;
	border-color: transparent #FFFFFF transparent transparent;
}

.comment-header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 12px;
	margin-bottom: 6px;
}

.div-item-comment .name {
	font-family: var(--font-title);
	font-size: 16px;
	font-style: normal;
	font-weight: var(--font-title-weight);
	line-height: 22px;
	color: var(--color-title);
	text-shadow: none;
}

.div-item-comment .creation {
	font-family: 'Montserrat', Arial;
	font-size: 12px;
	font-weight: 500;
	line-height: 18px;
	color: #8A93A6;
	text-shadow: none;
}

.div-item-comment .comment {
	font-family: 'Montserrat', Arial;
	font-size: 15px;
	line-height: 25px;
	color: var(--color-text);
	text-shadow: none;
	overflow-wrap: anywhere;
}

.div-item-comment .reply {
	display: flex;
	justify-content: flex-end;
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px dashed #E1E5EC;
}

.div-item-comment .reply a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 16px;
	line-height: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #12A8C3;
	padding: 2px 10px 1px 8px;
	border-radius: 6px;
	text-shadow: none;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.div-item-comment .reply a .material-symbols-outlined {
	font-size: 18px;
	transition: transform 0.3s ease;
}

.div-item-comment .reply a:hover,
.div-item-comment .reply a:focus-visible {
	color: #FFFFFF;
	background-color: #12A8C3;
}

.div-item-comment .reply a:hover .material-symbols-outlined {
	transform: translateX(-2px);
}

/* Respostas: linha da conversa tracejada */
.span-item-comment {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.span-item-comment:not(:empty) {
	margin-top: 18px;
	padding-left: 18px;
	border-left: 2px dashed #C9CED8;
}

.span-item-comment .div-item-comment {
	grid-template-columns: 40px minmax(0, 1fr);
	grid-column-gap: 14px;
}

.span-item-comment .comment-avatar {
	width: 40px;
	height: 40px;
	font-size: 18px;
	line-height: 37px;
}

.span-item-comment .comment-bubble::before {
	top: 10px;
}

.span-item-comment .comment-bubble::after {
	top: 13px;
}

/* Comentário recém-enviado entra com um "pop" */
.comment-new > .comment-bubble {
	animation: comment-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.comment-new > .comment-avatar {
	animation: comment-pop-avatar 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes comment-pop {
	0% { opacity: 0; transform: scale(0.9) translateY(10px); }
	100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes comment-pop-avatar {
	0% { opacity: 0; transform: scale(0.4) rotate(-40deg); }
	100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

@media (prefers-reduced-motion: reduce) {
	.comment-new > .comment-bubble,
	.comment-new > .comment-avatar {
		animation: none;
	}
}

/* Formulário de comentário: card em forma de balão de fala (quadrinho) */
.div-form-comment:not(:empty),
.div-form-item-comment:not(:empty) {
	--comment-card: #F7F8FB;
	--comment-accent: #12A8C3;
	--comment-error: #db4551;
	position: relative;
	margin: 30px 0 56px 0;
	padding: 28px 32px 26px 32px;
	background-color: var(--comment-card);
	border: 2px solid var(--color-outline);
	border-radius: 18px;
	box-shadow: 6px 6px 0 rgba(30, 38, 51, 0.12);
	box-sizing: border-box;
}

/* Rabicho do balão */
.div-form-comment:not(:empty)::before,
.div-form-comment:not(:empty)::after {
	content: '';
	position: absolute;
	left: 56px;
	width: 0;
	height: 0;
	border-style: solid;
}

.div-form-comment:not(:empty)::before {
	bottom: -26px;
	border-width: 26px 26px 0 0;
	border-color: var(--color-outline) transparent transparent transparent;
}

.div-form-comment:not(:empty)::after {
	bottom: -21px;
	left: 58px;
	border-width: 21px 21px 0 0;
	border-color: var(--comment-card) transparent transparent transparent;
}

.div-form-item-comment:not(:empty) {
	margin: 16px 0 30px 0;
	padding: 22px 24px 20px 24px;
}

.div-form-comment h4 {
	margin: 0;
	font-size: 32px;
	line-height: 40px;
	color: var(--color-title);
	text-shadow: none;
}

.div-form-comment h4::before {
	content: 'forum';
	font-family: 'Material Symbols Outlined';
	font-size: 22px;
	font-weight: normal;
	line-height: 38px;
	display: inline-block;
	vertical-align: 4px;
	width: 38px;
	height: 38px;
	margin-right: 12px;
	text-align: center;
	color: #FFFFFF;
	background-color: var(--comment-accent);
	border: 2px solid var(--color-outline);
	border-radius: 50%;
	box-shadow: 2px 2px 0 var(--color-outline);
	transform: rotate(-8deg);
}

.div-article-comments .comment-subtitle {
	font-family: 'Montserrat', Arial;
	font-size: 14px;
	line-height: 22px;
	color: #6B7280;
	margin: 4px 0 6px 0;
	text-shadow: none;
}

.div-form-item-comment .comment-subtitle {
	font-weight: 600;
	margin-top: 0;
}

.div-article-comments .div-two-input {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-column-gap: 20px;
	box-sizing: border-box;
}

.div-article-comments .div-input {
	width: 100%;
	padding: 14px 0 6px 0;
	box-sizing: border-box;
}

/* O fieldset vira a caixa do campo; a legend vira uma etiqueta-adesivo no topo */
.div-article-comments fieldset {
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 2px 16px 12px 16px;
	background-color: #FFFFFF;
	border: 2px solid #D5DAE3;
	border-radius: 12px;
	box-sizing: border-box;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.div-article-comments fieldset:hover {
	border-color: #BCC3D0;
}

.div-article-comments fieldset:focus-within {
	border-color: var(--comment-accent);
	box-shadow: 0 0 0 4px rgba(18, 168, 195, 0.15);
}

.div-article-comments legend {
	font-family: 'Bangers', Verdana, Arial;
	font-size: 17px;
	font-weight: normal;
	font-style: normal;
	line-height: 22px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: #FFFFFF;
	background-color: #8A93A6;
	border-radius: 6px;
	padding: 1px 10px 0 10px;
	margin-left: -4px;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.2);
	white-space: nowrap;
	transform: rotate(-2deg);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.div-article-comments fieldset:focus-within legend {
	background-color: var(--comment-accent);
	transform: rotate(-4deg) scale(1.05);
}

.div-article-comments .div-input input,
.div-article-comments .div-input textarea {
	font-family: 'Montserrat', Arial;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-text);
	width: 100%;
	display: block;
	padding: 8px 0 2px 0;
	border: none;
	outline: none;
	resize: none;
	background-color: transparent;
	text-shadow: none;
	box-sizing: border-box;
}

.div-article-comments .div-input textarea {
	min-height: 110px;
	resize: none;
}

.div-article-comments .div-input input::placeholder,
.div-article-comments .div-input textarea::placeholder {
	color: #A3AAB8;
	opacity: 1;
}

/* Validação (classes adicionadas pelo required() do tools.js) */
.div-article-comments fieldset.is-shaking {
	animation: comment-shake 0.4s ease;
}

.div-article-comments .fieldset-error {
	border-color: var(--comment-error);
	box-shadow: 0 0 0 4px rgba(219, 69, 81, 0.12);
}

.div-article-comments .legend-error,
.div-article-comments fieldset:focus-within .legend-error {
	background-color: var(--comment-error);
}

.div-article-comments .legend-error::after {
	content: ' obrigatório';
}

/* O required() anima o ícone com o efeito "drop" do jQuery UI, que insere um
   .ui-effects-placeholder com display: block dentro da etiqueta e quebra a linha.
   Aqui o aviso é só o texto, então nada além dele aparece dentro da legend. */
.div-article-comments legend > * {
	display: none !important;
}

@keyframes comment-shake {
	0%, 100% { transform: translateX(0); }
	20% { transform: translateX(-6px); }
	40% { transform: translateX(6px); }
	60% { transform: translateX(-4px); }
	80% { transform: translateX(4px); }
}

.div-article-comments .div-button-send {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 16px 0 0 0;
	padding: 0;
}

.div-article-comments .comment-hint {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Montserrat', Arial;
	font-size: 13px;
	color: #6B7280;
}

.div-article-comments .comment-hint .material-symbols-outlined {
	font-size: 17px;
}

/* Botão estilo quadrinho: sombra sólida que "afunda" ao clicar */
.div-article-comments .button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 22px;
	font-style: normal;
	font-weight: normal;
	line-height: 26px;
	letter-spacing: 1.5px;
	color: #FFFFFF;
	background-color: var(--comment-error);
	border: 2px solid var(--color-outline);
	border-radius: 10px;
	padding: 8px 18px 6px 22px;
	box-shadow: 4px 4px 0 var(--color-outline);
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease;
}

.div-article-comments .button .material-symbols-outlined {
	font-size: 20px;
	transition: transform 0.35s ease;
}

.div-article-comments .button:hover,
.div-article-comments .button:focus-visible {
	color: #FFFFFF;
	background-color: #E35A65;
	transform: translate(-2px, -2px);
	box-shadow: 6px 6px 0 var(--color-outline);
}

/* Aviãozinho "decola" no hover */
.div-article-comments .button:hover .material-symbols-outlined {
	transform: translate(3px, -3px) rotate(-18deg);
}

.div-article-comments .button:active {
	transform: translate(3px, 3px);
	box-shadow: 1px 1px 0 var(--color-outline);
}

/* Enviando: botão travado e o aviãozinho voando */
.div-article-comments .button.is-sending,
.div-article-comments .button.is-sending:hover {
	cursor: progress;
	opacity: 0.8;
	transform: none;
	box-shadow: 4px 4px 0 var(--color-outline);
}

.div-article-comments .button.is-sending .material-symbols-outlined {
	animation: comment-plane 0.8s ease-in-out infinite;
}

@keyframes comment-plane {
	0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
	60% { transform: translate(12px, -8px) rotate(-18deg); opacity: 0; }
	61% { transform: translate(-10px, 6px) rotate(0deg); opacity: 0; }
	100% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
}

.div-article-comments .button:focus-visible {
	outline: 2px solid var(--comment-accent);
	outline-offset: 3px;
}

.div-article-comments .icon-cancel-comment {
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: 18px;
	color: var(--color-font);
	text-shadow: none;
	transition: color 0.3s ease, transform 0.3s ease;
}

.div-article-comments .icon-cancel-comment:hover {
	cursor: pointer;
	color: var(--comment-error);
	transform: rotate(90deg);
}

@media (prefers-reduced-motion: reduce) {
	.div-article-comments fieldset.is-shaking {
		animation: none;
	}
}

.line-page {
	width: 980px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	border-bottom: 2px dashed #C9CED8;
	margin: 6px auto 10px auto;
	text-align: left;
	display: grid;
	grid-template-columns: minmax(40px, auto) minmax(40px, auto)1fr;
}

.line-page .text-technology {
	font-family: Verdana, Arial;
	font-size: 13px;
	font-weight: bold;
	font-style: italic;
	text-transform: uppercase;
	text-shadow: 1px 1px #FFF;
	display: block;
	color: var(--color-font);
	margin: 3px 10px 0 0;
	height: 26px;
	line-height: 26px;
	display: none;
}

/* Selo no fim do artigo: mesma explosão dos cards (base em .article-item .icon-technology) */
.line-page .icon-technology {
	margin: 0 0 4px -6px;
}

.line-page .html { --tech-color: #D13076; }
.line-page .css { --tech-color: #0AC5D4; }
.line-page .js { --tech-color: #EF562D; }
.line-page .node { --tech-color: #5FA04E; }
.line-page .php { --tech-color: #5587A2; }
.line-page .mysql { --tech-color: #5C7148; font-size: 31px; }
.line-page .python { --tech-color: #D1AF94; font-size: 27px; }
.line-page .react { --tech-color: #88B14B; font-size: 31px; }
.line-page .flutter { --tech-color: #88B14B; font-size: 27px; }

/* Paginação: botões no estilo quadrinho, com janela de páginas (1 … 4 5 6 … 20) */
.div-article-pager {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: nowrap;
	gap: 10px;
	margin: 10px auto 0 auto;
}

.div-article-pager div {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 38px;
	height: 38px;
	padding: 0 6px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 20px;
	letter-spacing: 1px;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 10px;
	box-shadow: 3px 3px 0 var(--color-outline);
	text-shadow: none;
	box-sizing: border-box;
	user-select: none;
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease;
}

.div-article-pager div:hover {
	cursor: pointer;
	color: #FFFFFF;
	background-color: #12A8C3;
	transform: translate(-2px, -2px);
	box-shadow: 5px 5px 0 var(--color-outline);
}

.div-article-pager .active,
.div-article-pager .active:hover {
	color: #FFFFFF;
	background-color: #db4551;
	transform: translate(2px, 2px);
	box-shadow: 1px 1px 0 var(--color-outline);
}

/* Reticências entre as páginas: só texto, sem botão nem hover */
.div-article-pager div.pager-gap,
.div-article-pager div.pager-gap:hover {
	min-width: 0;
	padding: 0 2px;
	color: var(--color-title);
	background: none;
	border: none;
	box-shadow: none;
	transform: none;
	cursor: default;
}

.reference-links {
	margin: 4px 0;
	padding: 0;
	list-style: none;
}

.reference-links li {
	margin-bottom: 8px;
}

.reference-links a {
	display: inline-block;
	font-family: 'Montserrat', Arial;
	font-size: 13px;
	font-weight: 500;
	color: #12A8C3;
	background: #F5F7FA;
	border-radius: 6px;
	padding: 0px 6px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(18, 168, 195, 0.08);
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.reference-links a:hover {
	background: #12A8C3;
	color: #fff;
	text-decoration: none;
	text-shadow: none;
}

.article-link {
	display: inline-block;
	font-family: 'Montserrat', Arial;
	font-size: 13px;
	font-weight: 500;
	color: #12A8C3;
	background: #F5F7FA;
	border-radius: 6px;
	padding: 0px 6px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(18, 168, 195, 0.08);
	transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.article-link:hover {
	background: #12A8C3;
	color: #fff;
	text-decoration: none;
	text-shadow: none;
}

.article-content code:not([class*="language-"]) {
	font-family: var(--code-font, Consolas, Monaco, monospace);
	font-size: 0.88em;
	font-weight: 600;
	color: #0C6E85;
	background-color: rgba(18, 168, 195, 0.08);
	border: 1px solid rgba(18, 168, 195, 0.18);
	border-radius: 4px;
	padding: 1px 5px;
	text-shadow: none;
	overflow-wrap: anywhere;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Elementos com contorno no estilo quadrinho: o fundo termina na borda (padding-box).
   Sem isso, em elementos girados/deslocados o antialiasing deixa vazar um filete do
   fundo (branco) entre o contorno escuro e a sombra sólida. */
.div-menu a,
.article-menu .icon-search,
.article-menu input,
.article-item,
.article-item .badge-new,
.div-article-pager div,
.empty-panel,
.empty-tech,
.comment-avatar,
.comment-bubble,
.div-form-comment:not(:empty),
.div-form-item-comment:not(:empty),
.div-article-comments fieldset,
.div-article-comments .button,
.div-article-comments #h-count-comments i,
.div-form-comment h4::before,
.copyright-bugs,
.footer-top {
	background-clip: padding-box;
}

@media screen and (max-width: 980px) {
	.article-title {
		width: 100%;
		font-size: 23px;
		line-height: 30px;
		padding: 0 3%;
		box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
	}

	.line-page,
	.article-content,
	.article-description,
	.div-article-comments {
		width: 100%;
		padding: 0 3%;
		font-size: 15px;
		box-sizing: border-box;
		-webkit-box-sizing: border-box;
		-moz-box-sizing: border-box;
	}

	.header-article {
		width: 100%;
		grid-template-columns: 1fr;
	}

	.article-logotipo-top {
		text-align: center;
	}

	/* Menu e busca continuam visíveis no celular, centralizados abaixo do logo */
	.article-menu {
		align-items: center;
		gap: 14px;
		padding: 4px 16px 22px 16px;
	}

	.div-menu {
		justify-content: center;
		gap: 10px;
	}

	.div-menu a {
		font-size: 19px;
		line-height: 22px;
		padding: 4px 10px 2px 10px;
	}

	#div-input-search.open {
		width: min(320px, calc(100vw - 100px));
	}

	.article-main-title {
		font-size: 30px;
		line-height: 36px;
		padding: 22px 16px 18px 16px;
	}

	.aside-main-article {
		min-height: 0;
	}

	.aside-article {
		height: 100%;
		padding-bottom: 35px;
	}

	.div-article-comments .div-two-input {
		grid-template-columns: 1fr;
	}

	.div-article-comments .button {
		width: 100%;
		justify-content: center;
	}

	.div-article-comments .div-button-send {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.div-article-comments .comment-hint {
		justify-content: center;
	}

	.div-form-comment:not(:empty),
	.div-form-item-comment:not(:empty) {
		padding: 22px 18px 20px 18px;
	}

	.div-form-comment h4 {
		font-size: 26px;
	}

	.div-item-comment {
		grid-template-columns: 38px minmax(0, 1fr);
		grid-column-gap: 12px;
	}

	.comment-avatar,
	.span-item-comment .comment-avatar {
		width: 38px;
		height: 38px;
		font-size: 17px;
		line-height: 35px;
	}

	.comment-bubble {
		padding: 12px 14px 8px 14px;
	}

	.span-item-comment:not(:empty) {
		padding-left: 10px;
	}

	.span-item-comment .div-item-comment {
		grid-template-columns: 34px minmax(0, 1fr);
		grid-column-gap: 10px;
	}

	.span-item-comment .comment-avatar {
		width: 34px;
		height: 34px;
		font-size: 15px;
		line-height: 31px;
	}

	/* Paginador: até 9 itens cabem numa linha em telas a partir de ~320px.
	   A margem de baixo repõe o respiro que o .article-content perde no mobile (padding: 0 3%). */
	.div-article-pager {
		gap: 5px;
		margin-bottom: 36px;
	}

	.div-article-pager div {
		min-width: 30px;
		height: 34px;
		padding: 0 4px;
		font-size: 17px;
		border-radius: 8px;
		box-shadow: 2px 2px 0 var(--color-outline);
	}

	.div-article-pager div:hover {
		box-shadow: 3px 3px 0 var(--color-outline);
	}

	.article-copyright {
		flex-direction: column;
		text-align: center;
		gap: 16px;
	}

	.article-empty {
		margin-top: 30px;
	}

	.empty-burst {
		left: -6px;
	}

	.empty-burst span {
		width: 120px;
		height: 88px;
		font-size: 24px;
	}

	.empty-panel {
		padding: 44px 18px 24px 18px;
	}

	.empty-title {
		font-size: 20px;
		line-height: 28px;
	}

	.article-content pre.empty-query code {
		font-size: 12px;
	}

	code[class*="language-"],
	pre[class*="language-"] {
		font-size: 13px;
		-moz-tab-size: 2;
		-o-tab-size: 2;
		tab-size: 2;
	}

	pre[class*="language-"] {
		padding-left: 14px;
		padding-right: 14px;
		border-radius: 10px;
	}

	div.code-toolbar > .toolbar {
		border-radius: 8px 8px 0 0;
	}

	/* No celular o selo (explosão) fica acima do título, alinhado à esquerda */
	.article-item,
	.article-item.featured {
		grid-template-columns: 1fr;
		padding: 10px 18px 16px 18px;
	}

	.article-item > div:nth-child(1) {
		text-align: left;
	}

	.article-item .icon-technology,
	.article-item.featured .icon-technology {
		width: 100px;
		height: 79px;
		margin: 0 0 2px -8px;
		font-size: 30px;
	}

	.article-item .mysql,
	.article-item .react,
	.article-item.featured .mysql,
	.article-item.featured .react {
		font-size: 27px;
	}

	.article-item .python,
	.article-item .flutter,
	.article-item.featured .python,
	.article-item.featured .flutter {
		font-size: 24px;
	}

	.article-item .title {
		font-size: 19px;
		line-height: 26px;
	}

	.article-item.featured .title {
		font-size: 22px;
		line-height: 30px;
	}

	.article-item.featured .description {
		font-size: 15px;
		line-height: 25px;
	}
}
/* ==========================================================================
   Página 404 (app/views/article/article_not_found.php): tirinha em
   quadrinhos de 3 painéis + saídas e últimos artigos
   ========================================================================== */

.nf-page {
	padding: 40px 0 50px 0;
}

.nf-strip {
	display: grid;
	grid-template-columns: 1fr 1.15fr 1fr;
	gap: 18px;
	align-items: stretch;
}

/* Quadro: contorno grosso, sombra sólida e leve inclinação, como página de gibi */
.nf-panel {
	position: relative;
	min-height: 300px;
	padding: 52px 18px 20px 18px;
	background-color: #FFFFFF;
	border: 3px solid var(--color-outline);
	border-radius: 6px;
	box-shadow: 6px 6px 0 rgba(30, 38, 51, 0.18);
	box-sizing: border-box;
	overflow: hidden;
	animation: nf-panel-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.nf-panel-one {
	transform: rotate(-1deg);
}

.nf-panel-two {
	transform: rotate(0.6deg);
	padding-top: 20px;
	/* Retícula de pontos atrás do personagem */
	background-image: radial-gradient(rgba(219, 69, 81, 0.18) 2px, transparent 2.2px);
	background-size: 12px 12px;
	background-color: #FFF4D6;
	animation-delay: 0.15s;
}

.nf-panel-three {
	transform: rotate(-0.6deg);
	animation-delay: 0.3s;
}

@keyframes nf-panel-in {
	0% { opacity: 0; translate: 0 18px; }
	100% { opacity: 1; translate: 0 0; }
}

/* Recordatório amarelo no canto do quadro */
.nf-caption {
	position: absolute;
	top: -3px;
	left: -3px;
	margin: 0;
	padding: 6px 14px 4px 14px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: 1px;
	color: var(--color-title);
	background-color: #FFCB6B;
	border: 3px solid var(--color-outline);
	border-radius: 6px 0 6px 0;
}

/* Terminal e console (mesmas cores do estado vazio da busca) */
.nf-terminal {
	margin: 0;
	padding: 14px 16px;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
	background-color: #1E2633;
	border: 2px solid var(--color-outline);
	border-radius: 10px;
}

.article-content pre.nf-terminal code {
	font-family: 'JetBrains Mono', Consolas, monospace;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.7;
	color: #D6DEEB;
	background: none;
	border: none;
	padding: 0;
}

.nf-prompt { color: #C792EA; font-weight: 600; }
.nf-status { color: #F07178; font-weight: 600; }
.nf-key { color: #82AAFF; }
.nf-error { color: #F07178; font-weight: 600; }

.nf-cursor {
	color: #82AAFF;
	animation: empty-blink 1s steps(1) infinite;
}

/* Painel 2: explosão "404!", balão de fala e o dev assustado */
.nf-burst {
	position: absolute;
	top: 10px;
	right: 6px;
	z-index: 2;
	transform: rotate(12deg);
	animation: nf-boom 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
	filter: drop-shadow(2px 0 0 var(--color-outline)) drop-shadow(-2px 0 0 var(--color-outline)) drop-shadow(0 2px 0 var(--color-outline)) drop-shadow(0 -2px 0 var(--color-outline)) drop-shadow(4px 4px 0 rgba(30, 38, 51, 0.25));
}

.nf-burst span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 120px;
	height: 96px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 34px;
	letter-spacing: 1px;
	color: #FFFFFF;
	background-color: #db4551;
	text-shadow: 2px 2px 0 var(--color-outline);
	clip-path: polygon(50% 0%, 59% 22%, 80% 6%, 76% 30%, 100% 26%, 84% 46%, 100% 62%, 76% 66%, 86% 92%, 62% 78%, 52% 100%, 42% 78%, 18% 94%, 24% 68%, 0% 70%, 14% 50%, 0% 30%, 24% 32%, 18% 6%, 40% 22%);
}

@keyframes nf-boom {
	0% { opacity: 0; transform: rotate(-30deg) scale(0.2); }
	100% { opacity: 1; transform: rotate(12deg) scale(1); }
}

.nf-balloon {
	position: relative;
	z-index: 2;
	max-width: 62%;
	padding: 10px 14px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 19px;
	line-height: 22px;
	letter-spacing: 0.5px;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 3px solid var(--color-outline);
	border-radius: 50% / 40%;
	text-align: center;
}

/* Rabicho do balão apontando para o personagem */
.nf-balloon::after {
	content: "";
	position: absolute;
	bottom: -12px;
	left: 58%;
	width: 18px;
	height: 18px;
	background-color: #FFFFFF;
	border-right: 3px solid var(--color-outline);
	border-bottom: 3px solid var(--color-outline);
	transform: skewX(-25deg) rotate(35deg);
}

.nf-dev {
	display: block;
	width: 78%;
	max-width: 240px;
	margin: 18px auto 0 auto;
	overflow: visible;
	animation: nf-shake 2.4s ease-in-out 1s infinite;
}

.nf-sweat {
	animation: nf-drip 2.4s ease-in 1s infinite;
}

@keyframes nf-shake {
	0%, 80%, 100% { transform: translateX(0); }
	84% { transform: translateX(-4px) rotate(-1deg); }
	88% { transform: translateX(4px) rotate(1deg); }
	92% { transform: translateX(-3px); }
	96% { transform: translateX(2px); }
}

@keyframes nf-drip {
	0%, 60% { transform: translateY(0); opacity: 1; }
	100% { transform: translateY(26px); opacity: 0; }
}

.nf-sfx {
	position: absolute;
	left: 10px;
	bottom: 4px;
	margin: 0;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 30px;
	letter-spacing: 2px;
	color: #FFCB6B;
	-webkit-text-stroke: 1.5px var(--color-outline);
	text-shadow: 3px 3px 0 var(--color-outline);
	transform: rotate(-8deg);
}

/* Painel 3: balão de pensamento */
.nf-thought {
	position: relative;
	margin: 30px 0 8px auto;
	max-width: 85%;
	padding: 12px 16px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 19px;
	line-height: 23px;
	letter-spacing: 0.5px;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 3px dashed var(--color-outline);
	border-radius: 50%;
	text-align: center;
}

.nf-thought strong {
	color: #db4551;
	font-weight: 400;
}

/* Bolinhas do pensamento */
.nf-thought::before,
.nf-thought::after {
	content: "";
	position: absolute;
	background-color: #FFFFFF;
	border: 3px solid var(--color-outline);
	border-radius: 50%;
}

.nf-thought::before {
	width: 14px;
	height: 14px;
	top: -20px;
	left: 26%;
}

.nf-thought::after {
	width: 8px;
	height: 8px;
	top: -34px;
	left: 20%;
}

/* "Continua no próximo episódio...": saídas */
.nf-next {
	position: relative;
	margin: 44px auto 0 auto;
	padding: 46px 30px 30px 30px;
	background-color: #FFFFFF;
	border: 3px solid var(--color-outline);
	border-radius: 6px;
	box-shadow: 6px 6px 0 rgba(30, 38, 51, 0.12);
	text-align: center;
}

.nf-caption-next {
	left: 50%;
	transform: translateX(-50%) rotate(-1.5deg);
	top: -18px;
	border-radius: 6px;
	white-space: nowrap;
}

.nf-text {
	margin: 0 0 18px 0;
	font-size: 15px;
	line-height: 24px;
	color: var(--color-text);
}

.nf-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
}

/* Etiquetas-adesivo, como os filtros do menu */
.nf-sticker {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 19px;
	line-height: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-title);
	background-color: #FFFFFF;
	border: 2px solid var(--color-outline);
	border-radius: 10px;
	padding: 7px 14px 5px 14px;
	box-shadow: 3px 3px 0 var(--color-outline);
	transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.3s ease, color 0.3s ease;
}

.nf-sticker:nth-child(odd) {
	transform: rotate(-2deg);
}

.nf-sticker:nth-child(even) {
	transform: rotate(1.5deg);
}

.nf-sticker .material-symbols-outlined {
	font-size: 20px;
}

.nf-sticker:hover,
.nf-sticker:focus-visible {
	color: #FFFFFF;
	background-color: #12A8C3;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	transform: translate(-2px, -2px) rotate(0deg);
	box-shadow: 5px 5px 0 var(--color-outline);
}

.nf-latest-title {
	margin: 30px 0 14px 0;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 22px;
	letter-spacing: 1px;
	color: var(--color-title);
}

.nf-latest {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	text-align: left;
}

.nf-card {
	--tech-color: #12A8C3;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 14px 16px;
	background-color: #F7F8FB;
	border: 2px solid var(--color-outline);
	border-left: 8px solid var(--tech-color);
	border-radius: 8px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nf-card[data-technology="html"] { --tech-color: #D13076; }
.nf-card[data-technology="css"] { --tech-color: #0AC5D4; }
.nf-card[data-technology="js"] { --tech-color: #EF562D; }
.nf-card[data-technology="node"] { --tech-color: #5FA04E; }
.nf-card[data-technology="php"] { --tech-color: #5587A2; }
.nf-card[data-technology="mysql"] { --tech-color: #5C7148; }
.nf-card[data-technology="python"] { --tech-color: #D1AF94; }
.nf-card[data-technology="react"] { --tech-color: #88B14B; }

.nf-card:hover,
.nf-card:focus-visible {
	transform: translate(-2px, -2px);
	box-shadow: 4px 4px 0 var(--color-outline);
}

.nf-card-tech {
	align-self: flex-start;
	font-family: 'Bangers', Verdana, Arial;
	font-size: 15px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #FFFFFF;
	background-color: var(--tech-color);
	border-radius: 6px;
	padding: 2px 8px 0 8px;
}

.nf-card-title {
	font-family: 'Montserrat', Arial;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	color: var(--color-text);
}

@media screen and (max-width: 980px) {
	.nf-page {
		padding: 30px 3% 40px 3%;
	}

	.nf-strip,
	.nf-latest {
		grid-template-columns: 1fr;
	}

	.nf-panel {
		min-height: 0;
	}

	.nf-panel-two {
		min-height: 330px;
	}

	.nf-next {
		padding: 46px 18px 24px 18px;
	}

	.nf-caption-next {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nf-panel,
	.nf-burst,
	.nf-dev,
	.nf-sweat,
	.nf-cursor {
		animation: none;
	}
}

/* Painel 1: o servidor triste respondendo */
.nf-panel-one {
	display: flex;
	flex-direction: column;
}

.nf-server-scene {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: auto;
	padding-top: 16px;
}

.nf-balloon-server {
	max-width: 88%;
	font-size: 17px;
	line-height: 20px;
	margin-bottom: 18px;
}

.nf-balloon-server::after {
	left: 46%;
}

.nf-server {
	display: block;
	width: 96px;
}

.nf-led {
	animation: empty-blink 0.8s steps(1) infinite;
}

/* Console do painel 3: linhas curtas, sem quebrar no meio */
.article-content pre.nf-console code {
	font-size: 12px;
}

@media (prefers-reduced-motion: reduce) {
	.nf-led {
		animation: none;
	}
}
