/*
Theme Name: RDO Blog
Theme URI: https://reinodedeusonline.com
Author: Reino de Deus Online
Description: Tema editorial moderno e elegante para o blog do Reino de Deus Online. Slider de últimos artigos, versículo do dia, categorias em destaque, tempo de leitura, barra de progresso e mais.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: rdo-blog
*/

/* ===========================
   Tokens
   =========================== */
:root {
  --navy: #16243F;
  --navy-deep: #0E1626;
  --navy-soft: #1E3050;
  --gold: #B68A2E;
  --gold-soft: #E5D3AC;
  --cream: #FBF6EA;
  --cream-deep: #F3EBD8;
  --ink: #23252B;
  --ink-soft: #5A5D66;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 22, 38, 0.10);
  --shadow-lg: 0 22px 60px rgba(14, 22, 38, 0.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', -apple-system, sans-serif;
  --maxw: 1200px;
  --maxw-text: 720px;
}

/* ===========================
   Base
   =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  clip: rect(1px,1px,1px,1px); overflow: hidden;
}

/* ===========================
   Assinatura: linha do altar
   =========================== */
.altar-line {
  display: flex; align-items: center; gap: 14px;
  margin: 0 auto 48px; max-width: 320px;
}
.altar-line::before, .altar-line::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.altar-line::after { background: linear-gradient(90deg, var(--gold), transparent); }
.altar-line svg { width: 18px; height: 22px; fill: var(--gold); flex-shrink: 0; }

/* ===========================
   Topo / Header
   =========================== */
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 20px rgba(14,22,38,.35);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand img { max-height: 46px; width: auto; }
.site-title {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700;
  color: var(--cream); letter-spacing: 0.5px;
}
.site-title span { color: var(--gold); }
.site-title:hover { color: var(--gold-soft); }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a {
  color: var(--cream); font-size: 0.85rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 8px 0; position: relative;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width 0.25s ease;
}
.main-nav a:hover { color: var(--gold-soft); }
.main-nav a:hover::after, .main-nav .current-menu-item a::after { width: 100%; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); transition: 0.25s; }
.header-search-btn {
  background: none; border: none; color: var(--cream);
  cursor: pointer; padding: 8px; margin-left: 8px;
}
.header-search-btn:hover { color: var(--gold); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-deep); padding: 12px 24px 24px;
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(251,246,234,0.08); }
}

/* ===========================
   Versículo do dia
   =========================== */
.verse-bar {
  background: var(--gold);
  color: var(--navy-deep);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.92rem;
}
.verse-bar em { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; }
.verse-bar strong { font-weight: 600; margin-left: 8px; letter-spacing: 0.5px; }
/* Widgets incorporados (ex.: dailyverses.net) */
.verse-bar #dailyVersesWrapper,
.verse-bar #dailyVersesWrapper * {
  color: var(--navy-deep) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  background: transparent !important;
}
.verse-bar #dailyVersesWrapper a {
  text-decoration: none;
  border-bottom: 1px solid rgba(14,22,38,0.35);
}
.verse-bar #dailyVersesWrapper a:hover { border-bottom-color: var(--navy-deep); }

/* ===========================
   Hero slider
   =========================== */
.hero-slider {
  position: relative; background: var(--navy-deep);
  overflow: hidden;
}
.slides { position: relative; height: min(72vh, 620px); min-height: 440px; }
.slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.35) saturate(0.8);
  transform: scale(1.04);
  transition: transform 6s ease;
}
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(14, 22, 38, 0.95) 0%,
    rgba(14, 22, 38, 0.8) 45%,
    rgba(14, 22, 38, 0.55) 100%
  ),
  linear-gradient(to top, rgba(14, 22, 38, 0.9), transparent 60%);
}
.slide.is-active .slide-bg { transform: scale(1); }
.slide-bg-fallback {
  background: radial-gradient(ellipse at 30% 20%, var(--navy-soft), var(--navy-deep));
}
.slide-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.slide-inner {
  width: 100%; max-width: var(--maxw);
  margin: 0 auto; padding: 0 24px 40px;
}
.slide-cat {
  display: inline-block; color: var(--gold);
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 2.5px;
  margin-bottom: 16px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}
