/*
Theme Name: FASYNC
Theme URI: https://fasync.fyi
Author: Felipe
Description: Hub de conteúdo FASYNC — "A fita não para". Grafite, laranja e fita cassete.
Version: 2.0.1
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: fasync
*/

:root {
	--fx-bg: #18181B;
	--fx-bg-2: #111113;
	--fx-card: #1F1F23;
	--fx-card-2: #26262B;
	--fx-line: #2E2E33;
	--fx-line-2: #3F3F46;
	--fx-muted: #52525B;
	--fx-subtle: #A1A1AA;
	--fx-light: #F4F4F5;
	--fx-accent: #FF8A3D;
	--fx-yellow: #FFC23D;
	--fx-red: #E5484D;
	--fx-tape: #8A5A34;
	--fx-font: "Schibsted Grotesk", system-ui, sans-serif;
	--fx-mono: "JetBrains Mono", ui-monospace, monospace;
	--fx-r: 16px;
	--fx-max: 1240px;
}

body { margin: 0; background: var(--fx-bg); color: var(--fx-light); font-family: var(--fx-font); -webkit-font-smoothing: antialiased; }
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > * + * { margin-block-start: 0; }
::selection { background: var(--fx-accent); color: var(--fx-bg); }
a { color: var(--fx-accent); }
img { max-width: 100%; height: auto; }

.fx-wrap { box-sizing: border-box; width: 100%; max-width: var(--fx-max); margin-left: auto; margin-right: auto; padding-left: clamp(16px, 4vw, 40px); padding-right: clamp(16px, 4vw, 40px); }

/* ---------- Marca ---------- */
.fx-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fx-light); }
.fx-face { width: 46px; height: 46px; flex: none; }
.fx-reel { animation: fx-spin 7s linear infinite; }
.fx-brand:hover .fx-reel { animation-duration: .8s; }
@keyframes fx-spin { to { transform: rotate(360deg); } }
.fx-mark { display: inline-flex; align-items: center; font-weight: 800; font-size: 2rem; letter-spacing: -.04em; line-height: 1; white-space: nowrap; }
.fx-fas { color: var(--fx-light); }
.fx-ync { color: var(--fx-accent); }
.fx-sep { display: inline-block; width: 2px; height: 1.15em; margin: 0 .14em; background: var(--fx-accent); opacity: .85; }
.fx-tld { font-family: var(--fx-mono); font-weight: 500; font-size: .5em; letter-spacing: 0; color: var(--fx-subtle); margin-left: .35em; align-self: flex-end; }
.fx-brand-sm .fx-mark { font-size: 1.4rem; }
.fx-brand-sm .fx-sep { display: none; }

