/* ============================================ */
/* HOW COMPOUND INTEREST WORKS - ARTICLE STYLES */
/* ============================================ */

/* ============================================ */
/* ARTICLE CONTAINER */
/* ============================================ */

.blog-article {
  padding: 40px 0 60px;
  background: var(--bg);
}

/* ============================================ */
/* ARTICLE HEADER */
/* ============================================ */

.article-header {
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
}

.article-category {
  display: inline-block;
  padding: 6px 14px;
  background: var(--accent-light, #dbeafe);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-header h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 800;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.article-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.article-intro {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: left;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================ */
/* TABLE OF CONTENTS */
/* ============================================ */

.article-toc {
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 24px 28px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}

.article-toc h2 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 700;
}

.article-toc ol {
  margin-left: 20px;
  line-height: 2;
  color: var(--text-secondary);
}

.article-toc li {
  padding: 2px 0;
}

.article-toc a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.article-toc a:hover {
  text-decoration: underline;
  color: var(--accent-dark, #1d4ed8);
}

/* ============================================ */
/* ARTICLE SECTIONS */
/* ============================================ */

.article-section {
  max-width: 800px;
  margin: 0 auto 48px;
}

.article-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}

.article-section h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: var(--text);
  font-weight: 700;
}

.article-section p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-section ul,
.article-section ol {
  margin-left: 24px;
  line-height: 1.9;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-section li {
  padding: 4px 0;
}

.article-section strong {
  color: var(--text);
  font-weight: 700;
}

/* ============================================ */
/* CALLOUTS */
/* ============================================ */

.article-callout {
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-callout.warning {
  border-left-color: #f59e0b;
  background: #fef3c7;
}

.article-callout.warning h3 {
  color: #92400e;
}

.article-callout.warning p {
  color: #78350f;
}

.article-callout h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text);
}

.article-callout p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ============================================ */
/* TABLES */
/* ============================================ */

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.article-table th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.article-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-table tr:last-child td {
  border-bottom: none;
}

.article-table tr:hover {
  background: var(--bg-secondary);
}

/* ============================================ */
/* FORMULA BOXES */
/* ============================================ */

.formula-box,
.formula-box-large {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', 'Monaco', monospace;
  text-align: center;
  overflow-x: auto;
}

.formula-box-large {
  padding: 28px;
  border-left: 4px solid var(--accent);
}

.formula-box code,
.formula-box-large code {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.8;
  display: inline-block;
}

.formula-box-large code {
  font-size: 1.25rem;
}

.formula-legend {
  list-style: none;
  padding: 20px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  margin: 20px 0;
}

.formula-legend li {
  padding: 6px 0;
  color: var(--text-secondary);
}

.formula-legend strong {
  color: var(--accent);
  font-family: 'Courier New', monospace;
  font-weight: 700;
}

/* ============================================ */
/* CTA BOXES */
/* ============================================ */

.article-cta {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark, #1d4ed8) 100%);
  border-radius: var(--radius);
  text-align: center;
  color: white;
}

.article-cta p {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 16px;
  font-weight: 600;
}

.cta-button,
.cta-button-large {
  display: inline-block;
  padding: 14px 28px;
  background: white;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transition: all 0.15s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover,
.cta-button-large:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta-button-large {
  padding: 18px 36px;
  font-size: 1.1rem;
}

.article-cta-final {
  text-align: center;
  margin: 32px 0;
}

/* ============================================ */
/* FAQ ITEMS */
/* ============================================ */

.article-section .faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.article-section .faq-item:last-child {
  border-bottom: none;
}

.article-section .faq-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  margin-top: 0;
  color: var(--text);
  font-weight: 700;
}

.article-section .faq-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================ */
/* CONCLUSION */
/* ============================================ */

.article-conclusion {
  max-width: 800px;
  margin: 48px auto;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-conclusion h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 700;
}

.article-conclusion p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-conclusion ol {
  margin-left: 24px;
  line-height: 2;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article-conclusion li {
  padding: 4px 0;
}

/* ============================================ */
/* RELATED ARTICLES */
/* ============================================ */

.article-related {
  max-width: 800px;
  margin: 48px auto 0;
  padding: 24px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.article-related h2 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
}

.article-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-related li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.article-related li:last-child {
  border-bottom: none;
}

.article-related a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.article-related a:hover {
  text-decoration: underline;
}

/* ============================================ */
/* BREADCRUMBS */
/* ============================================ */

.breadcrumb-nav {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-list a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================ */
/* MOBILE RESPONSIVE */
/* ============================================ */

@media (max-width: 768px) {
  .blog-article {
    padding: 20px 0 40px;
  }

  .article-header h1 {
    font-size: 1.85rem;
  }

  .article-section h2 {
    font-size: 1.5rem;
  }

  .article-section h3 {
    font-size: 1.15rem;
  }

  .article-section p,
  .article-section ul,
  .article-section ol {
    font-size: 1rem;
  }

  .article-meta {
    flex-direction: column;
    gap: 8px;
  }

  .article-toc {
    padding: 18px 20px;
  }

  .article-conclusion {
    padding: 24px 20px;
  }

  .article-callout {
    padding: 16px 18px;
  }

  .formula-box-large {
    padding: 20px 16px;
  }

  .formula-box-large code {
    font-size: 1rem;
  }

  .article-table th,
  .article-table td {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .cta-button,
  .cta-button-large {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .article-header h1 {
    font-size: 1.55rem;
  }

  .article-section h2 {
    font-size: 1.35rem;
  }

  .article-category {
    font-size: 0.75rem;
  }
}