/*
Theme Name: Desqualificados
Theme URI: https://desqualificados.com.br
Author: Vini ABT
Description: Tema de notícias nerd, geek e gamer com a identidade do canal Desqualificados: facetas violeta, o círculo dividido do logo e leitura confortável para opinião. Compatível com o editor de blocos (Gutenberg).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: desqualificados
Tags: blog, news, dark, custom-logo, custom-menu, featured-images, threaded-comments, block-styles, wide-blocks
*/

/* ------------------------------------------------------------------
   Tokens
------------------------------------------------------------------ */
:root {
	--noite: #130A25;
	--violeta: #27104A;
	--ametista: #3A2268;
	--lavanda: #8A78B2;
	--lavanda-clara: #B7A9DE;
	--nevoa: #CFC6E6;
	--branco: #FFFFFF;
	--preto: #000000;

	--display: 'Quicksand', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
	--leitura: 'Source Serif 4', 'Iowan Old Style', Georgia, serif;

	--wrap: 1200px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--raio: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--noite);
	color: var(--nevoa);
	font-family: var(--display);
	font-size: 1rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--lavanda-clara); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--branco); }
:focus-visible { outline: 3px solid var(--lavanda-clara); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.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: 1rem; top: -4rem; z-index: 100;
	background: var(--branco); color: var(--noite); padding: .6rem 1rem; border-radius: var(--raio);
	font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------
   Facetas (o fundo low-poly)
------------------------------------------------------------------ */
.desq-facets { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* ------------------------------------------------------------------
   Cabeçalho
------------------------------------------------------------------ */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(19, 10, 37, .94);
	border-bottom: 1px solid rgba(138, 120, 178, .25);
	backdrop-filter: blur(8px);
}
.site-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--branco); flex-shrink: 0; }
.brand__img, .brand__mark { width: 44px; height: 44px; border-radius: 50%; }
.brand__name {
	font-weight: 500; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; /* o wordmark do canal é em caixa alta */
}
.brand:hover .brand__name { color: var(--lavanda-clara); }

.nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.nav__list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.nav__list a {
	display: block; padding: .5rem .75rem; border-radius: var(--raio);
	color: var(--nevoa); text-decoration: none; font-weight: 600; font-size: .98rem;
}
.nav__list a:hover,
.nav__list .current-menu-item > a,
.nav__list .current-cat > a { color: var(--branco); background: var(--violeta); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 0; }

.search { display: flex; align-items: center; }
.search__input {
	width: 13rem; padding: .55rem .9rem; border: 1px solid rgba(138, 120, 178, .45);
	border-radius: 999px 0 0 999px; background: var(--violeta); color: var(--branco);
	font: inherit; font-size: .92rem;
}
.search__input::placeholder { color: var(--lavanda); }
.search__btn {
	padding: .55rem .9rem; border: 1px solid var(--lavanda); border-left: 0;
	border-radius: 0 999px 999px 0; background: var(--lavanda); color: var(--preto);
	font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer;
}
.search__btn:hover { background: var(--lavanda-clara); }

.nav-toggle { display: none; }

@media (max-width: 960px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--ametista);
		border-radius: var(--raio); background: transparent; cursor: pointer;
	}
	.nav-toggle__bars,
	.nav-toggle__bars::before,
	.nav-toggle__bars::after { display: block; width: 20px; height: 2px; background: var(--branco); position: relative; content: ''; }
	.nav-toggle__bars::before { position: absolute; top: -6px; }
	.nav-toggle__bars::after { position: absolute; top: 6px; }

	.nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 1rem;
		padding: 1rem var(--gutter) 1.5rem; background: var(--noite);
		border-bottom: 1px solid var(--ametista);
	}
	.nav.is-open { display: flex; }
	.nav__list { flex-direction: column; }
	.search__input { width: 100%; }
	.search { width: 100%; }
}

/* ------------------------------------------------------------------
   Divisor linha — círculo — linha (vem do banner)
------------------------------------------------------------------ */
.desq-divider { display: flex; align-items: center; gap: .9rem; }
.desq-divider__line { flex: 1; height: 4px; background: var(--branco); border-radius: 2px; }
.desq-divider__mark { width: 26px; height: 26px; flex-shrink: 0; }
.desq-divider-wrap { margin: 3rem 0 1.5rem; }
.desq-divider-wrap .desq-divider__line:first-child { flex: 0 0 2.5rem; }
.desq-divider__label {
	margin: .9rem 0 0; font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--branco); letter-spacing: -.01em;
}