.slide-cat::before { content: "— "; }
.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  color: var(--cream); font-weight: 700;
  line-height: 1.15; margin: 0 0 18px; max-width: 700px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.85), 0 4px 24px rgba(0, 0, 0, 0.6);
}
.slide-title a { color: inherit; }
.slide-title a:hover { color: var(--gold-soft); }
.slide-excerpt {
  color: rgba(251,246,234,0.9); max-width: 560px;
  margin: 0 0 28px; font-size: 1.02rem; font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85), 0 2px 16px rgba(0, 0, 0, 0.6);
}
.slide-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 600; font-size: 0.88rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 14px 32px; border-radius: 100px;
  transition: background 0.25s, transform 0.25s;
}
.slide-cta:hover { background: var(--gold-soft); color: var(--navy-deep); transform: translateY(-2px); }
.slider-controls {
  position: absolute; bottom: 32px; left: 0; right: 0; z-index: 3;
  display: flex; justify-content: center; align-items: center; gap: 18px;
}
.slider-dots { display: flex; gap: 10px; }
.slider-dot {
  width: 34px; height: 3px; border: none; cursor: pointer;
  background: rgba(251,246,234,0.3); border-radius: 3px;
  transition: background 0.3s; padding: 0;
}
.slider-dot.is-active { background: var(--gold); }
.slider-arrow {
  background: rgba(251,246,234,0.08); border: 1px solid rgba(251,246,234,0.25);
  color: var(--cream); width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: grid; place-items: center;
  transition: 0.25s;
}
.slider-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }

/* ===========================
   Seções
   =========================== */
.section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 12px; }
.section-eyebrow {
  color: var(--gold); font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 3px;
  display: block; margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); }

/* Categorias em destaque */
.cat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 860px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-card {
  position: relative; display: block;
  background: var(--navy); border-radius: var(--radius);
  padding: 44px 32px 38px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card::after {
  content: ""; position: absolute; left: 32px; right: 32px; bottom: 0;
  height: 3px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s ease;
}
.cat-card:hover::after { transform: scaleX(1); }
.cat-card svg { width: 34px; height: 34px; fill: var(--gold); margin-bottom: 18px; }
.cat-card h3 { color: var(--cream); font-size: 1.35rem; margin-bottom: 8px; }
.cat-card p { color: rgba(251,246,234,0.7); font-size: 0.92rem; margin: 0 0 14px; font-weight: 300; }
.cat-card .cat-count { color: var(--gold); font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }

/* Grid de artigos */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
@media (max-width: 990px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--navy-soft); }
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.05); }
.post-card-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy-deep);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 14px; border-radius: 100px;
}
.post-card-body { padding: 26px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--gold); }
.post-card-excerpt { color: var(--ink-soft); font-size: 0.9rem; margin: 0 0 18px; flex: 1; }
.post-card-meta {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink-soft); font-size: 0.78rem;
  border-top: 1px solid var(--cream-deep); padding-top: 16px;
}
.post-card-meta svg { width: 13px; height: 13px; fill: var(--gold); vertical-align: -2px; margin-right: 4px; }
.more-wrap { text-align: center; margin-top: 44px; }
.btn-outline {
  display: inline-block; border: 1.5px solid var(--navy);
  color: var(--navy); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 13px 36px; border-radius: 100px;
  transition: 0.25s;
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* ===========================
   Single / conteúdo
   =========================== */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--gold); z-index: 200;
}
.single-hero { background: var(--navy); padding: 72px 0 60px; text-align: center; }
.single-hero .slide-cat { margin-bottom: 20px; }
.single-title {
  font-size: clamp(1.9rem, 4vw, 3rem); color: var(--cream);
  max-width: 820px; margin: 0 auto 24px;
}
.single-meta {
  color: rgba(251,246,234,0.7); font-size: 0.85rem;
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.single-meta svg { width: 14px; height: 14px; fill: var(--gold); vertical-align: -2px; margin-right: 5px; }
.single-thumb {
  max-width: 900px; margin: -40px auto 0; padding: 0 24px;
  position: relative; z-index: 2;
}
.single-thumb img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; }
.entry-content {
  max-width: var(--maxw-text); margin: 0 auto; padding: 56px 24px 40px;
  font-size: 1.06rem; line-height: 1.9;
}
.entry-content h2 { font-size: 1.7rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6em; }
.entry-content blockquote {
  margin: 2em 0; padding: 28px 32px;
  background: var(--white); border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-style: italic;
  font-size: 1.18rem; color: var(--navy);
  box-shadow: var(--shadow);
}
.entry-content blockquote p { margin: 0; }
.entry-content img { border-radius: var(--radius); margin: 1.5em auto; }
.entry-content a { border-bottom: 1px solid var(--gold); }

/* Compartilhar */
.share-row {
  max-width: var(--maxw-text); margin: 0 auto; padding: 0 24px 40px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.share-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--ink-soft); font-weight: 600; }
.share-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); transition: 0.25s;
  border: none; cursor: pointer; padding: 0;
}
.share-btn svg { width: 17px; height: 17px; fill: var(--cream); }
.share-btn:hover { background: var(--gold); transform: translateY(-3px); }
.share-feedback {
  font-size: 0.82rem; color: var(--gold);
  font-weight: 600;
}

