/* ============================================
   Blog Método das 4 Contas - CSS Principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@400;700&display=swap');

:root {
  --primary: #1e3a5f;
  --primary-light: #2c5282;
  --accent: #ffd700;
  --accent-dark: #d4a800;
  --bg: #f8fafc;
  --bg-dark: #0f172a;
  --text: #1a1a2e;
  --text-light: #64748b;
  --text-white: #e2e8f0;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --max-width: 1200px;
  --content-width: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ---- HEADER ---- */
.site-header {
  background: var(--bg-dark);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.25rem;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--bg-dark) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--accent-dark) !important; }

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  color: white;
  padding: 5rem 1.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero h1 .accent { color: var(--accent); }

.hero p {
  font-size: 1.2rem;
  color: var(--text-white);
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 1rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,215,0,0.3);
}

/* ---- MAIN CONTENT ---- */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
}

/* ---- ARTICLE LIST ---- */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-card {
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.article-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
}

.article-card-body {
  padding: 1.5rem;
}

.article-tag {
  display: inline-block;
  background: rgba(30,58,95,0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.article-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.article-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.article-card h2 a:hover { color: var(--primary); }

.article-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ---- SIDEBAR ---- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--primary);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--accent);
}

.ebook-promo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  color: white;
  text-align: center;
}

.ebook-promo h3 {
  color: var(--accent);
  border-bottom-color: rgba(255,255,255,0.2);
}

.ebook-promo p {
  color: var(--text-white);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.ebook-promo .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.5rem 0;
}

.ebook-promo .price-old {
  font-size: 1rem;
  text-decoration: line-through;
  opacity: 0.6;
  margin-right: 0.5rem;
}

.ebook-promo .btn-buy {
  display: block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 1rem;
  transition: background 0.2s;
}

.ebook-promo .btn-buy:hover { background: var(--accent-dark); }

.popular-list {
  list-style: none;
}

.popular-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.popular-list li:last-child { border-bottom: none; }

.popular-list a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.popular-list a:hover { color: var(--primary); }

/* ---- ARTICLE PAGE ---- */
.article-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-page h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary);
}

.article-page .article-meta {
  margin-bottom: 2rem;
  padding: 0;
  border: none;
}

.article-page h2 {
  font-size: 1.5rem;
  margin: 2em 0 0.5em;
  color: var(--primary);
  padding-bottom: 0.3em;
  border-bottom: 2px solid var(--accent);
}

.article-page h3 {
  font-size: 1.2rem;
  margin: 1.5em 0 0.5em;
  color: var(--primary-light);
}

.article-page p {
  margin-bottom: 1em;
  text-align: justify;
}

.article-page ul, .article-page ol {
  margin: 0.5em 0 1.5em 1.5em;
}

.article-page li { margin-bottom: 0.5em; }

.article-page blockquote {
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.article-page strong { color: var(--primary); }

.article-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.article-page th {
  background: var(--primary);
  color: white;
  padding: 10px 14px;
  text-align: left;
}

.article-page td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.article-page tr:nth-child(even) { background: #f1f5f9; }

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
  color: white;
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  margin: 2rem 0;
}

.cta-box h3 { color: var(--accent); margin-bottom: 0.5rem; }
.cta-box p { color: var(--text-white); margin-bottom: 1rem; }
.cta-box a {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

/* ---- FAQ SCHEMA ---- */
.faq-section { margin-top: 2rem; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1rem 1rem;
  color: var(--text-light);
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  color: var(--text-white);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-col a:hover { opacity: 1; color: var(--accent); }

.footer-col li { margin-bottom: 0.5rem; }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .hero h1 { font-size: 2rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .article-page h1 { font-size: 1.6rem; }
}
