/* ================================================
   CONTENT STYLES — Junkyard Listicles & Blog Posts
   Styles existing HTML classes from legacy content
   so all 100+ posts match the Clunqr theme.
   ================================================ */

/* Intro paragraphs */
.post-content .intro {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 24px;
}
.post-content .intro:first-of-type {
  font-size: 19px;
  color: var(--black);
}

/* CTA block (inline Clunqr pitch) */
.cta-block {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 36px;
  margin: 36px 0;
  border: 1px solid var(--black);
  border-bottom: 5px solid var(--black);
}
.cta-block .cta-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}
.cta-block p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}
.cta-block strong {
  color: var(--lime);
  font-weight: 700;
}
.cta-block a {
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Table of Contents */
.toc {
  background: var(--gray-50);
  border: 1px solid var(--black);
  border-bottom: 5px solid var(--black);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 36px 0;
}
.toc .toc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}
.toc ol {
  margin: 0;
  padding: 0 0 0 20px;
  counter-reset: toc-counter;
  list-style: none;
}
.toc ol li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
  padding-left: 4px;
}
.toc ol li::before {
  content: counter(toc-counter) ".";
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--gray-400);
  margin-right: 8px;
}
.toc a {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.toc a:hover {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========================
   JUNKYARD CARD
   ======================== */
.junkyard-card {
  background: var(--white);
  border: 1px solid var(--black);
  border-bottom: 5px solid var(--black);
  border-radius: var(--radius-md);
  padding: 0;
  margin: 32px 0;
  overflow: hidden;
}

/* Card header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.card-header-left {
  flex: 1;
  min-width: 0;
}
.card-header-left h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
  margin: 0 0 8px;
  line-height: 1.2;
}
.card-header-right {
  text-align: right;
  flex-shrink: 0;
}

/* Rating */
.card-rating {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -1px;
  line-height: 1;
}
.card-rating-label {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* Badges */
.card-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--black);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.card-badge--best {
  background: var(--lime);
  color: var(--black);
}

/* Meta (address, phone, website) */
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding: 16px 32px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}
.card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--gray-600);
}
.meta-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}
.card-meta-item a {
  color: var(--black);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.card-meta-item a:hover {
  color: var(--gray-600);
}

/* Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 32px;
  border-bottom: 1px solid var(--gray-200);
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 12px;
  border-radius: 6px;
}

/* Card content */
.card-content {
  padding: 24px 32px 28px;
}
.card-content > p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 20px;
}

/* Card sections (What people say, Good fit if, Watch for, etc.) */
.card-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.card-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.card-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}
.card-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.card-section ul li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.card-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-300);
}

/* Color-code the bullet by section type */
.card-section h4:first-child {
  /* Default styling already applied */
}

/* "Good fit if" gets lime bullets */
.card-section:has(h4:first-child) ul li::before {
  /* Only works in modern browsers; fallback is gray */
}

/* FAQs section at bottom of these posts */
section[id="faqs"] {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 2px solid var(--gray-200);
}
section[id="faqs"] h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.8px;
  margin-bottom: 32px;
}
section[id="faqs"] h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 8px;
}
section[id="faqs"] p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray-600);
  margin-bottom: 16px;
}

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 900px) {
  .card-header {
    flex-direction: column;
    gap: 12px;
  }
  .card-header-right {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .card-rating {
    font-size: 24px;
  }
  .card-rating-label {
    margin-top: 0;
  }
  .card-meta {
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 600px) {
  .card-header,
  .card-meta,
  .card-tags,
  .card-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .card-header-left h2 {
    font-size: 20px;
  }
  .cta-block {
    padding: 24px;
  }
  .toc {
    padding: 20px 24px;
  }
}
