/* ============================================================
   aihumanizers.ai - Legacy Tool Review Posts Polish
   Targets the shared .aiht-legacy-review wrapper class
   applied by aiht-content-wrap-fix-v2.php mu-plugin.
   ============================================================ */

/* --- BASE WRAPPER POLISH --- */
.aiht-legacy-review {
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 0 20px 40px !important;
}

/* --- SECTION SPACING --- */
.aiht-legacy-review section {
  padding: 28px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}
.aiht-legacy-review section:last-of-type {
  border-bottom: none !important;
}

/* --- HERO SECTION --- */
.aiht-legacy-review section[id$="-hero"] {
  padding: 32px 24px !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,0.03) !important;
  margin-bottom: 12px !important;
}

/* --- HEADINGS --- */
.aiht-legacy-review h1 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  margin: 20px 0 16px !important;
  color: #fff !important;
}
.aiht-legacy-review h2 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 12px !important;
  color: #fff !important;
}
.aiht-legacy-review h3 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif !important;
  font-size: 1.15rem !important;
  font-weight: 600 !important;
  margin: 16px 0 8px !important;
  color: #fff !important;
}

/* --- BODY TEXT --- */
.aiht-legacy-review p {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
  font-size: 0.95rem !important;
  line-height: 1.65 !important;
  color: rgba(255,255,255,0.72) !important;
  margin: 0 0 12px !important;
}

/* --- BOLD LABELS (use-case items, feature titles) --- */
.aiht-legacy-review section b,
.aiht-legacy-review section strong {
  display: block !important;
  color: #fff !important;
  font-size: 0.95rem !important;
  margin-top: 14px !important;
  margin-bottom: 4px !important;
}
/* Exception: inline bold within paragraphs */
.aiht-legacy-review p b,
.aiht-legacy-review p strong,
.aiht-legacy-review li b,
.aiht-legacy-review li strong {
  display: inline !important;
  margin: 0 !important;
}

/* --- FEATURE ITEMS (emoji + title + description) --- */
.aiht-legacy-review section[id$="-features"] b,
.aiht-legacy-review section[id$="-features"] strong {
  display: block !important;
  font-size: 1rem !important;
  padding: 14px 0 2px !important;
  border-top: 1px solid rgba(255,255,255,0.05) !important;
  margin-top: 0 !important;
}
.aiht-legacy-review section[id$="-features"] b:first-of-type,
.aiht-legacy-review section[id$="-features"] strong:first-of-type {
  border-top: none !important;
}

/* --- PLANS / PRICING SECTION --- */
.aiht-legacy-review section[id$="-plans"] h3 {
  font-size: 1.2rem !important;
  padding: 16px 0 4px !important;
  margin-top: 20px !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}
.aiht-legacy-review section[id$="-plans"] h3:first-of-type {
  border-top: none !important;
  margin-top: 4px !important;
}

/* --- LISTS --- */
.aiht-legacy-review ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 8px 0 16px !important;
}
.aiht-legacy-review ul li {
  padding: 5px 0 !important;
  color: rgba(255,255,255,0.72) !important;
  font-size: 0.93rem !important;
  line-height: 1.5 !important;
}

/* --- REVIEWS SECTION --- */
.aiht-legacy-review section[id$="-reviews"] {
  display: block !important;
}
/* Star ratings */
.aiht-legacy-review section[id$="-reviews"] p {
  margin-bottom: 6px !important;
}

/* --- FAQ ACCORDIONS --- */
.aiht-legacy-review details {
  border: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 10px !important;
  margin: 8px 0 !important;
  overflow: hidden !important;
  background: rgba(255,255,255,0.02) !important;
}
.aiht-legacy-review details + details {
  margin-top: 6px !important;
}
.aiht-legacy-review summary {
  padding: 14px 18px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  color: #fff !important;
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.aiht-legacy-review summary::-webkit-details-marker { display: none !important; }
.aiht-legacy-review summary::after {
  content: '+' !important;
  font-size: 1.2rem !important;
  color: rgba(255,255,255,0.5) !important;
  transition: transform 0.2s !important;
}
.aiht-legacy-review details[open] summary::after {
  content: '-' !important;
}
.aiht-legacy-review details p {
  padding: 0 18px 14px !important;
  margin: 0 !important;
}

/* --- "HELPFUL NEXT STEPS" BOX --- */
.aiht-legacy-review section[id$="-integration"],
.aiht-legacy-review section:last-of-type {
  border: 1px solid rgba(75,142,255,0.15) !important;
  border-radius: 14px !important;
  padding: 24px !important;
  background: rgba(75,142,255,0.04) !important;
  margin-top: 20px !important;
}
/* Internal links within next-steps */
.aiht-legacy-review section:last-of-type a,
.aiht-legacy-review section[id$="-integration"] a {
  color: #4b8eff !important;
  text-decoration: none !important;
  font-weight: 600 !important;
}
.aiht-legacy-review section:last-of-type a:hover,
.aiht-legacy-review section[id$="-integration"] a:hover {
  text-decoration: underline !important;
}

/* --- LINKS (general) --- */
.aiht-legacy-review a {
  color: #4b8eff !important;
  text-decoration: none !important;
}
.aiht-legacy-review a:hover {
  text-decoration: underline !important;
}

/* --- CHECKLIST ITEMS (em with checkmarks) --- */
.aiht-legacy-review em {
  font-style: normal !important;
  color: #34D399 !important;
  margin-right: 6px !important;
}

/* --- POST NAV (Next/Prev) --- */
.aiht-legacy-review ~ .post-nav,
.aiht-legacy-review ~ .navigation,
.post-navigation,
.nav-links {
  margin-top: 24px !important;
}

/* --- HIDE REHUB JUNK on all single posts --- */
.single-post .woocommerce-wishlist-link,
.single-post .wishlist_link,
.single-post .rh-post-wishlist,
.single-post .added_to_wishlist,
.single-post .wl-already-in,
.single-post .wl-btn-wrap,
.single-post [class*="wishlist"],
.single-post .rh-post-share,
.single-post .post_share,
.single-post .post-share-box {
  display: none !important;
}

/* Related articles below post - fix broken layout */
.single-post .related_articles,
.single-post .rh-related-posts,
.single-post .post-related-articles {
  display: none !important;
}

/* Hide comment form on legacy review posts (these aren't real blogs) */
body.postid-916 .comments-area,
body.postid-925 .comments-area,
body.postid-943 .comments-area,
body.postid-958 .comments-area,
body.postid-967 .comments-area,
body.postid-976 .comments-area,
body.postid-981 .comments-area,
body.postid-986 .comments-area,
body.postid-1007 .comments-area {
  display: none !important;
}

/* --- BREADCRUMB POLISH --- */
.aiht-legacy-review ~ .breadcrumb,
.breadcrumb {
  font-size: 0.82rem !important;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .aiht-legacy-review {
    padding: 0 14px 30px !important;
  }
  .aiht-legacy-review h1 {
    font-size: 1.6rem !important;
  }
  .aiht-legacy-review h2 {
    font-size: 1.25rem !important;
  }
  .aiht-legacy-review section[id$="-hero"] {
    padding: 20px 16px !important;
  }
}
