/* =============================================
   Agent One Blog Styles
   Extends landing.css variables
   ============================================= */

/* Inherit all CSS variables from landing.css via :root */

/* ===== BLOG LAYOUT ===== */
.blog-body {
  display: block;
  padding: 0;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.6;
}

/* ===== BLOG HEADER ===== */
.blog-header {
  padding-top: 100px;
  padding-bottom: 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.blog-header h1 {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.blog-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* ===== POST LISTING ===== */
.blog-listing {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.post-card {
  display: block;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 1.25rem;
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(124, 106, 239, 0.08);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-card-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.post-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

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

.post-card .read-more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

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

.breadcrumbs .breadcrumb-sep {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.breadcrumbs .breadcrumb-current {
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 300px;
}

/* ===== ARTICLE PAGE ===== */
.article-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding-top: 80px;
  margin-bottom: 2rem;
  transition: color 0.15s;
}

.article-back:hover {
  color: var(--accent);
}

.article-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #3a3d4e;
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.article-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content strong {
  color: var(--text);
  font-weight: 600;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.article-content code {
  font-size: 0.9em;
  background: var(--bg-secondary);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--text);
}

.article-content ol,
.article-content ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-secondary);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Step boxes inside articles */
.step-box {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-card);
  margin-bottom: 1rem;
}

.step-box .step-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* ===== MID-ARTICLE CTA ===== */
.mid-article-cta {
  margin: 2rem 0;
  padding: 1rem 1.25rem;
  background: var(--accent-light);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
  font-size: 1rem;
}

.mid-article-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mid-article-cta a:hover {
  color: var(--accent-hover);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.faq-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.faq-section details {
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  background: var(--bg-card);
  overflow: hidden;
}

.faq-section details[open] {
  border-color: var(--accent);
}

.faq-section summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.faq-section details[open] summary::after {
  content: '\2212';
}

.faq-section .faq-answer {
  padding: 0 1.25rem 1rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a3d4e;
}

/* ===== ARTICLE CTA ===== */
.article-cta {
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  background: var(--accent-light);
  border-radius: 16px;
  text-align: center;
}

.article-cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.article-cta p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
}

.article-cta .cta-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--accent);
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}

.article-cta .cta-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .blog-header {
    padding-top: 80px;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .blog-header h1 {
    font-size: 1.75rem;
  }

  .blog-listing {
    padding: 0 1.25rem 3rem;
  }

  .post-card {
    padding: 1.5rem;
  }

  .post-card h2 {
    font-size: 1.15rem;
  }

  .article-wrapper {
    padding: 0 1.25rem 3rem;
  }

  .article-back {
    padding-top: 70px;
  }

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

  .article-content {
    font-size: 1rem;
  }

  .article-content h2 {
    font-size: 1.3rem;
  }

  .article-cta {
    padding: 2rem 1.25rem;
  }

  .breadcrumbs {
    flex-wrap: wrap;
  }

  .breadcrumbs .breadcrumb-current {
    max-width: 200px;
  }
}
