/*
Theme Name: Austral Zodiac Blog
Theme URI: https://www.australzodiac.com/
Author: Austral Zodiac
Description: Tema leve e multilíngue (15 idiomas, com suporte a RTL) para o blog do Austral Zodiac. Fundo #06040f, dourado #D4AF37, template de artigo com answer capsule e CTA "Conheça mais o seu céu". Sem checkout: todo CTA leva ao app com UTM. Requer o plugin Austral Zodiac Blog Core.
Version: 1.1.0
Requires at least: 6.2
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: azodiac-blog
*/

:root {
	--az-bg: #06040f;
	--az-surface: #0f0b1f;
	--az-surface-2: #17112e;
	--az-gold: #D4AF37;
	--az-gold-soft: rgba(212, 175, 55, .35);
	--az-gold-faint: rgba(212, 175, 55, .09);
	--az-text: #ece8f4;
	--az-muted: #b7aecb;
	--az-line: rgba(236, 232, 244, .14);
	--az-font-body: "EB Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--az-font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
	--az-font-caps: "Cinzel", Georgia, serif;
	--az-measure: 44rem;
	--az-wide: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: radial-gradient(ellipse at 20% -10%, #1a0a2e 0%, var(--az-bg) 55%) fixed, var(--az-bg);
	color: var(--az-text);
	font-family: var(--az-font-body);
	font-size: 1.2rem;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--az-gold); text-underline-offset: .18em; }
a:hover { color: #f0d675; }
:focus-visible { outline: 2px solid var(--az-gold); outline-offset: 3px; border-radius: 2px; }

.az-skip { position: absolute; inset-inline-start: .5rem; top: .5rem; transform: translateY(-400%); background: var(--az-gold); color: var(--az-bg); padding: .6rem 1rem; z-index: 100; }
.az-skip:focus { transform: none; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.az-wrap { width: min(100% - 2.5rem, var(--az-wide)); margin-inline: auto; }
.az-measure { width: min(100% - 2.5rem, var(--az-measure)); margin-inline: auto; }

/* Cabeçalho */
.az-header { border-bottom: 1px solid var(--az-line); background: rgba(6, 4, 15, .82); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 50; }
.az-header-inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.4rem; padding: .7rem 0; }
.az-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--az-text); }
.az-brand img { width: 34px; height: 34px; border-radius: 8px; display: block; }
.az-brand-name { font-family: var(--az-font-caps); letter-spacing: .18em; font-size: .95rem; color: var(--az-gold); text-transform: uppercase; }
.az-brand-sub { font-family: var(--az-font-caps); font-size: .7rem; letter-spacing: .3em; color: var(--az-muted); text-transform: uppercase; border-inline-start: 1px solid var(--az-line); padding-inline-start: .6rem; }
.az-nav { flex: 1 1 auto; min-width: 0; }
.az-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.2rem; overflow-x: auto; scrollbar-width: none; }
.az-nav ul::-webkit-scrollbar { display: none; }
.az-nav a { display: block; padding: .3rem 0; color: var(--az-text); text-decoration: none; font-size: 1rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.az-nav a:hover, .az-nav .current-menu-item > a, .az-nav a[aria-current="page"] { border-bottom-color: var(--az-gold); color: var(--az-gold); }
.az-header .az-btn { margin-inline-start: auto; }

/* Botões */
.az-btn {
	display: inline-block; background: var(--az-gold); color: var(--az-bg) !important; font-family: var(--az-font-body);
	font-weight: 600; font-size: 1.05rem; line-height: 1.3; text-decoration: none; text-align: center;
	padding: .7em 1.4em; border-radius: 999px; border: 0; box-shadow: 0 0 0 0 var(--az-gold-soft); transition: box-shadow .2s, transform .2s;
}
.az-btn:hover { background: #e6c44f; box-shadow: 0 0 22px 2px var(--az-gold-soft); }
.az-btn-sm { font-size: .95rem; padding: .5em 1.1em; }
.az-btn-lg { font-size: 1.15rem; padding: .85em 1.8em; }

/* Tipografia de conteúdo */
h1, h2, h3, h4 { font-family: var(--az-font-display); font-weight: 600; line-height: 1.15; color: #fff; margin: 2.2em 0 .6em; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.4rem); margin-top: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.2rem); }
h3 { font-size: 1.45rem; color: #f3e7bd; }
p, ul, ol { margin: 0 0 1.15em; }
li { margin-bottom: .35em; }
strong { color: #fff; }
blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-inline-start: 3px solid var(--az-gold); color: var(--az-muted); font-style: italic; }
hr { border: 0; border-top: 1px solid var(--az-line); margin: 2.5em 0; }

.az-kicker { font-family: var(--az-font-caps); font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; color: var(--az-gold); margin: 0 0 .9rem; display: block; }
.az-kicker a { color: inherit; text-decoration: none; }

/* Tabelas responsivas */
.az-table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--az-line); border-radius: 12px; background: var(--az-surface); }
.az-table-wrap table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1.02rem; line-height: 1.5; }
.az-table-wrap th { text-align: start; font-family: var(--az-font-caps); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--az-gold); background: var(--az-gold-faint); }
.az-table-wrap th, .az-table-wrap td { padding: .75rem 1rem; border-bottom: 1px solid var(--az-line); vertical-align: top; }
.az-table-wrap tr:last-child td { border-bottom: 0; }

