/*
Theme Name: LeilaoPro
Theme URI: https://leilaopro.com.br
Author: LeilaoPro
Author URI: https://leilaopro.com.br
Description: Tema profissional para blog de investimento em leilões de imóveis. Design sóbrio, confiável e otimizado para AdSense e SEO.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: leilaopro
*/

/* =============================================
   RESET E BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d2137;
  --navy-light: #1a3a5c;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray-mid: #e0e4ea;
  --gray-text: #555e6d;
  --text: #1a202c;
  --font-main: 'Segoe UI', Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(13,33,55,0.10);
  --shadow-lg: 0 6px 32px rgba(13,33,55,0.16);
  --max-width: 1200px;
}

body {
  font-family: var(--font-main);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text);
  background: var(--gray-light);
}

a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* =============================================
   HEADER
   ============================================= */
#site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo .logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.site-logo .logo-text span {
  color: var(--gold);
}

.site-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

/* NAVEGAÇÃO */
nav#site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

nav#site-nav ul li a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.2s;
}

nav#site-nav ul li a:hover,
nav#site-nav ul li.current-menu-item a {
  background: var(--gold);
  color: var(--navy);
}

/* HERO BANNER */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 64px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

#hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  max-width: 720px;
  margin: 0 auto 16px;
  line-height: 1.25;
}

#hero h1 span { color: var(--gold); }

#hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

.btn-hero {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-hero:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.45);
}

/* =============================================
   LAYOUT PRINCIPAL
   ============================================= */
#page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* =============================================
   POSTS GRID (HOME)
   ============================================= */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.post-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-mid);
}

.post-card-image-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-image-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.3;
  fill: var(--gold);
}

.post-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-category-badge {
  display: inline-block;
  background: rgba(13,33,55,0.08);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.post-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.post-card h2 a { color: inherit; }
.post-card h2 a:hover { color: var(--gold); }

.post-excerpt {
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.post-meta {
  font-size: 0.78rem;
  color: #aab0bc;
  display: flex;
  align-items: center;
  gap: 12px;
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--navy-light);
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.read-more:hover { color: var(--gold); }

/* =============================================
   ARTIGO INDIVIDUAL
   ============================================= */
article.single-post {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 48px;
}

article.single-post h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 16px;
}

article.single-post .post-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: #8896a8;
}

article.single-post h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--gold);
}

article.single-post h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-light);
  margin: 24px 0 10px;
}

article.single-post p { margin-bottom: 18px; color: #2d3748; }

article.single-post ul,
article.single-post ol {
  margin: 0 0 18px 24px;
}

article.single-post li { margin-bottom: 8px; }

article.single-post pre {
  background: var(--gray-light);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  overflow-x: auto;
  margin-bottom: 18px;
  line-height: 1.8;
}

article.single-post strong { color: var(--navy); }

/* ADSENSE SLOTS DENTRO DO ARTIGO */
.adsense-in-article {
  background: var(--gray-light);
  border: 1px dashed var(--gray-mid);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  font-size: 0.75rem;
  color: #aab0bc;
}

/* =============================================
   SIDEBAR
   ============================================= */
#sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 90px;
}

.widget {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.widget-title {
  background: var(--navy);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 18px;
}

.widget-body { padding: 18px; }

/* WIDGET DE NEWSLETTER */
.newsletter-widget { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); }
.newsletter-widget .widget-title { background: transparent; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.newsletter-widget .widget-body { padding: 0 18px 20px; }
.newsletter-widget p { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 14px; }
.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.newsletter-widget button {
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-widget button:hover { background: var(--gold-light); }

/* ADSENSE NA SIDEBAR */
.adsense-sidebar {
  min-height: 250px;
  background: var(--gray-light);
  border: 1px dashed var(--gray-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: #aab0bc;
}

/* POSTS RECENTES */
.recent-posts-list { list-style: none; }
.recent-posts-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-mid);
}
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list a { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.recent-posts-list a:hover { color: var(--gold); }
.recent-posts-list .post-date { font-size: 0.75rem; color: #aab0bc; margin-top: 4px; }

/* CATEGORIAS */
.category-list { list-style: none; }
.category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-mid);
}
.category-list li:last-child { border-bottom: none; }
.category-list a { font-size: 0.9rem; color: var(--text); }
.category-list a:hover { color: var(--gold); }
.category-count {
  background: var(--gray-light);
  color: var(--gray-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* =============================================
   BREADCRUMB
   ============================================= */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.82rem;
  color: #8896a8;
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--navy-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-separator { color: #ccd0d8; }

/* =============================================
   SEÇÃO DE CATEGORIAS (HOME)
   ============================================= */
.categories-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 0;
}

.categories-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-pill:hover,
.cat-pill.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* =============================================
   BANNER ADSENSE TOPO
   ============================================= */
.adsense-top-banner {
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 12px 24px;
}

.adsense-top-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-light);
  border: 1px dashed var(--gray-mid);
  border-radius: var(--radius);
  font-size: 0.75rem;
  color: #aab0bc;
}

/* =============================================
   FOOTER
   ============================================= */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand p { font-size: 0.88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--gold); }

/* =============================================
   PAGINAÇÃO
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination .current {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.2s;
}

.pagination a:hover { background: var(--navy); color: var(--white); }
.pagination .current { background: var(--navy); color: var(--white); }

/* =============================================
   RESPONSIVO
   ============================================= */
@media (max-width: 900px) {
  #page-wrapper { grid-template-columns: 1fr; }
  #sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  article.single-post { padding: 24px; }
  #hero h1 { font-size: 1.8rem; }
}

@media (max-width: 600px) {
  .header-inner { padding: 0 16px; }
  nav#site-nav { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .posts-grid { grid-template-columns: 1fr; }
  #hero { padding: 40px 16px; }
  #hero h1 { font-size: 1.5rem; }
}