/* ------------------------------------------------------------------
   Etiquetas e botões
------------------------------------------------------------------ */
.tag {
	display: inline-block; padding: .2rem .65rem; border-radius: 999px;
	background: var(--violeta); color: var(--lavanda-clara);
	font-size: .82rem; font-weight: 700; text-decoration: none; border: 1px solid var(--ametista);
}
.tag:hover { color: var(--branco); border-color: var(--lavanda); }
.tag--light { background: var(--lavanda); color: var(--preto); border-color: var(--lavanda); }
.tag--light:hover { background: var(--branco); color: var(--preto); }

.btn {
	display: inline-block; padding: .8rem 1.4rem; border: 0; border-radius: 999px;
	background: var(--branco); color: var(--preto); font-family: var(--display);
	font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--lavanda-clara); color: var(--preto); }

.meta { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .88rem; color: var(--lavanda-clara); }
.meta strong { color: var(--branco); font-weight: 700; }

/* ------------------------------------------------------------------
   Destaque (hero)
------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--ametista); }
.hero__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem);
	padding-block: clamp(3rem, 7vw, 5.5rem);
	align-items: center;
}
.hero__post { max-width: 44rem; }
.hero__title {
	margin: 1rem 0 .9rem; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.06;
	font-weight: 700; letter-spacing: -.02em; color: var(--branco);
	text-wrap: balance;
}
.hero__title a { color: inherit; text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-color: var(--lavanda); text-decoration-thickness: 3px; }
.hero__excerpt { font-family: var(--leitura); font-size: 1.15rem; line-height: 1.6; color: var(--nevoa); margin: 0 0 1.25rem; max-width: 38rem; }
.hero__post .meta { margin-bottom: 1.75rem; }

.hero__agenda { position: relative; padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.hero__agenda::before { /* a barra vertical lavanda do banner */
	content: ''; position: absolute; left: 0; top: .25rem; bottom: .25rem; width: 4px; border-radius: 2px; background: var(--lavanda);
}
.hero__agenda-title { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: var(--branco); }

/* Agenda (lista de datas) */
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.agenda__item { display: grid; grid-template-columns: 3.2rem 1fr; gap: .9rem; align-items: center; }
.agenda__date {
	display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border-radius: 50%;
	background: var(--branco); color: var(--preto); line-height: 1; border: 3px solid var(--preto);
	box-shadow: 0 0 0 2px var(--lavanda);
}
.agenda__day { font-weight: 700; font-size: 1.1rem; margin-top: .35rem; }
.agenda__month { font-size: .72rem; font-weight: 600; margin-bottom: .35rem; }
.agenda__info { display: grid; gap: .1rem; min-width: 0; }
.agenda__title { color: var(--branco); font-weight: 700; font-size: .98rem; line-height: 1.25; }
.agenda__platform { color: var(--lavanda-clara); font-size: .82rem; }

/* ------------------------------------------------------------------
   Layout lista + lateral
------------------------------------------------------------------ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: 4rem; }
.layout--entry { padding-top: 2.5rem; }
@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; }
	.hero__inner { grid-template-columns: 1fr; }
}

.rows { display: grid; gap: 0; }
.row {
	display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: clamp(1rem, 3vw, 1.75rem);
	padding: 1.5rem 0; border-top: 1px solid rgba(138, 120, 178, .22);
}
.rows > .row:first-child { border-top: 0; padding-top: 0; }
.row__media { display: block; }
.row__title { margin: .6rem 0 .45rem; font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.row__title a { color: var(--branco); text-decoration: none; }
.row__title a:hover { color: var(--lavanda-clara); }
.row__excerpt { margin: 0 0 .75rem; font-family: var(--leitura); font-size: 1.02rem; line-height: 1.55; color: var(--nevoa); }
@media (max-width: 600px) {
	.row { grid-template-columns: 1fr; }
}
.rows--compact .row__excerpt { display: none; }

/* Capa: imagem real ou a gerada */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--raio); background: var(--violeta); }
.cover__img { width: 100%; height: 100%; object-fit: cover; }
.cover__credit {
	position: absolute; right: .4rem; bottom: .4rem; padding: .1rem .45rem; border-radius: 3px;
	background: rgba(0, 0, 0, .7); color: var(--nevoa); font-size: .68rem;
}
.cover--gerada .cover__mark { position: absolute; left: 50%; top: 50%; width: 22%; height: auto; transform: translate(-50%, -50%); z-index: 1; }
.cover--gerada .cover__tag {
	position: absolute; left: .75rem; bottom: .7rem; z-index: 1; color: var(--branco);
	font-weight: 700; font-size: .85rem; padding-left: .6rem; border-left: 3px solid var(--lavanda);
}

