/*
Theme Name: Cyber Escola Neon
Theme URI: https://blog.cyberescola.com
Author: Cyber Escola
Description: Tema escuro neon do blog Cyber Escola, no mesmo estilo da página de vendas.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: cyberescola-neon
*/

:root {
	--bg: #0B0A1A;
	--ink: #EDEBFF;
	--soft: #CFCDEA;
	--muted: #A9A6C9;
	--dim: #8F8BAE;
	--line: rgba(255,255,255,.10);
	--glass: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
	--glass-border: 1px solid rgba(255,255,255,.12);
	--glass-shadow: 0 30px 70px -16px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12);
	--grad: linear-gradient(90deg, #FF8A4C, #F0218A 40%, #B45CF0 75%, #1FC1D6);
	--grad3: linear-gradient(90deg, #FF8A4C, #F0218A, #B45CF0);
	--orange: #FF8A4C; --pink: #F0218A; --purple: #B45CF0; --cyan: #1FC1D6; --green: #8CE05A;
	--display: 'Poppins', system-ui, sans-serif;
	--ui: 'Inter', system-ui, sans-serif;
	--wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; font-family: var(--ui); font-size: 17px; line-height: 1.65; color: var(--ink);
	background:
		radial-gradient(900px 700px at 0% 0%, rgba(180,92,240,.34), transparent 60%),
		radial-gradient(800px 700px at 100% 40%, rgba(31,193,214,.16), transparent 60%),
		radial-gradient(600px 500px at 70% 0%, rgba(240,33,138,.20), transparent 60%),
		radial-gradient(900px 700px at 0% 95%, rgba(240,33,138,.12), transparent 60%),
		var(--bg);
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #C084FC; text-decoration: none; }
a:hover { color: #fff; }
::selection { background: rgba(240,33,138,.45); color: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); color: #fff; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 .6em; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; width: auto; height: auto; clip: auto; padding: 10px 16px; background: #fff; color: #15131F; border-radius: 10px; }
:focus-visible { outline: 3px solid #C084FC; outline-offset: 3px; }

.glass { background: var(--glass); border: var(--glass-border); border-radius: 26px; box-shadow: var(--glass-shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Topo ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11,10,26,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wrap { height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 32px; width: auto; }
.brand img + img { height: 27px; }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.main-nav a { position: relative; color: var(--soft); font-size: 15px; font-weight: 500; padding: 8px 0; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: #fff; }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after, .main-nav a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--grad); }
.header-tools { display: flex; align-items: center; gap: 12px; flex: none; }
.search-form { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); }
.search-form input[type=search] { background: transparent; border: 0; outline: 0; color: #fff; font: inherit; font-size: 14px; width: 170px; }
.search-form input::placeholder { color: var(--dim); }
.search-form button { background: none; border: 0; padding: 0; cursor: pointer; display: flex; }
.btn-buy, .btn-grad {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 20px; border-radius: 13px; border: 0; cursor: pointer;
	font-family: var(--display); font-weight: 700; font-size: 15px; color: #fff !important; background: var(--grad);
	box-shadow: 0 14px 34px -10px rgba(240,33,138,.6), inset 0 1px 0 rgba(255,255,255,.4); transition: transform .15s, box-shadow .15s;
}
.btn-buy:hover, .btn-grad:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(240,33,138,.75), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-grad.big { min-height: 56px; padding: 0 28px; border-radius: 16px; font-size: 16px; }
.menu-toggle { display: none; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; width: 44px; height: 44px; color: #fff; cursor: pointer; }

/* ---------- Abertura do blog ---------- */
.blog-head { padding: 64px 0 34px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.blog-head h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin: 10px 0 0; }
.blog-head p { color: var(--muted); font-size: 18px; margin: 12px 0 0; max-width: 560px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { white-space: nowrap; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--soft); }
.chip:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.chip.on { background: #fff; color: #15131F; border-color: #fff; }

/* ---------- Destaque ---------- */
.featured { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; }
.cover { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #7B2FF7, #E0228F 55%, #FF8A4C); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.placeholder img { width: auto; height: 82%; object-fit: contain; transform: rotate(-6deg); filter: drop-shadow(0 26px 34px rgba(0,0,0,.45)); }
.cover.placeholder::before, .cover.placeholder::after { content: ""; position: absolute; border-radius: 50%; }
.cover.placeholder::before { width: 240px; height: 240px; background: #1FC1D6; opacity: .45; left: -60px; top: -80px; }
.cover.placeholder::after { width: 180px; height: 180px; background: #8CE05A; opacity: .3; right: -40px; bottom: -60px; }
.featured .cover { min-height: 420px; }
.featured-body { padding: 46px; }
.featured-body h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; letter-spacing: -.8px; margin: 18px 0 0; }
.featured-body h2 a { color: #fff; }
.featured-body p { color: var(--muted); font-size: 16.5px; margin: 14px 0 0; }
.tag { display: inline-flex; height: 28px; align-items: center; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(240,33,138,.18); color: #FF8FC6; }
.tag.c1 { background: rgba(31,193,214,.15); color: #7FE7F2; }
.tag.c2 { background: rgba(255,138,76,.16); color: #FFB991; }
.tag.c3 { background: rgba(180,92,240,.18); color: #D9B5FF; }
.tag.c4 { background: rgba(140,224,90,.15); color: #B9F08F; }
.meta { display: flex; gap: 14px; align-items: center; margin-top: 24px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.meta b { color: #fff; font-weight: 600; }
.avatar-grad { width: 42px; height: 42px; border-radius: 50%; padding: 2px; background: var(--grad); flex: none; }
.avatar-grad img, .avatar-grad span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #1A1733; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 14px; color: #fff; }
.featured-body .btn-grad { margin-top: 28px; }

/* ---------- Lista + lateral ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; margin: 44px auto 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.section-title h2 { font-size: 24px; margin: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -16px rgba(240,33,138,.35), inset 0 1px 0 rgba(255,255,255,.14); }
.card .cover { height: 200px; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 19px; line-height: 1.3; margin: 12px 0 0; }
.card-body h3 a { color: #fff; }
.card-body p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 8px 0 0; }
.card-meta { display: flex; justify-content: space-between; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--dim); }
.pagination { display: flex; gap: 10px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); font-weight: 600; color: var(--soft); }
.pagination .page-numbers.current { background: linear-gradient(135deg, #F0218A, #B45CF0); border: 0; color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.box { padding: 26px; }
.box h3 { font-size: 19px; margin: 0 0 6px; }
.box p { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.author-box { text-align: center; }
.author-photo { width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; padding: 3px; background: var(--grad); }
.author-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-box h3 { margin-top: 14px; }
.drt { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; color: #C084FC; border: 1px solid rgba(192,132,252,.4); border-radius: 999px; padding: 5px 12px; }
.promo { position: relative; overflow: hidden; background: linear-gradient(150deg, rgba(255,138,76,.28), rgba(240,33,138,.28) 45%, rgba(180,92,240,.3) 75%, rgba(31,193,214,.25)); border: 1px solid rgba(255,255,255,.18); }
.promo h3 { font-size: 21px; line-height: 1.2; max-width: 190px; }
.promo p { color: #E3DFF7; max-width: 170px; }
.promo .price { font-family: var(--display); font-weight: 800; font-size: 34px; color: #fff; margin-top: 12px; }
.promo .btn-white { margin-top: 14px; display: inline-flex; min-height: 44px; padding: 0 18px; border-radius: 12px; align-items: center; background: #fff; color: #15131F !important; font-family: var(--display); font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.promo img { width: 150px; position: absolute; right: -14px; bottom: -12px; transform: rotate(8deg); filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.cats ul { list-style: none; margin: 10px 0 0; padding: 0; }
.cats li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.07); font-size: 15px; }
.cats li:last-child { border-bottom: 0; }
.cats a { color: var(--soft); }
.cats a:hover { color: #fff; }
.cats span { color: var(--dim); }

/* ---------- Artigo ---------- */
.single-head { max-width: 860px; margin: 56px auto 0; text-align: center; }
.single-head h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; margin: 16px 0 0; }
.single-head .lead { color: var(--soft); font-size: 19px; margin: 16px auto 0; max-width: 680px; }
.single-head .meta { justify-content: center; }
.single-cover { max-width: 1040px; margin: 36px auto 0; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 7; }
.single-cover.placeholder { display: flex; }
.article-layout { max-width: 1160px; margin: 44px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article-layout .sidebar { position: sticky; top: 110px; }
.entry { padding: 44px 48px; }
.entry-content { font-size: 18px; line-height: 1.8; color: var(--soft); }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 28px; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; margin-top: 1.4em; }
.entry-content a { color: #FF8FC6; text-decoration: underline; text-decoration-color: rgba(240,33,138,.5); text-underline-offset: 3px; }
.entry-content strong { color: #fff; }
.entry-content mark { background: rgba(240,33,138,.25); color: #fff; border-radius: 4px; padding: 0 4px; }
.entry-content blockquote { margin: 1.6em 0; padding: 20px 24px; border-radius: 18px; background: rgba(180,92,240,.12); border: 1px solid rgba(192,132,252,.3); font-family: var(--display); font-size: 20px; color: #fff; }
.entry-content blockquote cite { display: block; margin-top: 8px; font-family: var(--ui); font-size: 14px; color: var(--muted); font-style: normal; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .4em; }
.entry-content ul li::marker { color: var(--pink); }
.entry-content img, .entry-content .wp-block-image img { border-radius: 18px; }
.entry-content figcaption { color: var(--dim); font-size: 14px; text-align: center; margin-top: 8px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: left; }
.entry-content th { color: #fff; font-family: var(--display); }
.entry-content code { background: rgba(255,255,255,.08); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.entry-content pre { background: rgba(0,0,0,.35); padding: 18px; border-radius: 14px; overflow-x: auto; }
.entry-content hr { border: 0; height: 2px; background: var(--grad); border-radius: 2px; opacity: .6; }
.entry-content .wp-block-embed iframe, .entry-content iframe { width: 100%; border-radius: 18px; }

/* Blocos do tema */
.entry-content .is-style-dica, .entry-content .ce-dica { padding: 18px 22px; border-radius: 18px; background: linear-gradient(135deg, rgba(31,193,214,.14), rgba(180,92,240,.12)); border: 1px solid rgba(31,193,214,.35); color: #E3DFF7; }
.entry-content .is-style-dica > :first-child { margin-top: 0; }
.entry-content .is-style-dica strong:first-child { color: #7FE7F2; font-family: var(--display); }
.entry-content .is-style-neon .wp-block-button__link, .entry-content .wp-block-button.is-style-neon .wp-block-button__link {
	background: var(--grad) !important; color: #fff !important; border-radius: 16px; padding: 16px 28px; font-family: var(--display); font-weight: 700; text-decoration: none;
	box-shadow: 0 18px 40px -10px rgba(240,33,138,.6), inset 0 1px 0 rgba(255,255,255,.4);
}
.entry-content .wp-block-button__link { border-radius: 14px; text-decoration: none; }
.ce-compra { margin: 2em 0; padding: 28px; border-radius: 22px; display: flex; gap: 24px; align-items: center; background: linear-gradient(150deg, rgba(255,138,76,.22), rgba(240,33,138,.22) 45%, rgba(180,92,240,.24) 75%, rgba(31,193,214,.2)); border: 1px solid rgba(255,255,255,.18); }
.ce-compra h3 { margin: 0; font-size: 22px; }
.ce-compra p { margin: 6px 0 0 !important; color: #E3DFF7; font-size: 15px; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); }
.post-tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.14); color: var(--soft); text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.post-nav a { display: block; padding: 20px 22px; color: #fff; font-family: var(--display); font-weight: 600; }
.post-nav small { display: block; font-family: var(--ui); color: var(--dim); font-weight: 500; margin-bottom: 4px; }
.post-nav .next { text-align: right; }

/* Comentários */
.comments { margin-top: 30px; padding: 32px 36px; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment { padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.comment-author { font-weight: 600; color: #fff; }
.comment-meta a { color: var(--dim); font-size: 13px; }
.comment-respond label { display: block; font-size: 13px; color: var(--soft); margin-bottom: 6px; font-weight: 600; }
.comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url], .comment-respond textarea {
	width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(10,9,24,.65); border: 1px solid rgba(255,255,255,.12); color: #fff; font: inherit;
}
.comment-respond textarea:focus, .comment-respond input:focus { border-color: #B45CF0; box-shadow: 0 0 0 4px rgba(180,92,240,.2); outline: 0; }
.comment-respond .submit { margin-top: 10px; }

/* Página simples (Sobre, Contato) */
.page-wrap { max-width: 900px; margin: 56px auto 0; }
.page-wrap .entry { padding: 48px; }
.page-wrap h1 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -1.5px; }

/* 404 */
.notfound { text-align: center; padding: 100px 20px; }
.notfound .big { font-family: var(--display); font-size: 120px; font-weight: 800; line-height: 1; }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: 90px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.site-footer .wrap { padding: 40px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--dim); }
.site-footer ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.site-footer a { color: var(--soft); }

/* ---------- Celular ---------- */
@media (max-width: 1020px) {
	.layout, .article-layout { grid-template-columns: 1fr; }
	.article-layout .sidebar { position: static; }
	.featured { grid-template-columns: 1fr; }
	.featured .cover { min-height: 260px; }
	.search-form { display: none; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.site-header .wrap { height: 68px; gap: 12px; }
	.brand img { height: 26px; } .brand img + img { height: 22px; }
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
	.main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(11,10,26,.97); border-bottom: 1px solid rgba(255,255,255,.08); padding: 14px 20px 20px; }
	.main-nav.open { display: block; }
	.main-nav ul { flex-direction: column; gap: 6px; }
	.main-nav a { display: block; padding: 10px 0; font-size: 17px; }
	.header-tools .btn-buy { padding: 0 14px; font-size: 14px; }
	.grid { grid-template-columns: 1fr; }
	.featured-body, .entry, .page-wrap .entry { padding: 28px 22px; }
	.entry-content { font-size: 17px; }
	.ce-compra { flex-direction: column; align-items: flex-start; }
	.post-nav { grid-template-columns: 1fr; }
	.blog-head { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
