/*
Theme Name: Linha de Saturno
Theme URI: https://ikognita.com/
Author: Linha de Saturno
Description: Tema personalizado para o portal de conteúdo da Linha de Saturno — astrologia, numerologia e ocultismo. Combina com a identidade visual da página de vendas do Mapa Astral Védico (roxo/dourado, Cinzel + EB Garamond).
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linha-de-saturno
*/

:root {
  --bg: #0d0716;
  --bg2: #150a24;
  --bg3: #1a0f2e;
  --purple: #6b3fa0;
  --green: #123d2e;
  --gold: #d8b45c;
  --gold-bright: #f0d488;
  --cream: #f2e9d8;
  --cream-dim: #cbb99f;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font-family: 'EB Garamond', Georgia, serif; font-size: 18px; line-height: 1.65;
}
h1, h2, h3, h4, .brand span, .site-title { font-family: 'Cinzel', Georgia, serif; }
a { color: var(--gold-bright); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.bg-a {
  background:
    radial-gradient(ellipse 900px 500px at 10% -10%, rgba(107,63,160,0.28), transparent 55%),
    radial-gradient(ellipse 800px 500px at 100% 0%, rgba(18,61,46,0.32), transparent 55%),
    var(--bg);
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; width: 100%; }

/* Cabeçalho */
header.site-header { padding: 28px 0; border-bottom: 1px solid rgba(216,180,92,0.2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img, .brand img.custom-logo {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold);
  object-fit: cover; margin: 0;
}
.brand span, .brand .site-title { font-size: 16px; letter-spacing: 3px; text-transform: uppercase; color: var(--cream); }
.brand a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
nav.primary-menu ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav.primary-menu li { margin: 0; }
nav.primary-menu a { color: var(--cream-dim); font-family: 'Cinzel', serif; font-size: 13.5px; letter-spacing: 1.5px; text-transform: uppercase; }
nav.primary-menu a:hover { color: var(--gold-bright); }

/* Hero do portal / arquivos */
.hero-portal { padding: 70px 0 50px; text-align: center; }
.hero-portal .eyebrow { text-transform: uppercase; letter-spacing: 3.5px; font-size: 12.5px; font-weight: 600; color: var(--gold); margin-bottom: 16px; }
.hero-portal h1 { font-size: clamp(32px, 5vw, 48px); color: var(--gold-bright); margin: 0 0 16px; }
.hero-portal p { color: var(--cream-dim); font-size: 19px; font-style: italic; max-width: 620px; margin: 0 auto; }

/* Grade de posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding: 20px 0 80px; }
.post-card { background: rgba(21,10,36,0.55); border: 1px solid rgba(216,180,92,0.25); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.15s ease, border-color 0.15s ease; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(216,180,92,0.55); }
.post-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: #150a24; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-family: 'Cinzel', serif; font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.post-card h2 { font-size: 21px; margin: 0 0 10px; line-height: 1.35; }
.post-card h2 a { color: var(--cream); }
.post-card h2 a:hover { color: var(--gold-bright); }
.post-card p.excerpt { color: var(--cream-dim); font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.post-card .meta-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #8a7c68; }
.post-card .readmore { font-family: 'Cinzel', serif; font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold-bright); }
.sem-posts { text-align: center; padding: 60px 0; color: var(--cream-dim); }

/* Paginação (a marcação real vem do WordPress via the_posts_pagination) */
nav.pagination { display: flex; justify-content: center; padding-bottom: 90px; }
nav.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
nav.pagination .page-numbers {
  min-width: 38px; height: 38px; padding: 0 6px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(216,180,92,0.3); color: var(--cream-dim);
  font-family: 'Cinzel', serif; font-size: 14px;
}
nav.pagination .page-numbers.current { background: linear-gradient(160deg, var(--gold-bright), var(--gold)); color: #241407; border-color: transparent; }
nav.pagination .page-numbers.dots { border: none; background: none; }

/* Artigo individual / página */
.article-header { padding: 56px 0 30px; text-align: center; }
.article-header .cat { font-family: 'Cinzel', serif; font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.article-header h1 { font-size: clamp(30px, 4.5vw, 44px); color: var(--gold-bright); margin: 0 0 18px; line-height: 1.25; }
.article-header .meta { color: #8a7c68; font-size: 14.5px; }
.article-cover { max-width: 900px; margin: 0 auto 50px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(216,180,92,0.3); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.article-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; object-position: center 20%; }
.article-body { max-width: 700px; margin: 0 auto 70px; font-size: 19px; }
.article-body p { margin: 0 0 24px; }
.article-body h2 { color: var(--gold-bright); font-size: 27px; margin: 44px 0 18px; }
.article-body h3 { color: var(--gold-bright); font-size: 22px; margin: 36px 0 14px; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote { margin: 34px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); color: var(--cream-dim); font-style: italic; font-size: 20px; }
.article-body a { text-decoration: underline; text-decoration-color: rgba(240,212,136,0.5); }
.article-body img { border-radius: 12px; margin: 30px 0; }
.article-body figure { margin: 30px 0; }
.article-body figcaption { text-align: center; font-size: 14px; color: #8a7c68; margin-top: 8px; }
.article-body iframe, .article-body .wp-block-embed { max-width: 100%; border-radius: 12px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 16px; }
.article-body table th, .article-body table td { border: 1px solid rgba(216,180,92,0.25); padding: 10px 12px; text-align: left; }

/* Botões (inclui o bloco nativo "Botões" do editor — assim qualquer botão criado
   pelo Rafael já sai com a cara da marca, sem precisar de CSS extra por post) */
.wp-block-button__link, .cta-btn {
  display: inline-block; text-align: center; text-decoration: none !important; font-family: 'Cinzel', serif;
  font-weight: 700; font-size: 15.5px; letter-spacing: 0.5px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold)); color: #241407 !important;
  padding: 15px 30px; border-radius: 6px; box-shadow: 0 8px 26px rgba(216,180,92,0.28);
}
.wp-block-buttons { justify-content: center; }

.article-cta { max-width: 700px; margin: 46px auto; text-align: center; background: rgba(21,10,36,0.55); border: 1px solid rgba(216,180,92,0.3); border-radius: 14px; padding: 34px 30px; }
.article-cta p { color: var(--cream-dim); margin: 0 0 20px; font-size: 17px; }
.article-footer { max-width: 700px; margin: 0 auto 80px; padding-top: 34px; border-top: 1px solid rgba(216,180,92,0.2); text-align: center; }
.article-footer .brand { justify-content: center; margin-bottom: 10px; }
.article-footer p { color: var(--cream-dim); font-size: 15px; }

/* Rodapé do site */
footer.site-footer { border-top: 1px solid rgba(216,180,92,0.2); padding: 40px 0 50px; text-align: center; background: var(--bg2); }
footer.site-footer .handle { font-family: 'Cinzel', serif; font-size: 13px; letter-spacing: 2.5px; color: var(--cream-dim); text-transform: uppercase; }
footer.site-footer .fine { font-size: 13px; color: #6f6353; margin-top: 10px; }
.footer-widgets { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; margin-bottom: 24px; text-align: left; }
.footer-widget-title { font-family: 'Cinzel', serif; font-size: 14px; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 12px; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .post-grid { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; text-align: center; }
  nav.primary-menu ul { flex-wrap: wrap; justify-content: center; gap: 10px 18px; }
  nav.primary-menu a { font-size: 12px; }
}