/* Lateral */
.sidebar { display: grid; gap: 2rem; align-content: start; }
.side-box { background: var(--violeta); border: 1px solid var(--ametista); border-radius: var(--raio); padding: 1.4rem; }
.side-box__title { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 700; color: var(--branco); }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-cats li { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid var(--ametista); }
.side-cats li:first-child { border-top: 0; }
.side-cats a { color: var(--nevoa); text-decoration: none; font-weight: 600; }
.side-cats a:hover { color: var(--branco); }
.side-box .search__input { width: 100%; }
.side-box .search { width: 100%; }

/* Paginação */
.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers {
	display: inline-block; min-width: 2.6rem; padding: .55rem .9rem; text-align: center;
	border: 1px solid var(--ametista); border-radius: 999px; color: var(--nevoa); text-decoration: none; font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--lavanda); border-color: var(--lavanda); color: var(--preto); }

/* ------------------------------------------------------------------
   Faixa de título (arquivos, busca, páginas, 404)
------------------------------------------------------------------ */
.band { position: relative; overflow: hidden; border-bottom: 1px solid var(--ametista); margin-bottom: 2.5rem; }
.band__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4rem); }
.band--tall .band__inner { padding-block: clamp(4rem, 10vw, 7rem); display: grid; gap: 1.25rem; justify-items: start; }
.band__title { margin: 0; color: var(--branco); font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.08; letter-spacing: -.02em; }
.band__desc { max-width: 40rem; margin-top: .75rem; font-family: var(--leitura); font-size: 1.1rem; }
.band__desc p { margin: 0; }
.band__code { margin: 0; font-size: clamp(4rem, 12vw, 8rem); font-weight: 700; line-height: 1; color: var(--lavanda); }
.band .search { margin-top: 1.25rem; max-width: 28rem; }
.band .search__input { width: 100%; }

.empty { padding-block: 3rem; }
.empty__title { color: var(--branco); }

/* ------------------------------------------------------------------
   Post
------------------------------------------------------------------ */
.entry__head { position: relative; overflow: hidden; border-bottom: 1px solid var(--ametista); }
.entry__head-inner { position: relative; z-index: 1; padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 5vw, 3rem); max-width: 60rem; margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.entry__title {
	margin: 1rem 0 1rem; color: var(--branco); font-size: clamp(2.1rem, 4.8vw, 3.6rem); line-height: 1.07;
	letter-spacing: -.02em; font-weight: 700; text-wrap: balance;
}
.entry__dek { margin: 0 0 1.4rem; max-width: 42rem; font-family: var(--leitura); font-size: 1.2rem; line-height: 1.55; color: var(--nevoa); }

.entry__figure { margin: 0 0 2rem; }
.entry__img { width: 100%; border-radius: var(--raio); }
.entry__credit { margin-top: .5rem; font-size: .8rem; color: var(--lavanda-clara); }

.entry__content {
	font-family: var(--leitura); font-size: 1.16rem; line-height: 1.75; color: #E6E0F3;
	max-width: 42rem;
}
.entry__content > * { margin-block: 0 1.3em; }
.entry__content h2, .entry__content h3, .entry__content h4 {
	font-family: var(--display); color: var(--branco); line-height: 1.2; letter-spacing: -.01em;
	margin-top: 2.2em; margin-bottom: .6em;
}
.entry__content h2 { font-size: 1.65rem; }
.entry__content h3 { font-size: 1.3rem; }
.entry__content a { color: var(--lavanda-clara); }
.entry__content strong { color: var(--branco); }
.entry__content ul, .entry__content ol { padding-left: 1.3em; }
.entry__content li { margin-bottom: .45em; }
.entry__content li::marker { color: var(--lavanda); }
.entry__content blockquote, .entry__content .wp-block-quote {
	margin-inline: 0; padding: .2em 0 .2em 1.2em; border-left: 4px solid var(--lavanda);
	font-style: italic; color: var(--branco);
}
.entry__content .wp-block-pullquote { border-top: 4px solid var(--branco); border-bottom: 4px solid var(--branco); padding: 1.5em 0; text-align: left; }
.entry__content .wp-block-pullquote blockquote { border: 0; padding: 0; font-family: var(--display); font-style: normal; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.entry__content figure { margin-inline: 0; }
.entry__content figcaption, .entry__content .wp-element-caption { font-family: var(--display); font-size: .82rem; color: var(--lavanda-clara); margin-top: .5rem; }
.entry__content img { border-radius: var(--raio); }
.entry__content hr, .entry__content .wp-block-separator { border: 0; height: 4px; background: var(--ametista); border-radius: 2px; }
.entry__content code { background: var(--violeta); padding: .1em .35em; border-radius: 3px; font-size: .9em; }
.entry__content .alignwide { max-width: none; }
.entry__content .wp-block-embed { margin-block: 2em; }

/* Caixa "Fontes" e "Veredito" — usar o estilo de grupo no editor com a classe CSS indicada */
.entry__content .fontes {
	font-family: var(--display); font-size: .92rem; line-height: 1.55; color: var(--nevoa);
	border-top: 1px solid var(--ametista); padding-top: 1.1rem; margin-top: 2.5rem;
}
.entry__content .fontes p { margin: 0 0 .4rem; }
.entry__content .veredito {
	font-family: var(--display); background: var(--violeta); border: 1px solid var(--ametista);
	border-left: 6px solid var(--lavanda); border-radius: var(--raio); padding: 1.1rem 1.3rem; color: var(--branco);
}
.entry__content .veredito p { margin: 0; }
.entry__content .rumor {
	font-family: var(--display); font-size: .95rem; border: 2px dashed var(--lavanda); border-radius: var(--raio);
	padding: .9rem 1.1rem; color: var(--nevoa);
}
.entry__content .rumor p { margin: 0; }

.entry__tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 2.5rem 0 0; }
.entry__tags a { display: inline-block; padding: .25rem .7rem; border: 1px solid var(--ametista); border-radius: 999px; color: var(--lavanda-clara); text-decoration: none; font-size: .88rem; font-weight: 600; }
.entry__tags a:hover { border-color: var(--lavanda); color: var(--branco); }