/* Artigo */
.az-article { padding: 3rem 0 2rem; }
.az-crumbs { font-size: .95rem; color: var(--az-muted); margin-bottom: 1.6rem; }
.az-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.az-crumbs li { margin: 0; }
.az-crumbs li + li::before { content: "›"; margin-inline-end: .5rem; color: var(--az-gold-soft); }
.az-crumbs a { color: var(--az-muted); }
.az-crumbs [aria-current="page"] { color: var(--az-text); }
.az-meta { color: var(--az-muted); font-size: .98rem; margin: 1rem 0 0; }
.az-meta span + span::before { content: "·"; margin: 0 .55rem; color: var(--az-gold-soft); }

.az-capsule { margin: 1.8rem 0 2rem; padding: 1.2rem 1.4rem; border: 1px solid var(--az-gold-soft); border-inline-start: 4px solid var(--az-gold); border-radius: 12px; background: var(--az-gold-faint); }
.az-capsule-label { font-family: var(--az-font-caps); font-size: .7rem; letter-spacing: .3em; color: var(--az-gold); text-transform: uppercase; margin: 0 0 .6rem; }
.az-capsule p:last-child, .az-capsule ul:last-child { margin-bottom: 0; }
.az-capsule ul { padding-inline-start: 1.2rem; }

.az-toc { margin: 0 0 2rem; padding: 1rem 1.3rem; border: 1px solid var(--az-line); border-radius: 12px; background: var(--az-surface); font-size: 1.02rem; }
.az-toc-title { font-family: var(--az-font-caps); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--az-muted); margin: 0 0 .5rem; }
.az-toc ol { margin: 0; padding-inline-start: 1.2rem; }
.az-toc li { margin-bottom: .2rem; }
.az-prose h2[id], .az-prose h3[id] { scroll-margin-top: 5.5rem; }

/* CTA */
.az-cta-inline { margin: 1.8em 0; }
.az-cta-inline .az-btn { padding: .8em 1.5em; }
.az-cta-box { margin: 3rem 0; padding: 2rem 1.6rem; text-align: center; border: 1px solid var(--az-gold-soft); border-radius: 18px; background: linear-gradient(160deg, var(--az-surface-2), var(--az-surface)); }
.az-cta-box h2 { margin: 0 0 .5rem; font-size: 2rem; }
.az-cta-box p { color: var(--az-muted); margin-bottom: 1.3rem; }
.az-cta-box .az-kicker { margin-bottom: .6rem; }

/* Listas de artigos */
.az-hero { padding: 3.5rem 0 1.5rem; text-align: center; }
.az-hero p { color: var(--az-muted); max-width: 38rem; margin-inline: auto; }
.az-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); padding: 1rem 0 3rem; list-style: none; margin: 0; }
.az-card { display: flex; flex-direction: column; height: 100%; padding: 1.4rem; border: 1px solid var(--az-line); border-radius: 16px; background: var(--az-surface); }
.az-card:hover { border-color: var(--az-gold-soft); }
.az-card h2, .az-card h3 { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.2; }
.az-card h2 a, .az-card h3 a { color: #fff; text-decoration: none; }
.az-card h2 a:hover, .az-card h3 a:hover { color: var(--az-gold); }
.az-card p { color: var(--az-muted); font-size: 1.05rem; margin: 0 0 1rem; }
.az-card-meta { margin-top: auto; font-size: .92rem; color: var(--az-muted); }
.az-section-title { font-size: 1.6rem; margin: 2.5rem 0 .5rem; }
.az-pagination { padding-bottom: 3rem; text-align: center; }
.az-pagination .nav-links { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.az-pagination a, .az-pagination span { padding: .35rem .8rem; border: 1px solid var(--az-line); border-radius: 999px; text-decoration: none; }
.az-pagination .current { border-color: var(--az-gold); color: var(--az-gold); }

/* Busca */
.az-search { display: flex; gap: .6rem; max-width: 30rem; margin: 1rem auto; }
.az-search input[type="search"] { flex: 1; min-width: 0; padding: .65rem 1rem; border-radius: 999px; border: 1px solid var(--az-line); background: var(--az-surface); color: var(--az-text); font: inherit; }

/* Rodapé */
.az-footer { border-top: 1px solid var(--az-line); margin-top: 3rem; padding: 2.5rem 0 2rem; color: var(--az-muted); font-size: 1rem; }
.az-footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.az-footer h2 { font-family: var(--az-font-caps); font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--az-gold); margin: 0 0 .8rem; }
.az-footer ul { list-style: none; margin: 0; padding: 0; }
.az-footer a { color: var(--az-text); }
.az-disclaimer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--az-line); font-size: .92rem; }

