/* Universal Blog Article Styles */
:root {
    --primary-accent: #4A90E2; /* From main site styles */
    --blog-parchment: #fdfbf7;
    --blog-ink: #2d3436;
    --blog-purple: #2c0e37;
    --blog-gold: #c5a059;
    --blog-blue: #1e3799;
    --blog-red: #c0392b;
    --blog-border: #e0e0e0;
}

[data-theme="dark"] {
    --blog-parchment: #1A1B26;
    --blog-ink: #C9D1D9;
    --blog-border: #30363D;
}

body.blog-article {
    font-family: 'Inter', sans-serif;
    color: var(--blog-ink);
    background-color: var(--blog-parchment);
    line-height: 1.9;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
    font-family: 'Merriweather', serif;
    color: var(--blog-purple);
}

[data-theme="dark"] .article-body h1,
[data-theme="dark"] .article-body h2,
[data-theme="dark"] .article-body h3,
[data-theme="dark"] .article-body h4 {
    color: var(--primary); /* Use main site's primary blue for dark mode headers */
}

h1.article-title {
    font-size: 2.5rem;
    font-family: 'Merriweather', serif;
    text-align: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--blog-gold);
    padding-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.intro-block {
    background: linear-gradient(135deg, #2c0e37 0%, #4a1c5c 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
}

[data-theme="dark"] .intro-block {
    background: linear-gradient(135deg, #242936 0%, #30363D 100%);
    border-color: rgba(255,255,255,0.1);
}

.toc-container {
    background: #fff;
    border: 1px solid var(--blog-border);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

[data-theme="dark"] .toc-container {
    background: #242936;
}

.toc-list {
    columns: 2;
    list-style-type: none;
    padding: 0;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-list a {
    text-decoration: none;
    color: var(--primary-accent);
    font-weight: 600;
    transition: color 0.3s;
}

.toc-list a:hover {
    color: var(--blog-gold);
}

[data-theme="dark"] .toc-list a {
    color: var(--primary);
}

/* Tables */
.gematria-table, .summary-table, .comparison-table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.95em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.gematria-table th, .summary-table th, .comparison-table th {
  background-color: #f2f2f2;
  color: white;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  font-family: 'Inter', serif;
  color: var(--blog-ink);
}

.gematria-table td, .summary-table td, .comparison-table td {
  border: 1px solid var(--blog-border);
  padding: 15px;
  text-align: center;
}

.gematria-table tr:nth-child(even),
.summary-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

[data-theme="dark"] .gematria-table, 
[data-theme="dark"] .summary-table,
[data-theme="dark"] .comparison-table {
    background: #242936;
}

[data-theme="dark"] .gematria-table tr:nth-child(even),
[data-theme="dark"] .summary-table tr:nth-child(even) {
  background-color: #2a2f3c;
}

.hebrew-letter {
    font-size: 1.5em;
    font-family: 'Times New Roman', serif;
}

.comparison-table .pros-col { background-color: #f0fff0; border-left: 3px solid #27ae60; }
.comparison-table .cons-col { background-color: #fff0f0; border-left: 3px solid #c0392b; }


/* Highlight Boxes */
.highlight-box, .highlight-card, .warning-box {
    padding: 2rem;
    margin: 2.5rem 0;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.highlight-box, .highlight-card {
    background-color: #fff3cd;
    border-left: 5px solid var(--blog-gold);
}

.warning-box {
    background-color: #ffebee;
    border-left: 5px solid var(--blog-red);
}

.highlight-box h4, .highlight-card h4 {
    margin-top: 0;
    color: var(--blog-purple);
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
}

.warning-box h4 {
    margin-top: 0;
    color: var(--blog-purple);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

[data-theme="dark"] .highlight-box,
[data-theme="dark"] .highlight-card {
    background-color: #3e382b;
}

[data-theme="dark"] .warning-box {
    background-color: #4d2a2a;
}

/* Images & Captions */
.article-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.caption {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: -1.5rem;
    margin-bottom: 2.5rem;
    font-style: italic;
}

blockquote {
  border-left: 4px solid var(--blog-gold);
  margin: 2em 0;
  padding: 1em 20px;
  font-style: italic;
  background-color: #fff;
  font-family: 'Merriweather', serif;
  color: #444;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

[data-theme="dark"] blockquote {
    background-color: #242936;
    color: var(--blog-ink);
}

/* Verdict Box from how-to-use-gematria-in-life.php */
.verdict-box {
    background-color: #f8f9fa;
    border: 2px solid #2c0e37;
    padding: 1.5rem;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    font-family: 'Merriweather', serif;
    color: #2c0e37;
}

[data-theme="dark"] .verdict-box {
    background-color: #2a2f3c;
    border-color: var(--blog-gold);
    color: var(--blog-ink);
}

.step-header {
    font-family: 'Merriweather', serif;
}

/* Responsive */
@media (max-width: 768px) {
    .toc-list { columns: 1; }
    h1.article-title { font-size: 2rem; }
    .intro-block { padding: 1.5rem; }
    .gematria-table, .summary-table, .comparison-table { font-size: 0.9rem; }
    .gematria-table td, .summary-table td, .comparison-table td { padding: 10px; }
}