/* ============================================================
   Single Blog Post
   (relies on CSS variables defined in homepage.css :root)
   ============================================================ */
.sp-page { background: var(--bg); }
.sp-container { max-width: 820px; }

.sp-article { padding: 40px 0 0; }

.sp-back {
  display: inline-flex;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 20px;
}
.sp-back:hover { text-decoration: underline; }

.sp-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 24px;
}
.sp-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.sp-meta svg { color: var(--purple); flex-shrink: 0; }

/* Inline CTA banner */
.sp-cta-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.sp-cta-inline-text strong { font-size: 14px; color: var(--dark); }
.sp-cta-inline-text p { font-size: 12.5px; color: var(--body); margin-top: 2px; }
.sp-cta-inline-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 11px 22px;
  background: var(--purple);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  transition: var(--trans);
}
.sp-cta-inline-btn:hover { background: var(--purple-dark); }

.sp-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}
.sp-featured-image img { width: 100%; height: auto; display: block; }

/* Article typography */
.sp-content { font-size: 15px; color: var(--body); line-height: 1.85; }
.sp-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--purple-light);
}
.sp-content h2:first-child { margin-top: 0; }
.sp-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-dark);
  margin: 22px 0 8px;
}
.sp-content p { margin-bottom: 16px; }
.sp-content ul, .sp-content ol { margin: 0 0 16px 4px; }
.sp-content li {
  position: relative;
  list-style: none;
  padding-left: 20px;
  margin-bottom: 8px;
}
.sp-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.sp-content ol { counter-reset: sp-ol; }
.sp-content ol li { counter-increment: sp-ol; }
.sp-content ol li::before {
  content: counter(sp-ol) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--purple);
}
.sp-content a { color: var(--purple); text-decoration: underline; }
.sp-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 16px 0; }
.sp-content hr { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.sp-content blockquote {
  border-left: 3px solid var(--purple);
  background: var(--purple-light);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  color: var(--dark);
}

.sp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13.5px;
}
.sp-content th, .sp-content td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
}
.sp-content th {
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 700;
}
.sp-content tr:nth-child(even) td { background: var(--bg); }

.sp-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sp-share span { font-size: 13px; font-weight: 600; color: var(--dark); }
.sp-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}
.sp-share-btn:hover { background: var(--purple); color: #fff; }

/* Comments */
.sp-comments { padding: 32px 0 48px; }
.sp-comments .comments-title { font-size: 19px; font-weight: 800; color: var(--dark); margin-bottom: 18px; }
.sp-comments .comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.sp-comments .comment-list .children { list-style: none; margin: 0; padding-left: 32px; }
.sp-comments .comment-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 14px;
}
.sp-comments .comment-author .fn { font-weight: 700; color: var(--dark); font-style: normal; }
.sp-comments .comment-metadata { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sp-comments .comment-content p { font-size: 13.5px; color: var(--body); line-height: 1.7; }
.sp-comments .no-comments {
  font-size: 13.5px;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.sp-comments .comment-respond {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.sp-comments .comment-reply-title { font-size: 16px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.sp-comments .comment-notes { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.sp-comments .comment-form-comment { margin-bottom: 14px; }
.sp-comments p.comment-form-author,
.sp-comments p.comment-form-email,
.sp-comments p.comment-form-url { margin-bottom: 14px; }
.sp-comments label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.sp-comments .comment-form textarea,
.sp-comments .comment-form input[type="text"],
.sp-comments .comment-form input[type="email"],
.sp-comments .comment-form input[type="url"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
}
.sp-comments .comment-form textarea:focus,
.sp-comments .comment-form input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
}
.sp-comments .form-submit { margin: 0; }
.sp-comments #submit {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--trans);
}
.sp-comments #submit:hover { background: var(--purple-dark); }
.sp-comments .logged-in-as { font-size: 13px; color: var(--body); margin-bottom: 14px; }
.sp-comments .logged-in-as a { color: var(--purple); }

/* Bottom CTA */
.sp-bottom-cta { padding-bottom: var(--section-py); }
.sp-bottom-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #1A0538 0%, #4B1A8A 60%, #7B2FBE 100%);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
}
.sp-bottom-cta-inner h2 { font-size: 20px; font-weight: 800; color: #fff; }
.sp-bottom-cta-inner p { font-size: 13.5px; color: rgba(255,255,255,.75); margin-top: 6px; }
.sp-bottom-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 13px 28px;
  background: #fff;
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  white-space: nowrap;
  transition: var(--trans);
}
.sp-bottom-cta-btn:hover { background: var(--purple-light); transform: translateY(-2px); }

@media (max-width: 640px) {
  .sp-cta-inline, .sp-bottom-cta-inner { flex-direction: column; align-items: flex-start; }
  .sp-cta-inline-btn, .sp-bottom-cta-btn { width: 100%; justify-content: center; }
  .sp-comments .comment-list .children { padding-left: 16px; }
}