/* ---------- Comuns ---------- */
.fx-label { font-family: var(--fx-mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-subtle); margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.fx-label b { color: var(--fx-accent); font-weight: 700; }
.fx-rec { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-red); animation: fx-blink 1.2s steps(1) infinite; flex: none; }
@keyframes fx-blink { 50% { opacity: .2; } }
.fx-kicker { font-family: var(--fx-mono); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fx-accent); }
.fx-meta { font-size: .85rem; color: var(--fx-subtle); }
.fx-h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.035em; margin: 0 0 1.5rem; }
.fx-display { font-size: clamp(2.6rem, 7vw, 4.4rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin: .5rem 0 0; }
.fx-ic { width: 1em; height: 1em; flex: none; }

.fx-btn { display: inline-flex; align-items: center; gap: .55rem; height: 46px; padding: 0 1.3rem; border-radius: 999px; border: 1px solid var(--fx-accent); background: var(--fx-accent); color: #18181B !important; font: 700 1rem/1 var(--fx-font); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, color .15s; }
.fx-btn:hover { transform: translateY(-1px); background: #FF9D5C; }
.fx-btn .fx-ic { width: .8em; height: .8em; }
.fx-btn-ghost { background: transparent; border-color: var(--fx-line-2); color: var(--fx-light) !important; }
.fx-btn-ghost .fx-ic { color: var(--fx-accent); }
.fx-btn-ghost:hover { background: var(--fx-card); border-color: var(--fx-subtle); }
.fx-mono { font-family: var(--fx-mono); }

/* ---------- Cabeçalho ---------- */
.fx-header { background: var(--fx-bg); position: relative; z-index: 20; }
.fx-header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.4rem; padding-bottom: 1.1rem; }
.fx-header-cta { display: flex; gap: .7rem; }
.fx-tabs { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; position: relative; }
.fx-tabs::after { content: ""; position: absolute; left: clamp(16px, 4vw, 40px); right: clamp(16px, 4vw, 40px); bottom: 0; height: 1px; background: var(--fx-line); }
.fx-tabs::-webkit-scrollbar { display: none; }
.fx-tab { position: relative; z-index: 1; flex: none; padding: .75rem 1rem 1rem; color: var(--fx-subtle); text-decoration: none; font-size: 1.05rem; font-weight: 600; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.fx-tab:first-child { padding-left: 1rem; }
.fx-tab:hover { color: var(--fx-light); }
.fx-tab.is-active { color: var(--fx-light); border-bottom-color: var(--fx-accent); }
@media (max-width: 640px) {
	.fx-header-cta .fx-btn-ghost { display: none; }
	.fx-mark { font-size: 1.6rem; }
	.fx-face { width: 38px; height: 38px; }
	.fx-btn { height: 40px; padding: 0 1rem; font-size: .92rem; }
}

/* ---------- Rodapé ---------- */
.fx-footer { border-top: 1px solid var(--fx-line); margin-top: 4rem; }
.fx-footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 2.2rem; padding-bottom: 2.6rem; }

/* ---------- Páginas internas (posts, arquivo, busca) ---------- */
.fx-main { padding-top: clamp(32px, 5vw, 56px); }
.fx-section-head { margin-bottom: 2rem !important; }
.fx-section-head .fx-label { color: var(--fx-accent); }
.fx-section-head h1, .fx-section-head h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; margin: .4rem 0 0; }
.fx-grid { gap: 1.25rem !important; }
@media (max-width: 960px) { .fx-grid.wp-block-post-template-is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 600px) { .fx-grid.wp-block-post-template-is-layout-grid { grid-template-columns: 1fr !important; } }
.fx-bcard { height: 100%; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
.fx-bcard:hover { transform: translateY(-3px); border-color: var(--fx-accent); }
.fx-bcard > * { margin: 0 !important; }
.fx-bcard .wp-block-post-featured-image { background: var(--fx-card-2); }
.fx-bcard-body { padding: 1rem 1.2rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.fx-bcard-body > * { margin: 0 !important; }
.fx-bcard .fx-kicker a, .fx-post-kicker a { color: var(--fx-accent); text-decoration: none; }
.fx-bcard-title { font-size: 1.2rem !important; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.fx-bcard-title a { color: var(--fx-light); text-decoration: none; }
.fx-bcard:hover .fx-bcard-title a { color: var(--fx-accent); }
.fx-bcard .wp-block-post-date { margin-top: auto !important; color: var(--fx-subtle); font-size: .85rem; }
.fx-pager { margin-top: 2.5rem !important; font-family: var(--fx-mono); font-size: .85rem; gap: .4rem; }
.fx-pager a, .fx-pager .page-numbers { color: var(--fx-subtle); text-decoration: none; padding: .45rem .8rem; border: 1px solid var(--fx-line); border-radius: 999px; }
.fx-pager .current { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-bg); }
.fx-empty { font-family: var(--fx-mono); color: var(--fx-subtle); border: 1px dashed var(--fx-line-2); border-radius: var(--fx-r); padding: 2.5rem; text-align: center; }
.fx-search-big input { background: var(--fx-card); color: var(--fx-light); border: 1px solid var(--fx-line-2) !important; border-radius: 999px; padding: .7rem 1.1rem; }
.fx-search-big button { background: var(--fx-accent) !important; color: var(--fx-bg) !important; border-radius: 999px !important; font-weight: 700; }

.fx-post-kicker, .fx-post-kicker a { font-family: var(--fx-mono); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.fx-title { font-size: clamp(2.1rem, 5.5vw, 3.6rem) !important; font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin-top: .6rem !important; }
.fx-postmeta { gap: .4rem 1rem; color: var(--fx-subtle); font-size: .9rem; margin-top: 1rem !important; }
.fx-cover { margin-top: 2rem !important; border-radius: var(--fx-r); overflow: hidden; border: 1px solid var(--fx-line); }
.fx-content { margin-top: 2.2rem !important; font-size: 1.12rem; line-height: 1.75; }
.fx-content p, .fx-content li { color: #D4D4D8; }
.fx-content h2, .fx-content h3 { margin-top: 2.2em; letter-spacing: -.03em; }
.fx-content img, .fx-content iframe, .fx-content video { border-radius: 12px; }
.fx-content blockquote { border-left: 3px solid var(--fx-accent); margin-left: 0; padding-left: 1.2rem; }
.fx-content .wp-block-embed iframe { width: 100%; }
.fx-tags a { font-family: var(--fx-mono); font-size: .78rem; color: var(--fx-subtle); border: 1px solid var(--fx-line-2); border-radius: 999px; padding: .25rem .75rem; text-decoration: none; }
.fx-tags a:hover { color: var(--fx-accent); border-color: var(--fx-accent); }
.fx-tags .wp-block-post-terms__separator { display: none; }
.fx-rule { border: 0 !important; border-top: 1px solid var(--fx-line) !important; margin: 3rem 0 1.5rem !important; }
.fx-postnav a { color: var(--fx-light); font-weight: 700; text-decoration: none; }
.fx-postnav a:hover { color: var(--fx-accent); }
.fx-comments textarea, .fx-comments input[type=text], .fx-comments input[type=email], .fx-comments input[type=url] { background: var(--fx-card); color: var(--fx-light); border: 1px solid var(--fx-line-2); border-radius: 12px; padding: .7rem; }
.fx-comments input[type=submit] { background: var(--fx-accent); color: var(--fx-bg); border: 0; border-radius: 999px; padding: .7rem 1.4rem; font-weight: 700; cursor: pointer; }

.fx-404 { text-align: center; padding: 3rem 0 1rem; }
.fx-404 .fx-face { width: 120px; height: 120px; }
.fx-404 .fx-reel { animation-duration: 1s; }
.fx-404 h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.045em; margin: 1rem 0 .5rem; }
.fx-404 p { color: var(--fx-subtle); }
.fx-404 .fx-btn { margin-top: 1.5rem; }