/* ---------- Impressão / Salvar como PDF ---------- */
@media print {
  .site-header, .verse-bar, .reading-progress, .share-row,
  .author-box, .related-section, .comments-area, .site-footer,
  .nav-toggle, .slider-controls, .breadcrumbs {
    display: none !important;
  }
  body { background: #fff; color: #000; font-size: 12pt; }
  .single-hero { background: #fff; padding: 0 0 12pt; text-align: left; }
  .single-title { color: #16243F; font-size: 22pt; margin: 0 0 8pt; max-width: none; }
  .single-meta { color: #555; justify-content: flex-start; }
  .single-meta svg { display: none; }
  .single-thumb { margin: 12pt 0; padding: 0; max-width: none; }
  .single-thumb img { box-shadow: none; border-radius: 0; max-height: 300pt; object-fit: cover; }
  .entry-content { padding: 0; max-width: none; font-size: 11.5pt; line-height: 1.6; }
  .entry-content a { border-bottom: none; color: #16243F; }
  .entry-content a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #777; }
  .entry-content blockquote { box-shadow: none; border: 1px solid #ddd; border-left: 3px solid #B68A2E; }
}

/* Autor */
.author-box {
  max-width: var(--maxw-text); margin: 0 auto 56px; padding: 0 24px;
}
.author-box-inner {
  background: var(--white); border-radius: var(--radius);
  padding: 30px; display: flex; gap: 22px; align-items: center;
  box-shadow: var(--shadow);
}
.author-box img { border-radius: 50%; width: 76px; height: 76px; }
.author-box h4 { margin-bottom: 4px; font-size: 1.1rem; }
.author-box p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* Relacionados */
.related-section { background: var(--cream-deep); }

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.8rem; color: rgba(251,246,234,0.6);
  margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
}
.breadcrumbs a { color: var(--gold); }

/* Arquivo */
.archive-hero { background: var(--navy); padding: 60px 0; text-align: center; }
.archive-hero h1 { color: var(--cream); font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 8px; }
.archive-hero p { color: rgba(251,246,234,0.7); max-width: 560px; margin: 0 auto; font-weight: 300; }

/* Paginação */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 52px; }
.pagination .page-numbers {
  min-width: 42px; height: 42px; display: inline-grid; place-items: center;
  padding: 0 12px; border-radius: 50%; background: var(--white);
  color: var(--navy); font-weight: 500; font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.pagination .current { background: var(--gold); color: var(--navy-deep); }
.pagination a:hover { background: var(--navy); color: var(--cream); }

/* Comentários */
.comments-area { max-width: var(--maxw-text); margin: 0 auto; padding: 0 24px 72px; }
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow);
}
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea {
  width: 100%; padding: 13px 18px; border: 1px solid var(--cream-deep);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.95rem;
  background: var(--white); margin-bottom: 14px;
}
.comment-form .submit {
  background: var(--navy); color: var(--cream); border: none;
  padding: 13px 34px; border-radius: 100px; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 1px; transition: 0.25s;
}
.comment-form .submit:hover { background: var(--gold); color: var(--navy-deep); }

/* Busca / 404 */
.search-form-big { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 0; }
.search-form-big input[type="search"] {
  flex: 1; padding: 14px 22px; border: 1px solid var(--cream-deep);
  border-radius: 100px; font-family: var(--font-body); font-size: 0.95rem;
}
.search-form-big button {
  background: var(--gold); border: none; color: var(--navy-deep);
  padding: 14px 28px; border-radius: 100px; font-weight: 600;
  cursor: pointer; font-family: var(--font-body);
}

/* ===========================
   Rodapé
   =========================== */
.site-footer { background: var(--navy-deep); color: rgba(251,246,234,0.7); margin-top: 72px; }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 64px 24px 32px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
}
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .site-title { font-size: 1.3rem; }
.footer-inner p { font-size: 0.88rem; font-weight: 300; }
.footer-inner h4 { color: var(--cream); font-size: 1rem; letter-spacing: 1px; margin-bottom: 16px; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; }
.footer-inner li { margin-bottom: 10px; }
.footer-inner ul a { color: rgba(251,246,234,0.7); font-size: 0.88rem; }
.footer-inner ul a:hover { color: var(--gold); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(251,246,234,0.2);
  display: grid; place-items: center; transition: 0.25s;
}
.footer-social a svg { width: 16px; height: 16px; fill: var(--cream); }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); }
.footer-social a:hover svg { fill: var(--navy-deep); }
.footer-bottom {
  border-top: 1px solid rgba(251,246,234,0.08);
  text-align: center; padding: 22px 24px; font-size: 0.8rem;
  color: rgba(251,246,234,0.45);
}
.footer-bottom a { color: var(--gold); }
