/* SEO / blog pages — extends style.css (yellow header, site tokens) */

.seo-page {
  padding: 32px 0 64px;
}

.seo-preview-banner {
  background: #fff3cd;
  border-bottom: 1px solid #ffc107;
  color: #664d03;
  padding: 12px 0;
  font-size: 14px;
}

.seo-preview-banner .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
}

.seo-preview-banner a {
  color: #000;
  font-weight: 600;
}

.seo-preview-banner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.seo-breadcrumbs {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding: 0;
}

.seo-breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.seo-breadcrumbs li {
  display: inline-flex;
  align-items: center;
}

.seo-breadcrumbs a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

.seo-breadcrumbs a:hover {
  text-decoration: underline;
}

.seo-breadcrumbs .sep {
  color: var(--text-secondary);
  user-select: none;
}

.seo-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 20px;
  color: var(--text-color);
}

.seo-page h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text-color);
}

.seo-section {
  margin-bottom: 40px;
}

.seo-intro,
.seo-outro,
.seo-tips {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-color);
  max-width: 820px;
}

.seo-intro p,
.seo-outro p,
.seo-tips p {
  margin-bottom: 1em;
}

.seo-intro a,
.seo-outro a,
.seo-tips a {
  color: var(--primary-color);
  font-weight: 500;
}

.seo-cta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 36px;
}

.seo-settings-box {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 36px;
  max-width: 820px;
}

.seo-settings-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.seo-settings-box li {
  margin-bottom: 8px;
}

.seo-prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.seo-prompt-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.seo-prompt-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.seo-prompt-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: var(--bg-light);
}

.seo-prompt-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.seo-prompt-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.35;
}

.seo-prompt-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
  flex: 1;
  line-height: 1.45;
}

.seo-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.seo-prompt-actions .btn {
  width: 100%;
  justify-content: center;
}

.seo-faq-list {
  max-width: 820px;
}

.seo-faq-item {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.seo-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 20px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.seo-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.seo-faq-item[open] summary::after {
  content: '−';
}

.seo-faq-item > div {
  padding: 0 20px 16px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.seo-faq-item > div p {
  margin: 0 0 0.75em;
}

.seo-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.seo-related-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-color);
  transition: var(--transition);
}

.seo-related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.seo-related-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.seo-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.seo-card-link {
  display: block;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.seo-card-link:hover {
  box-shadow: var(--shadow-hover);
}

.seo-card-link h2,
.seo-card-link h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.seo-empty {
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .seo-prompts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .seo-page {
    padding: 24px 0 48px;
  }
}

@media (max-width: 480px) {
  .seo-prompts-grid {
    grid-template-columns: 1fr;
  }
}

/* Blog article content — images & infographics */
.blog-content .blog-figure {
  margin: 28px 0;
  max-width: 820px;
}

.blog-content .blog-figure img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border-color);
}

.blog-content .blog-figure-wide {
  max-width: 100%;
}

.blog-content .blog-figure-wide img {
  border-radius: 12px;
}

.blog-content .blog-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
}

.blog-content img:not(.blog-figure img) {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 20px 0;
}

.seo-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}

/* Blog tables */
.blog-content .blog-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.blog-content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg-color);
}

.blog-content th,
.blog-content td {
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.blog-content thead th {
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-color);
}

.blog-content tbody tr:nth-child(even) {
  background: #fafafa;
}

.blog-content tbody tr:hover {
  background: #f3f4f6;
}

@media (max-width: 640px) {
  .blog-content table {
    font-size: 14px;
  }

  .blog-content th,
  .blog-content td {
    padding: 10px 12px;
  }
}
