/* ════════════════════════════════════════════════════════════
   F-House Blog Single Post — fhouse-single.css
   Template: single.php  (is_single() posts)
   Tokens from fhouse-header.css (always loaded first).
   ════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════
   1. FULL-WIDTH LAYOUT — NO SIDEBAR
   ═══════════════════════════════════ */

body.fh-single-post #content,
body.fh-single-post .site-content,
body.fh-single-post #content > .ast-container,
body.fh-single-post .site-content > .ast-container,
body.fh-single-post #primary,
body.fh-single-post .ast-article-single,
body.fh-single-post .ast-article-inner,
body.fh-single-post .ast-grid-common-col {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  flex: 1 1 100% !important;
}

body.fh-single-post #content > .ast-container {
  display: block !important;
  grid-template-columns: 1fr !important;
}

body.fh-single-post #secondary,
body.fh-single-post .widget-area {
  display: none !important;
}

/* Strip Astra article default padding */
body.fh-single-post article.post,
body.fh-single-post article.hentry {
  padding: 0 !important;
  margin: 0 !important;
}

/* ═══════════════════════════════════════════
   2. FEATURED IMAGE — full-bleed with fade
   ═══════════════════════════════════════════ */

body.fh-single-post .post-thumb,
body.fh-single-post .post-thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: block;
  background: var(--fh-dark);
}

body.fh-single-post .post-thumb img,
body.fh-single-post .post-thumbnail img {
  width: 100%;
  height: clamp(280px, 50vh, 520px);
  object-fit: cover;
  display: block;
  margin: 0;
}

/* Gradient: image fades into the dark header below */
body.fh-single-post .post-thumbnail::after,
body.fh-single-post .post-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 52, 96, 0.28) 0%,
    rgba(26, 26, 46, 0.60) 60%,
    rgba(26, 26, 46, 1.00) 100%
  );
  pointer-events: none;
}

/* ══════════════════════════════════════════
   3. ENTRY HEADER — dark hero with title
   ══════════════════════════════════════════ */

body.fh-single-post .entry-header {
  background: var(--fh-dark);
  color: #fff;
  text-align: center;
  padding: 36px 24px 52px;
  margin: 0;
  position: relative;
}

/* Gold accent line at the very bottom of header */
body.fh-single-post .entry-header::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(200, 160, 80, 0.55) 18%,
    var(--fh-gold-deep) 50%,
    rgba(200, 160, 80, 0.55) 82%,
    transparent 100%
  );
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

/* Title */
body.fh-single-post .entry-title {
  font-size: clamp(22px, 4vw, 44px) !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  max-width: 860px !important;
  margin: 0 auto 22px !important;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

/* Category badges — gold pill */
body.fh-single-post .entry-header .posted-in a,
body.fh-single-post .entry-header .cat-links a {
  display: inline-block;
  background: linear-gradient(135deg, var(--fh-gold), var(--fh-gold-lt));
  color: var(--fh-dark) !important;
  padding: 5px 16px;
  border-radius: 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  margin: 0 4px 20px;
  box-shadow: 0 4px 12px rgba(200, 160, 80, 0.40);
  transition: transform 0.2s ease;
}
body.fh-single-post .entry-header .posted-in a:hover,
body.fh-single-post .entry-header .cat-links a:hover {
  transform: translateY(-2px);
}

/* Meta row — date, author, tags */
body.fh-single-post .entry-header .ast-blog-single-element {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 14px;
}
body.fh-single-post .entry-header .ast-blog-single-element a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s ease;
}
body.fh-single-post .entry-header .ast-blog-single-element a:hover {
  color: var(--fh-gold-lt);
}

/* Astra wraps posted-in separately before title in some layouts —
   keep it above title as a badge row */
body.fh-single-post .entry-header .posted-in {
  display: block;
  text-align: center;
  margin-bottom: 0;
  border-top: none;
  padding-top: 0;
  font-size: 0; /* collapse the label "Category:" text */
}

/* ══════════════════════════════════════════════════
   4. CONTENT AREA — reading-optimized typography
   ══════════════════════════════════════════════════ */

body.fh-single-post .entry-content {
  max-width: 780px !important;
  margin: 0 auto !important;
  padding: 60px 24px 80px !important;
  font-size: 17px !important;
  line-height: 1.9 !important;
  color: #2c2c3a !important;
  background: #fff;
}

/* Paragraphs */
body.fh-single-post .entry-content p {
  margin-bottom: 1.6em;
}

/* H2 — gold left accent bar */
body.fh-single-post .entry-content h2 {
  font-size: clamp(20px, 2.4vw, 27px) !important;
  font-weight: 800;
  color: var(--fh-dark);
  margin: 52px 0 18px !important;
  line-height: 1.28;
  padding-left: 18px;
  position: relative;
}
body.fh-single-post .entry-content h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(180deg, var(--fh-gold), var(--fh-gold-deep));
  border-radius: 2px;
}

