/* ============================================================
 * evalshare.com LP Shared CSS v1.0
 * Loaded on all 15 LP posts via Rehub wp_footer hook
 * Created: 2026-06-11
 * Owner: Mavis
 *
 * Adds the following 6 things to every LP (idempotent — safe to
 * re-inject on existing LPs without breaking layouts):
 *   1. .lp-skip-link        - a11y skip-to-main-content
 *   2. .lp-reading-time     - visual reading time chip
 *   3. .lp-trust-badges     - 4 trust icons row above/below CTAs
 *   4. .lp-sticky-cta       - mobile bottom-fixed CTA (viewport<768)
 *   5. .lp-toc              - in-page table of contents
 *   6. .lp-related          - 3-up related LP cards
 *   7. .lp-inline-eeat      - in-article E-E-A-T aside
 *   8. .lp-lastupdated-prominent - dateModified visible bar
 *   9. .lp-faq-highlight    - bold key-term highlight
 *  10. .lp-anchor           - scroll-margin for sticky header
 *
 * Independent of LP-specific .lp-* class names from individual
 * LP HTML (those stay inline in post_content).
 * ============================================================ */

/* --- 1. Skip link (a11y) --- */
.lp-skip-link {
  position: absolute;
  top: -100px;
  left: 8px;
  background: #1A237E;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  z-index: 99999;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.lp-skip-link:focus {
  top: 8px;
  outline: 3px solid #E65100;
}

/* --- 2. Reading time chip --- */
.lp-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E8EAF6;
  color: #1A237E;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  margin: 8px 0 12px;
  letter-spacing: 0.03em;
}
.lp-reading-time::before {
  content: "\23F1";
  font-size: 13px;
}

/* --- 3. Trust badges row --- */
.lp-trust-badges {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px auto 0;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}
.lp-trust-badges-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.lp-trust-badges-item-icon { font-size: 14px; }
.lp-trust-badges--light {
  color: #64748b;
}
.lp-trust-badges--light .lp-trust-badges-item {
  color: #475569;
}

/* --- 4. Sticky mobile CTA --- */
.lp-sticky-cta { display: none; }
@media (max-width: 768px) {
  .lp-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 2px solid #1A237E;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    padding: 10px 14px 12px;
    z-index: 9999;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .lp-sticky-cta-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .lp-sticky-cta-price {
    flex: 1;
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    line-height: 1.3;
  }
  .lp-sticky-cta-price strong {
    display: block;
    color: #1A237E;
    font-size: 18px;
    font-weight: 800;
  }
  .lp-sticky-cta-btn {
    flex: 0 0 auto;
    background: #E65100;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(230,81,0,0.3);
    white-space: nowrap;
  }
  body { padding-bottom: 70px; }
}

/* --- 5. TOC in-page nav --- */
.lp-toc {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-left: 4px solid #1A237E;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 24px auto;
  max-width: 900px;
  font-size: 14px;
}
.lp-toc-title {
  font-weight: 800;
  color: #1A237E;
  font-size: 15px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.lp-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}
.lp-toc-list a {
  color: #1f2937;
  text-decoration: none;
  display: block;
  padding: 4px 0;
  border-bottom: 1px dotted #cbd5e1;
  transition: color 0.2s, padding-left 0.2s;
}
.lp-toc-list a:hover {
  color: #1A237E;
  padding-left: 6px;
  border-bottom-color: #1A237E;
}
.lp-toc-list-sub {
  list-style: none;
  padding-left: 18px;
  margin: 4px 0 0;
  font-size: 12px;
}
.lp-toc-list-sub a {
  color: #64748b;
  font-weight: 400;
  border-bottom: none;
}
@media (max-width: 640px) {
  .lp-toc-list { grid-template-columns: 1fr; }
}

/* --- 6. Related LP grid (3-up) --- */
.lp-related {
  background: #fafaf8;
  border-top: 1px solid #e5e7eb;
  padding: 40px 20px;
  margin-top: 40px;
}
.lp-related-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.lp-related-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #1A237E;
  margin-bottom: 24px;
}
.lp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.lp-related-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #1a202c;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.lp-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border-color: #1A237E;
}
.lp-related-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
  background: #f1f5f9;
}
.lp-related-card-body { padding: 14px 16px; }
.lp-related-card-cat {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1A237E;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.lp-related-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 6px;
  color: #1a202c;
}
.lp-related-card-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 10px;
  align-items: center;
}
.lp-related-card-meta-star { color: #f59e0b; }
@media (max-width: 768px) {
  .lp-related-grid { grid-template-columns: 1fr; }
}

/* --- 7. In-article E-E-A-T aside --- */
.lp-inline-eeat {
  background: #f0f7f0;
  border-left: 4px solid #4dbc15;
  padding: 16px 20px;
  margin: 32px auto;
  max-width: 900px;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: #1a3d0a;
  line-height: 1.6;
}
.lp-inline-eeat strong { color: #1a3d0a; }
.lp-inline-eeat a { color: #1a3d0a; font-weight: 600; }
.lp-inline-eeat-icon { display: inline-block; margin-right: 4px; }

/* --- 8. dateModified prominent display --- */
.lp-lastupdated-prominent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #fff8e1;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  color: #78350f;
  margin: 12px auto;
  max-width: 1100px;
}
.lp-lastupdated-prominent .lp-lastupdated-pill {
  background: #92400e;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* --- 9. FAQ key-term bold highlight --- */
.lp-faq-highlight {
  background: linear-gradient(180deg, transparent 60%, #fff59d 60%);
  font-weight: 700;
  padding: 0 2px;
}

/* --- 10. Section anchor offset (for sticky header compatibility) --- */
.lp-anchor {
  scroll-margin-top: 80px;
  display: block;
}

/* --- 11. Generic responsive utility --- */
@media (max-width: 640px) {
  .lp-hide-mobile { display: none !important; }
  .lp-trust-badges { gap: 10px; font-size: 11px; }
}
