/*
Theme Name: Mestre do Podcast Blog
Theme URI: https://mestredopodcast.com.br/blog/
Author: Agência Digiwin
Author URI: https://digiwin.com.br/
Description: Tema leve do blog do Mestre do Podcast, com o mesmo visual do site principal (usa /assets/css/style.css do site).
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: mestre-blog
*/

/* ---------- Base do blog ---------- */
.blog-mestre .site-header,
.blog-mestre .site-header.is-solid { background: rgba(8, 8, 10, .94); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.blog-main { padding-top: 72px; min-height: 60vh; }

/* ---------- Topo da listagem ---------- */
.blog-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); background: radial-gradient(1000px 400px at 15% 0%, rgba(242, 169, 28, .10), transparent 70%); }
.blog-hero .eyebrow { color: var(--gold); }
.blog-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); margin: 14px 0 16px; max-width: 18ch; }
.blog-hero h1.blog-h1-sm { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 24ch; }
.blog-hero .lead { margin: 0 0 26px; }

.blog-search { display: flex; max-width: 560px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; transition: border-color .2s; }
.blog-search:focus-within { border-color: var(--gold); }
.blog-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; padding: 14px 20px; outline: none; }
.blog-search input::placeholder { color: var(--dim); }
.blog-search button { background: var(--gold); color: var(--gold-ink); border: 0; width: 56px; display: grid; place-items: center; cursor: pointer; }
.blog-search button svg { width: 20px; height: 20px; }

.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cat-chips a { padding: 8px 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; color: #d9d5cc; transition: border-color .2s, color .2s, background .2s; }
.cat-chips a:hover { border-color: var(--gold); color: #fff; }
.cat-chips a[aria-current="page"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); font-weight: 700; }

/* ---------- Cards ---------- */
.blog-list { padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 8vw, 96px); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .25s var(--ease), border-color .25s; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(242, 169, 28, .45); }
.post-card-link { display: flex; flex-direction: column; height: 100%; }
.post-thumb { aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-thumb-ph { display: grid; place-items: center; height: 100%; color: var(--gold); }
.post-thumb-ph svg { width: 48px; height: 48px; }
.post-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-cat { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post-card-title { font-size: clamp(1.25rem, 1.8vw, 1.5rem); text-transform: none; line-height: 1.12; }
.post-card-excerpt { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.post-meta { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: .85rem; }
.post-meta svg { width: 15px; height: 15px; }

.post-card-lead { grid-column: 1 / -1; }
.post-card-lead .post-card-link { display: grid; grid-template-columns: 1.35fr 1fr; }
.post-card-lead .post-thumb { aspect-ratio: auto; min-height: 100%; }
.post-card-lead .post-card-body { padding: clamp(24px, 3.4vw, 44px); justify-content: center; }
.post-card-lead .post-card-title { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.post-card-lead .post-card-excerpt { font-size: 1.02rem; }
.post-card-lead .post-meta { margin-top: 8px; }

.blog-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.blog-pager .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.blog-pager .page-numbers.current { background: var(--gold); color: var(--gold-ink); font-weight: 700; }
.blog-pager a.page-numbers:hover { border-color: var(--gold); }
.blog-empty { color: var(--muted); font-size: 1.05rem; }
.blog-empty a { color: var(--gold); text-decoration: underline; }

/* ---------- Faixa de mentorias ---------- */
.blog-band { padding: 0 0 clamp(56px, 8vw, 96px); }
.blog-band-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.blog-band-inner > div:first-child { background: none; }
.blog-band .wrap { background-clip: content-box; }
.blog-band-inner { position: relative; }
.blog-band-inner::before { content: ""; position: absolute; inset: 0 var(--gutter); border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(242, 169, 28, .16), rgba(242, 169, 28, .03) 60%), var(--surface); border: 1px solid rgba(242, 169, 28, .25); z-index: -1; }
.blog-band-inner { padding-top: clamp(28px, 4vw, 48px); padding-bottom: clamp(28px, 4vw, 48px); padding-left: calc(var(--gutter) + clamp(22px, 4vw, 48px)); padding-right: calc(var(--gutter) + clamp(22px, 4vw, 48px)); isolation: isolate; }
.blog-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); margin: 12px 0 10px; }
.blog-band p { margin: 0; color: #d9d5cc; }
.blog-band .eyebrow { color: var(--gold); }
.blog-band-actions { display: flex; flex-direction: column; gap: 12px; }
.blog-band-actions .btn { justify-content: center; }

/* ---------- Artigo ---------- */
.post-head { padding: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 32px); background: radial-gradient(900px 360px at 10% 0%, rgba(242, 169, 28, .10), transparent 70%); }
.post-head-inner { max-width: calc(800px + 2 * var(--gutter)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.post-title { font-size: clamp(2rem, 4.6vw, 3.4rem); text-transform: none; line-height: 1.06; }
.post-lead { margin: 18px 0 0; }
.post-byline { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.post-byline strong { color: var(--text); }
.byline-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); }

.post-layout { max-width: calc(800px + 2 * var(--gutter)); }
.post-cover { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; }
.entry { font-size: 1.12rem; line-height: 1.78; color: #e4e0d7; }
.entry > * { margin: 0 0 1.15em; }
.entry h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: none; line-height: 1.12; color: #fff; margin: 1.9em 0 .6em; scroll-margin-top: 96px; }
.entry h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); text-transform: none; line-height: 1.2; color: #fff; margin: 1.5em 0 .5em; font-stretch: 85%; }
.entry a { color: var(--gold); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry a:hover { color: var(--gold-2); }
.entry strong { color: #fff; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li { margin: .4em 0; }
.entry li::marker { color: var(--gold); }
.entry blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--gold); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; color: #fff; }
.entry blockquote p { margin: 0; }
.entry table { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.5; display: block; overflow-x: auto; }
.entry th, .entry td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.entry th { color: var(--gold); font-family: var(--font-body); font-weight: 700; background: var(--surface); }
.entry img { border-radius: var(--radius); }

/* Vídeo leve */
.yt-lite { margin: 1.8em 0; }
.yt-lite-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; aspect-ratio: 16 / 9; background: #000; }
.yt-lite-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: .85; transition: opacity .25s; }
.yt-lite-btn:hover img { opacity: 1; }
.yt-lite-play { position: absolute; inset: 0; margin: auto; width: 78px; height: 78px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); transition: transform .2s; }
.yt-lite-btn:hover .yt-lite-play { transform: scale(1.08); }
.yt-lite-play svg { width: 32px; height: 32px; margin-left: 4px; }
.yt-lite iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-lg); display: block; }
.yt-lite figcaption { margin-top: 10px; font-size: .88rem; color: var(--dim); }
.yt-lite figcaption a { color: var(--muted); }

