/* ============================================================
   Presstiva Blog — WordPress Twenty Twenty-Five Overrides
   Brand: #8B5CF6 → #7C3AED violet gradient
   Fonts: DM Sans (body), Plus Jakarta Sans (headings)
   ============================================================ */

/* --- Global --- */
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* --- Header / Site Title --- */
.wp-block-site-title a {
  text-decoration: none !important;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* --- Post Cards on Blog Index --- */
.wp-block-post {
  border: 1px solid #F0F0F5;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.wp-block-post:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

/* Featured image container */
.wp-block-post-featured-image {
  border-radius: 0.75rem 0.75rem 0 0;
  overflow: hidden;
}
.wp-block-post-featured-image img {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

/* Post title links */
.wp-block-post-title a {
  text-decoration: none;
  color: #0A0A0F;
}
.wp-block-post-title a:hover {
  color: #8B5CF6;
}

/* Post meta */
.wp-block-post-date,
.wp-block-post-terms {
  font-size: 0.8125rem;
  color: #94A3B8;
}
.wp-block-post-terms a {
  color: #8B5CF6;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* --- Single Post Content --- */
.entry-content h2,
.wp-block-post-content h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 2.5rem;
}
.entry-content h3,
.wp-block-post-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin-top: 2rem;
}

/* KB-style callout boxes (preserved from KB import) */
.kb-tip {
  background: #F0FDF4;
  border-left: 3px solid #22C55E;
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}
.kb-warning {
  background: #FFFBEB;
  border-left: 3px solid #F59E0B;
  border-radius: 0.625rem;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.9375rem;
}

/* --- Tag / Category Pills --- */
.wp-block-post-terms a,
.tag-cloud-link {
  background: #FAF5FF;
  color: #8B5CF6;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background 0.15s;
}
.wp-block-post-terms a:hover,
.tag-cloud-link:hover {
  background: #EDE9FE;
}

/* --- Pagination --- */
.wp-block-query-pagination a {
  color: #8B5CF6;
  font-weight: 600;
}
.wp-block-query-pagination a:hover {
  text-decoration: underline;
}

/* --- CTA Banner (auto-appended to posts) --- */
.presstiva-cta-banner a:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-1px);
}

/* --- Footer Styling --- */
.wp-block-template-part.site-footer {
  border-top: 1px solid #F0F0F5;
  font-size: 0.8125rem;
  color: #94A3B8;
}

/* --- Buttons --- */
.wp-block-button__link {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED) !important;
  border-radius: 0.625rem !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  transition: box-shadow 0.2s, transform 0.2s;
}
.wp-block-button__link:hover {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.45);
  transform: translateY(-1px);
}

/* --- Reading Time (via plugin or custom field) --- */
.presstiva-reading-time {
  font-size: 0.8125rem;
  color: #94A3B8;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .wp-block-post {
    border-radius: 0.5rem;
  }
  .presstiva-cta-banner {
    padding: 2rem 1.25rem !important;
    border-radius: 0.75rem !important;
  }
}
