/* content.css — Shared stylesheet for MoltPe SEO/AEO content pages */
/* Dark theme, optimized for readability and AI engine citation */

/* ==========================================================================
   1. CSS Variables — Design tokens from moltpe.com
   ========================================================================== */

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #1A1A1A;
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0A0;
  --accent-gold: #F59E0B;
  --accent-hover: #D97706;
  --border-color: #2A2A2A;
  --code-bg: #1E1E1E;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
  --body-size: 17px;
  --line-height: 1.7;
  --max-width: 800px;
  --radius: 8px;
  --transition: 0.2s ease;
}

/* ==========================================================================
   2. Reset — Normalize box model
   ========================================================================== */

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

/* ==========================================================================
   3. Body — Dark background, system font
   ========================================================================== */

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-stack);
  font-size: var(--body-size);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   4. Navigation bar — Sticky, blurred background, gold logo
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.nav-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-gold);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition);
}

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

/* ==========================================================================
   5. Article container — Centered, padded
   ========================================================================== */

.article-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ==========================================================================
   6. Answer box — Key AEO element for AI engine citation
   ========================================================================== */

.answer-box {
  border-left: 4px solid var(--accent-gold);
  background: var(--bg-secondary);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  line-height: 1.8;
}

.answer-box p {
  margin: 0;
  color: var(--text-primary);
}

.answer-box strong {
  color: var(--accent-gold);
}

/* ==========================================================================
   7. Headings
   ========================================================================== */

h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 48px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

/* ==========================================================================
   8. Article meta — Date, author, muted text
   ========================================================================== */

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.article-meta time,
.article-meta .author {
  color: var(--text-secondary);
}

.article-meta .separator {
  color: var(--border-color);
}

/* ==========================================================================
   9. Table of contents — Bordered box with links
   ========================================================================== */

.toc {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
  background: var(--bg-secondary);
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.toc ol {
  list-style: decimal;
  padding-left: 20px;
}

.toc li {
  margin-bottom: 8px;
}

.toc a {
  color: var(--accent-gold);
  text-decoration: none;
  font-size: 15px;
  transition: color var(--transition);
}

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

/* ==========================================================================
   10. Paragraphs and links
   ========================================================================== */

p {
  margin-bottom: 20px;
  color: var(--text-primary);
}

a {
  color: var(--accent-gold);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul, ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

/* ==========================================================================
   11. Comparison tables — Dark header, gold text, hover rows
   ========================================================================== */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.comparison-table thead th {
  background: var(--bg-secondary);
  color: var(--accent-gold);
  font-weight: 600;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 2px solid var(--border-color);
}

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

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

/* ==========================================================================
   12. Code blocks — Dark background, monospace, scroll
   ========================================================================== */

code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-gold);
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   13. FAQ section — Question/answer pairs with bottom borders
   ========================================================================== */

.faq-section {
  margin: 48px 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 24px 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-question {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.faq-answer {
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-answer p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ==========================================================================
   14. CTA block — Gradient background, gold border, centered button
   ========================================================================== */

.cta-block {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius);
  padding: 48px 32px;
  margin: 48px 0;
  text-align: center;
}

.cta-block h2 {
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background: var(--accent-gold);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
}

.cta-button:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
}

/* ==========================================================================
   15. About MoltPe footer — Entity optimization block for every page
   ========================================================================== */

.about-moltpe {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0 0;
}

.about-moltpe h2 {
  font-size: 20px;
  border-bottom: none;
  margin-top: 0;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.about-moltpe p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 12px;
}

.about-moltpe p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   16. Glossary grid — Single column cards for term definitions
   ========================================================================== */

.glossary-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 32px 0;
}

.glossary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
}

.glossary-term {
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.glossary-definition {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================================================
   17. Use case cards — Responsive grid, hover border effect
   ========================================================================== */

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 32px 0;
}

.use-case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.use-case-card:hover {
  border-color: var(--accent-gold);
}

.use-case-card h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 8px;
}

.use-case-card p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 0;
}

/* ==========================================================================
   18. Responsive — Mobile breakpoint at 768px
   ========================================================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .nav-links {
    display: none;
  }

  .article-container {
    padding: 32px 16px 60px;
  }

  .answer-box {
    padding: 20px;
    font-size: 16px;
  }

  .cta-block {
    padding: 32px 20px;
  }

  .use-case-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 14px;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 10px 12px;
  }

  .toc {
    padding: 20px;
  }

  .about-moltpe {
    padding: 24px 20px;
  }
}