/* Idiomas: seletor, RTL e fontes de sistema para escritas que as fontes do tema não cobrem */
.az-lang { position: relative; font-size: .95rem; }
.az-lang summary { list-style: none; cursor: pointer; padding: .35rem .8rem; border: 1px solid var(--az-line); border-radius: 999px; color: var(--az-text); white-space: nowrap; }
.az-lang summary::-webkit-details-marker { display: none; }
.az-lang summary:hover, .az-lang[open] summary { border-color: var(--az-gold-soft); color: var(--az-gold); }
.az-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); z-index: 60; margin: 0; padding: .4rem; list-style: none; min-width: 11rem; max-height: 70vh; overflow-y: auto; border: 1px solid var(--az-gold-soft); border-radius: 12px; background: var(--az-surface-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.az-lang li { margin: 0; }
.az-lang a { display: block; padding: .4rem .7rem; border-radius: 8px; color: var(--az-text); text-decoration: none; }
.az-lang a:hover { background: var(--az-gold-faint); color: var(--az-gold); }
.az-lang a[aria-current] { color: var(--az-gold); font-weight: 600; }
.az-rtl .az-crumbs li + li::before { content: "‹"; }
.az-rtl .az-table-wrap th, .az-rtl .az-table-wrap td { text-align: start; }
html[lang^="zh"] body, html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Serif SC", sans-serif; }
html[lang^="ja"] body, html[lang^="ja"] h1, html[lang^="ja"] h2, html[lang^="ja"] h3 { font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif; }
html[lang^="ko"] body, html[lang^="ko"] h1, html[lang^="ko"] h2, html[lang^="ko"] h3 { font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
html[lang^="ar"] body, html[lang^="ar"] h1, html[lang^="ar"] h2, html[lang^="ar"] h3 { font-family: "Geeza Pro", "Segoe UI", "Noto Naskh Arabic", "Noto Sans Arabic", Tahoma, serif; }
html[lang^="he"] body, html[lang^="he"] h1, html[lang^="he"] h2, html[lang^="he"] h3 { font-family: "Arial Hebrew", "Segoe UI", "Noto Sans Hebrew", "Frank Ruehl CLM", serif; }
html[lang^="hi"] body, html[lang^="hi"] h1, html[lang^="hi"] h2, html[lang^="hi"] h3 { font-family: "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", "Mangal", serif; }
html[lang^="zh"] body, html[lang^="ja"] body, html[lang^="ko"] body, html[lang^="ar"] body, html[lang^="he"] body, html[lang^="hi"] body { line-height: 1.85; }
html[lang^="hi"] .az-kicker, html[lang^="hi"] .az-capsule-label, html[lang^="hi"] .az-toc-title, html[lang^="zh"] .az-brand-sub, html[lang^="ja"] .az-brand-sub, html[lang^="ko"] .az-brand-sub, html[lang^="ar"] .az-kicker, html[lang^="he"] .az-kicker, html[lang^="ar"] .az-capsule-label, html[lang^="he"] .az-capsule-label, html[lang^="ar"] .az-toc-title, html[lang^="he"] .az-toc-title { letter-spacing: 0; }

@media (max-width: 640px) {
	body { font-size: 1.12rem; }
	.az-header .az-btn { margin-inline-start: 0; }
	.az-brand-sub { display: none; }
	.az-lang { position: static; }
	.az-lang ul { inset-inline: 0; min-width: 0; }
	.az-capsule, .az-cta-box { padding-inline: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.az-btn { transition: none; }
}
