/* ============================================================
 * DP UI Pack — 13 Single Post (additif strict v2)
 * Cible : body.single-post (articles d'actualité)
 * Règles : ADDITIF uniquement, pas de !important, pas de
 *   .main / .main-raised / .container / .row / .col-md-X /
 *   .page-header / .hestia-blogs.
 * Polish : meta date, h1 typo, blockquote barre rouge, related
 *   cards light hover, liens dans content, image radius.
 * ============================================================ */

/* ------------------------------------------------------------
 * 1. H1 typo polish (sans toucher .page-header)
 * On cible directement le titre, pas son conteneur de hero.
 * ------------------------------------------------------------ */
body.single-post .hestia-title.entry-title {
  font-family: var(--dp-font-h);
  letter-spacing: -0.018em;
  line-height: 1.2;
  text-wrap: balance;
}

/* ------------------------------------------------------------
 * 2. Méta date stylée — pill discrète
 * ------------------------------------------------------------ */
body.single-post h4.author {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
}
body.single-post h4.author time.entry-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--dp-radius-pill);
  font-weight: 600;
  color: #fff;
}
body.single-post h4.author time.entry-date::before {
  content: "📅";
  font-size: 0.85rem;
}
body.single-post h4.author time.updated.hestia-hidden {
  display: none;
}
body.single-post h4.author a.vcard.author {
  text-decoration: none;
  font-weight: 600;
  color: var(--dp-text-on-dark);
}
body.single-post h4.author a.vcard.author:empty {
  display: none;
}

/* ------------------------------------------------------------
 * 3. Liens dans le contenu (entry-content)
 * Soulignement rouge subtil + hover plein.
 * ------------------------------------------------------------ */
body.single-post .single-post-wrap.entry-content a:not(.btn):not(.dp-btn) {
  color: var(--dp-primary-dark);
  text-decoration: underline;
  text-decoration-color: rgba(239, 68, 68, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--dp-tr-fast), text-decoration-color var(--dp-tr-fast);
}
body.single-post .single-post-wrap.entry-content a:not(.btn):not(.dp-btn):hover {
  color: var(--dp-primary);
  text-decoration-color: var(--dp-primary);
}

/* ------------------------------------------------------------
 * 4. Blockquote — barre rouge + guillemet décoratif
 * ------------------------------------------------------------ */
body.single-post .single-post-wrap.entry-content blockquote {
  position: relative;
  margin: 1.8rem 0;
  padding: 1.2rem 1.5rem;
  background: var(--dp-primary-soft);
  border-left: 4px solid var(--dp-primary);
  border-radius: 0 var(--dp-radius-sm) var(--dp-radius-sm) 0;
  font-style: italic;
  font-size: 1.06rem;
  color: var(--dp-text);
}
body.single-post .single-post-wrap.entry-content blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.3rem;
  left: 0.8rem;
  font-size: 3rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: var(--dp-primary);
  opacity: 0.25;
}

/* ------------------------------------------------------------
 * 5. Image radius (entry-content + VC single-image)
 * Coins arrondis + ombre légère, pas de layout shift.
 * ------------------------------------------------------------ */
body.single-post .single-post-wrap.entry-content img,
body.single-post img.vce-single-image {
  border-radius: var(--dp-radius-sm);
}
body.single-post .vce-single-image-wrapper figure {
  border-radius: var(--dp-radius);
  overflow: hidden;
  box-shadow: var(--dp-shadow-sm);
  background: var(--dp-bg-soft);
}
body.single-post .vce-single-image-wrapper figcaption {
  padding: 0.6rem 1rem;
  background: var(--dp-bg-soft);
  border-top: 1px solid var(--dp-border);
  font-size: 0.88rem;
  color: var(--dp-text-muted);
  text-align: center;
  font-style: italic;
}

/* ------------------------------------------------------------
 * 6. Related posts — cards light hover
 * On évite .hestia-blogs ; on cible .section.related-posts.
 * ------------------------------------------------------------ */
body.single-post .section.related-posts {
  background: var(--dp-bg-soft);
  border-top: 1px solid var(--dp-border);
}
body.single-post .section.related-posts h2.hestia-title {
  font-family: var(--dp-font-h);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--dp-text-strong);
}
body.single-post .section.related-posts .card.card-blog {
  background: #fff;
  border: 1px solid var(--dp-border);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow-xs);
  transition: transform var(--dp-tr), box-shadow var(--dp-tr), border-color var(--dp-tr);
}
body.single-post .section.related-posts .card.card-blog:hover {
  transform: translateY(-3px);
  box-shadow: var(--dp-shadow);
  border-color: var(--dp-primary-light);
}
body.single-post .section.related-posts .card-blog .category.text-info,
body.single-post .section.related-posts .card-blog .category.text-info a {
  color: var(--dp-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  font-weight: 700;
  text-decoration: none;
}
body.single-post .section.related-posts .card-blog .card-title {
  font-weight: 700;
  line-height: 1.35;
  color: var(--dp-text-strong);
}
body.single-post .section.related-posts .card-blog .card-title a {
  color: var(--dp-text-strong);
  text-decoration: none;
  transition: color var(--dp-tr-fast);
}
body.single-post .section.related-posts .card-blog:hover .card-title a {
  color: var(--dp-primary);
}
body.single-post .section.related-posts .card-blog .card-description {
  color: var(--dp-text-soft);
  line-height: 1.55;
}

/* ------------------------------------------------------------
 * 7. Print-friendly minimal
 * ------------------------------------------------------------ */
@media print {
  body.single-post .section.related-posts { display: none; }
}
