/* content-page.css — Styles for blog posts, comparison pages, and content index pages */
/* Uses a glassmorphism card on the site's blue gradient background. */

/* Glass card container */
.content-page {
  max-width: 780px;
  margin: 2rem auto;
  padding: 2.5rem 2.5rem 3rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #f0f0f5;
}

/* Typography */
.content-page h1 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
  color: #fff;
}

.content-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Body content */
.content-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.content-body h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.content-body h3 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.content-body p { margin-bottom: 1.25rem; }
.content-body ul, .content-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.content-body li { margin-bottom: 0.5rem; }
.content-body strong { font-weight: 600; color: #fff; }
.content-body em { font-style: italic; }

.content-body a {
  color: #7dd3fc;
  text-decoration: underline;
  text-decoration-color: rgba(125, 211, 252, 0.4);
  text-underline-offset: 2px;
}
.content-body a:hover {
  text-decoration-color: #7dd3fc;
}

/* Tables */
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.content-body th, .content-body td {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
}

.content-body th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: #fff;
}

.content-body tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Code */
.content-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.content-body pre {
  background: rgba(0, 0, 0, 0.25);
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content-body pre code {
  background: none;
  padding: 0;
}

/* Blockquotes */
.content-body blockquote {
  border-left: 3px solid #7dd3fc;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
}

/* Horizontal rules */
.content-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 2rem 0;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb a {
  color: #7dd3fc;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { margin: 0 0.4rem; }

/* CTA box */
.cta-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.cta-box h3 {
  font-family: 'Comfortaa', sans-serif;
  margin-bottom: 0.75rem;
  color: #fff;
}

.cta-box p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.65);
}

.cta-box .btn-primary {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 200ms ease;
}

.cta-box .btn-primary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Footer */
.content-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.content-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.content-footer .footer-link {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
}

.content-footer .footer-link:hover {
  color: #7dd3fc;
}

/* Blog index */
.page-description {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.post-list { list-style: none; padding: 0; }

.post-card {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.post-card:last-child { border-bottom: none; }

.post-card h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.post-card h2 a {
  color: #fff;
  text-decoration: none;
}

.post-card h2 a:hover { color: #7dd3fc; }

.post-card .post-date {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.5rem;
}

.post-card .post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.post-card .read-more {
  display: inline-block;
  margin-top: 0.5rem;
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.post-card .read-more:hover { text-decoration: underline; }

.section-divider { margin: 2.5rem 0 2rem; }
.section-divider h2 {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

/* Embedded visual components from the landing page */
.embedded-component {
  margin: 2rem -0.5rem;
  padding: 1.5rem 1rem;
  background: rgba(0, 0, 0, 0.18);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

/* Scale kp-demo components to fit content width */
.embedded-component .kp-demo {
  transform-origin: top center;
  width: 100%;
  max-width: 660px;
}

/* Ensure mock UI elements don't interfere with content layout */
.embedded-component .kp-board,
.embedded-component .kp-glass,
.embedded-component .kp-filter {
  font-size: 13px;
}

.embedded-component .comment-thread-mock {
  width: 100%;
  max-width: 500px;
}

/* Palette dots, datatype badges, reaction pills inside content */
.embedded-component .palette-dots,
.embedded-component .datatype-badges,
.embedded-component .reaction-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* Responsive */
@media (max-width: 600px) {
  .content-page {
    margin: 1rem;
    padding: 1.5rem 1.25rem 2.5rem;
    border-radius: 14px;
  }
  .content-page h1 { font-size: 1.5rem; }
  .content-body h2 { font-size: 1.25rem; }
  .content-body h3 { font-size: 1.1rem; }
  .content-body table { font-size: 0.85rem; }
  .content-body th, .content-body td { padding: 0.5rem; }
  .embedded-component { margin: 1.5rem -0.25rem; padding: 1rem 0.5rem; }
  .embedded-component .kp-demo { font-size: 11px; }
}
