/*
Theme Name: CreditOS Blog
Theme URI: https://creditos.luby.com.br
Author: Luby
Author URI: https://luby.com.br
Description: Tema de blocos do blog do CreditOS. Mesma paleta, tipografia e componentes do site creditos.luby.com.br (CreditOS Design System): navy, verde do produto, Manrope + Instrument Serif + JetBrains Mono.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 7.4
License: Proprietary
Text Domain: creditos-blog
*/

/* ── Logo (igual ao CreditOSLogo do site) ─────────────────────────────── */
.cb-logo { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; background: #fff; border: 1px solid rgba(15,35,65,.16); border-radius: 999px; text-decoration: none !important; }
.cb-logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: #0f2341; color: #3ddc97; }
.cb-logo__name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: #0f2341; }
.cb-logo__name b { color: #12865a; font-weight: inherit; }
.cb-logo__by { display: inline-flex; align-items: center; gap: 8px; padding-left: 10px; border-left: 1px solid rgba(15,35,65,.16); font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5e6e89; }
.cb-logo__by img { display: block; height: 16px; width: auto; }
.cb-logo--dark { background: transparent; border-color: transparent; padding-left: 0; }
.cb-logo--dark .cb-logo__name { color: #fff; }
.cb-logo--dark .cb-logo__name b { color: #3ddc97; }
.cb-logo--dark .cb-logo__mark { background: #152740; }
.cb-logo--dark .cb-logo__by { border-left-color: rgba(255,255,255,.18); color: rgba(255,255,255,.7); }

/* ── Cabeçalho ─────────────────────────────────────────────────────────── */
.cb-header { position: sticky; top: 0; z-index: 50; background: rgba(246,248,251,.9); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(15,35,65,.1); }
.admin-bar .cb-header { top: 32px; }
.cb-nav a { color: #475a78; text-decoration: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; transition: color .18s, background .18s; }
.cb-nav a:hover { color: #0f2341; background: rgba(15,35,65,.05); }

/* ── Eyebrow / rótulos mono ───────────────────────────────────────────── */
.cb-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #12865a; }
.cb-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61,220,151,.18); }
.cb-serif, .cb-hero em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.01em; color: #12865a; }

/* ── Hero com malha ───────────────────────────────────────────────────── */
.cb-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(15,35,65,.1); background-image: linear-gradient(to right, rgba(15,35,65,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(15,35,65,.05) 1px, transparent 1px); background-size: 80px 80px; }
.cb-hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(61,220,151,.18), transparent); pointer-events: none; }
.cb-hero > * { position: relative; z-index: 1; }

/* ── Cards de post ────────────────────────────────────────────────────── */
.cb-card { height: 100%; background: #fff; border: 1px solid rgba(15,35,65,.1); border-radius: 12px; overflow: hidden; transition: border-color .3s, box-shadow .3s, transform .3s; }
.cb-card:hover { border-color: rgba(18,134,90,.35); box-shadow: 0 12px 28px -12px rgba(15,35,65,.18); transform: translateY(-2px); }
.cb-card .wp-block-post-featured-image { margin: 0; border-radius: 0 !important; }
.cb-card .wp-block-post-featured-image img { border-radius: 0 !important; aspect-ratio: 16/9; object-fit: cover; }
.cb-card .wp-block-post-excerpt__more-text { display: none; }
.wp-block-post-template.is-layout-grid > li { display: flex; flex-direction: column; }

/* ── Paginação ────────────────────────────────────────────────────────── */
.wp-block-query-pagination a, .wp-block-query-pagination .page-numbers { font-family: "JetBrains Mono", monospace; font-size: 13px; padding: 6px 12px; border-radius: 999px; text-decoration: none; color: #475a78; }
.wp-block-query-pagination .page-numbers.current { background: #0f2341; color: #fff; }

/* ── Leitura ──────────────────────────────────────────────────────────── */
.cb-prose { font-size: 18px; line-height: 1.75; color: #1e3352; }
.cb-prose h2 { margin-top: 2em; }
.cb-prose h3 { margin-top: 1.6em; }
.cb-prose img { border-radius: 12px; }
.cb-prose ul li::marker { color: #12865a; }

/* ── CTA navy ─────────────────────────────────────────────────────────── */
.cb-cta { border-radius: 20px; overflow: hidden; position: relative; }
.cb-cta::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; height: 140%; background: radial-gradient(closest-side, rgba(61,220,151,.22), transparent); pointer-events: none; }
.cb-cta > * { position: relative; z-index: 1; }
.cb-cta .wp-block-button__link { background: #3ddc97 !important; color: #0f2341 !important; }
.cb-cta .wp-block-button__link:hover { background: #fff !important; }


/* ── Rodapé: igual ao do site (lg-footer de credit.css + site.css) ───── */
.lg-footer { --text: #fff; --text-muted: #b8c6da; --text-faint: #9daec4; --line-soft: rgba(255,255,255,.08); --accent: #3ddc97; background: #0f2341; color: var(--text); border-top: 1px solid var(--line-soft); padding-block: 72px 32px; font-family: "Manrope", system-ui, sans-serif; }
.lg-footer .lg-shell { max-width: 1320px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.lg-footer__main { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1.5fr) minmax(0,1.1fr) minmax(0,.7fr); gap: 44px; padding-bottom: 52px; border-bottom: 1px solid var(--line-soft); }
.lg-footer__brand { max-width: 320px; }
.lg-footer__brand > a { text-decoration: none; }
.lg-footer__tagline { margin: 20px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.lg-footer__tagline a { color: var(--text); }
.lg-footer__tagline a:hover { color: var(--accent); }
.lg-footer__links { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.lg-footer__heading { margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--text); font-family: inherit; }
.lg-footer__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lg-footer__link { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 180ms ease; }
.lg-footer__link:hover { color: var(--accent); }
.lg-footer__contact { min-width: 0; }
.lg-footer__region { font-style: normal; display: flex; flex-direction: column; gap: 7px; margin-bottom: 24px; }
.lg-footer__region-name { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.lg-footer__row { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-muted); text-decoration: none; }
.lg-footer__row svg { flex: none; }
.lg-footer__social { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.lg-footer__social-link { color: var(--text-muted); transition: opacity 180ms ease, color 180ms ease; }
.lg-footer__social-link:hover { color: var(--text); opacity: .85; }
.lg-footer__badges { min-width: 0; }
.lg-footer__heading--spaced { margin-top: 32px; }
.lg-footer__badge-row, .lg-footer__badge-link { display: flex; align-items: center; gap: 20px; }
.lg-footer__badge-link { opacity: .9; transition: opacity 180ms ease; }
.lg-footer__badge-link:hover { opacity: 1; }
.lg-footer__partner { height: 26px; width: auto; max-width: 110px; object-fit: contain; }
.lg-footer__cert { height: 60px; width: auto; object-fit: contain; }
.lg-footer__legal { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 26px; font-size: 13px; color: var(--text-faint); }
.lg-footer__legal-nav { font-size: 13px; }
.lg-footer__legal-nav .lg-footer__link { font-size: 13px; }
@media (max-width: 1000px) { .lg-footer__main { grid-template-columns: minmax(0,1fr); } .lg-footer__links { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px) { .lg-footer__badge-row { gap: 16px; } }
@media (max-width: 520px) { .lg-footer__links { grid-template-columns: minmax(0,1fr); gap: 28px; } }

::selection { background: rgba(61,220,151,.35); color: #0f2341; }
:focus-visible { outline: 2px solid #12865a; outline-offset: 2px; }