.author-box {
	display: grid; grid-template-columns: 72px 1fr; gap: 1.1rem; align-items: center;
	margin-top: 2.5rem; padding: 1.4rem; background: var(--violeta); border-radius: var(--raio); max-width: 42rem;
}
.author-box__avatar { border-radius: 50%; border: 3px solid var(--preto); box-shadow: 0 0 0 2px var(--lavanda); }
.author-box__name { margin: 0 0 .2rem; color: var(--branco); font-weight: 700; font-size: 1.1rem; }
.author-box__bio { margin: 0; font-size: .95rem; }

.related { max-width: 42rem; }

/* Comentários */
.comments { margin-top: 3rem; max-width: 42rem; }
.comments__title, .comment-reply-title { color: var(--branco); font-size: 1.4rem; }
.comments__list { list-style: none; padding: 0; }
.comments__list .children { list-style: none; padding-left: 1.5rem; border-left: 2px solid var(--ametista); }
.comment-body { padding: 1rem 0; border-top: 1px solid var(--ametista); }
.comment-author { display: flex; align-items: center; gap: .6rem; color: var(--branco); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; }
.comment-metadata a { color: var(--lavanda); }
.comment-content { font-family: var(--leitura); }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; color: var(--branco); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: .7rem .9rem; border: 1px solid var(--ametista); border-radius: var(--raio);
	background: var(--violeta); color: var(--branco); font: inherit;
}
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ------------------------------------------------------------------
   Rodapé (releitura do banner)
------------------------------------------------------------------ */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--ametista); margin-top: 2rem; }
.site-footer__inner {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: auto 4px auto; gap: clamp(1.5rem, 5vw, 4rem);
	justify-content: center; align-items: center; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-brand { display: grid; justify-items: center; gap: .6rem; }
.footer-brand__row { display: flex; align-items: center; gap: .8rem; }
.footer-brand__line { width: clamp(3rem, 12vw, 9rem); height: 5px; background: var(--branco); border-radius: 2px; }
.footer-brand__mark { width: 72px; height: 72px; }
.footer-brand__name {
	margin: 0; color: var(--branco); font-weight: 500; font-size: clamp(1.8rem, 4.5vw, 3rem);
	letter-spacing: .03em; text-transform: uppercase; /* wordmark */
}
.footer-bar { width: 4px; align-self: stretch; background: var(--lavanda); border-radius: 2px; }
.footer-side { display: grid; gap: 1.25rem; }
.footer-list { list-style: none; margin: 0; padding: 0; color: var(--branco); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.footer-list li::before { content: '- '; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.socials__link { display: inline-block; padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--lavanda); color: var(--branco); text-decoration: none; font-weight: 600; font-size: .9rem; }
.socials__link:hover { background: var(--lavanda); color: var(--preto); }
.footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; padding: 0; }
.footer-menu a { color: var(--nevoa); font-size: .9rem; }
.site-footer__copy { position: relative; z-index: 1; margin: 0 auto; padding-bottom: 2rem; font-size: .8rem; color: var(--lavanda-clara); text-align: center; }

@media (max-width: 760px) {
	.site-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.footer-bar { width: 50%; height: 4px; align-self: auto; }
	.socials, .footer-menu { justify-content: center; }
}

/* Alinhamentos padrão do WordPress */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-size: .82rem; }
.sticky .row__title a::after { content: ' (fixado)'; color: var(--lavanda); font-size: .8em; }