/* Chamada para mentoria */
.post-cta { margin: 2.2em 0; padding: clamp(22px, 3.4vw, 34px); border-radius: var(--radius-lg); background: linear-gradient(130deg, rgba(242, 169, 28, .18), rgba(242, 169, 28, .04) 55%), var(--surface); border: 1px solid rgba(242, 169, 28, .3); }
.post-cta .eyebrow { color: var(--gold); font-size: .78rem; }
.entry .post-cta p { margin: 0 0 14px; font-size: 1rem; color: #d9d5cc; }
.entry .post-cta .post-cta-title { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.1; color: #fff; margin: 10px 0 10px; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.entry .post-cta-actions a { text-decoration: none; }
.entry .post-cta-actions .btn-gold { color: var(--gold-ink); }
.entry .post-cta-actions .btn-line { color: var(--text); }
.entry .post-cta-actions .btn-line:hover { color: var(--gold); }

/* Autor */
.author-box { display: flex; gap: 20px; align-items: flex-start; margin: 48px 0 0; padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; border: 2px solid var(--gold); }
.author-box .eyebrow { color: var(--gold); font-size: .75rem; }
.author-name { font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: 1.5rem; margin: 6px 0 6px; }
.author-box p { margin: 0 0 10px; color: var(--muted); font-size: .96rem; }
.author-links { display: flex; flex-wrap: wrap; gap: 18px; }
.author-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; font-size: .92rem; }
.author-links svg { width: 18px; height: 18px; }

.related { padding-top: clamp(40px, 6vw, 72px); }
.related-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 24px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
	.post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.blog-band-inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.post-card-lead .post-card-link { grid-template-columns: 1fr; }
	.post-card-lead .post-thumb { aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) {
	.post-grid { grid-template-columns: 1fr; }
	.entry { font-size: 1.05rem; }
	.author-box { flex-direction: column; }
	.post-cta-actions .btn { flex: 1 1 100%; justify-content: center; }
	.blog-band-actions .btn { width: 100%; }
}

/* Barra do WordPress (só para quem está logado) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .blog-main { padding-top: 72px; } }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* Bloco Digiwin + Digicast */
.partners { margin: 48px 0 0; }
.partners-head { margin: 0 0 14px; }
.partners-head .eyebrow { color: var(--gold); }
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(20px, 2.6vw, 28px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.partner-digiwin { background: linear-gradient(140deg, rgba(242, 169, 28, .14), rgba(242, 169, 28, .02) 60%), var(--surface); border-color: rgba(242, 169, 28, .28); }
.partner-tag { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.partner .partner-title { margin: 0; font-family: var(--font-display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.12; color: #fff; }
.partner p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.6; }
.partner .btn { margin-top: auto; }
.author-box p a { color: var(--gold); }
@media (max-width: 760px) { .partners-grid { grid-template-columns: 1fr; } .partner .btn { width: 100%; justify-content: center; } }

/* Contraste e links (PageSpeed) */
.post-meta, .yt-lite figcaption, .site-footer .footer-bottom { color: var(--muted); }
.author-box p a { text-decoration: underline; text-underline-offset: 3px; }