/* H3 */
body.fh-single-post .entry-content h3 {
  font-size: clamp(18px, 2vw, 22px) !important;
  font-weight: 700;
  color: var(--fh-dark);
  margin: 38px 0 14px !important;
  line-height: 1.35;
}

/* H4 */
body.fh-single-post .entry-content h4 {
  font-size: 18px !important;
  font-weight: 700;
  color: #3a3a50;
  margin: 28px 0 12px !important;
}

/* Links inside content */
body.fh-single-post .entry-content a {
  color: var(--fh-gold-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease;
}
body.fh-single-post .entry-content a:hover {
  color: var(--fh-gold);
}

/* Images */
body.fh-single-post .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(15, 52, 96, 0.12);
  display: block;
  margin: 20px auto;
}
body.fh-single-post .entry-content figure {
  margin: 28px 0;
}
body.fh-single-post .entry-content figcaption {
  font-size: 13px;
  color: var(--fh-muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Blockquote — gold accent */
body.fh-single-post .entry-content blockquote {
  margin: 36px 0;
  padding: 22px 28px;
  border-left: 4px solid var(--fh-gold);
  background: linear-gradient(
    135deg,
    rgba(200, 160, 80, 0.07) 0%,
    rgba(200, 160, 80, 0.03) 100%
  );
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  font-style: italic;
  color: var(--fh-dark);
  line-height: 1.8;
}
body.fh-single-post .entry-content blockquote p {
  margin: 0;
}

/* Lists */
body.fh-single-post .entry-content ul,
body.fh-single-post .entry-content ol {
  padding-left: 26px;
  margin-bottom: 1.5em;
}
body.fh-single-post .entry-content li {
  margin-bottom: 0.5em;
  line-height: 1.75;
}
body.fh-single-post .entry-content ul > li::marker {
  color: var(--fh-gold-deep);
}

/* Table */
body.fh-single-post .entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 28px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15, 52, 96, 0.07);
}
body.fh-single-post .entry-content th {
  background: var(--fh-dark);
  color: #fff;
  padding: 13px 16px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.03em;
}
body.fh-single-post .entry-content td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(15, 52, 96, 0.07);
  color: #2c2c3a;
}
body.fh-single-post .entry-content tr:nth-child(even) td {
  background: var(--fh-gray);
}

/* Horizontal rule */
body.fh-single-post .entry-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 160, 80, 0.5) 30%,
    rgba(164, 122, 14, 0.7) 50%,
    rgba(200, 160, 80, 0.5) 70%,
    transparent
  );
  margin: 44px 0;
}

/* Inline code */
body.fh-single-post .entry-content code {
  background: rgba(15, 52, 96, 0.06);
  border: 1px solid rgba(15, 52, 96, 0.1);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.88em;
  color: var(--fh-navy);
}

/* ══════════════════════════════════
   5. POST NAVIGATION — prev / next
   ══════════════════════════════════ */

body.fh-single-post .post-navigation {
  max-width: 780px;
  margin: 0 auto !important;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.fh-single-post .nav-previous,
body.fh-single-post .nav-next {
  background: #fff;
  border: 1px solid rgba(15, 52, 96, 0.09);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(15, 52, 96, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
body.fh-single-post .nav-previous:hover,
body.fh-single-post .nav-next:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15, 52, 96, 0.13);
  border-color: var(--fh-gold);
}

body.fh-single-post .nav-next { text-align: right; }

body.fh-single-post .post-navigation .nav-subtitle {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fh-gold-deep);
  margin-bottom: 8px;
}

body.fh-single-post .post-navigation a {
  display: block;
  text-decoration: none;
  color: var(--fh-dark);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.2s ease;
}
body.fh-single-post .post-navigation a:hover {
  color: var(--fh-gold-deep);
}

/* ══════════════════════════════════════
   6. HIDE UNWANTED ASTRA CHROME
   ══════════════════════════════════════ */

body.fh-single-post .ast-comment-formwrap,
body.fh-single-post .comments-area,
body.fh-single-post .ast-author-details,
body.fh-single-post .ast-pagination {
  display: none !important;
}

/* ══════════════════════════════════
   7. RESPONSIVE
   ══════════════════════════════════ */

@media (max-width: 760px) {
  body.fh-single-post .post-thumb img,
  body.fh-single-post .post-thumbnail img {
    height: clamp(200px, 44vw, 300px);
  }

  body.fh-single-post .entry-header {
    padding: 32px 20px 44px;
  }

  body.fh-single-post .entry-title {
    font-size: clamp(20px, 6vw, 30px) !important;
  }

  body.fh-single-post .entry-content {
    padding: 44px 20px 60px !important;
    font-size: 16px !important;
    line-height: 1.85 !important;
  }

  body.fh-single-post .post-navigation {
    grid-template-columns: 1fr;
    padding-bottom: 48px;
  }

  body.fh-single-post .nav-next {
    text-align: left;
  }
}
