/* blog-details.css — page-specific styles. Global vars/nav/footer in global.css */
body { background: var(--border-light); }

/* BREADCRUMB */
.breadcrumb-custom { background: white; border-bottom: 1px solid var(--border); padding: 11px 5%; }
.breadcrumb-inner-custom { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-lighter); }
.breadcrumb-custom a { color: var(--text-light); text-decoration: none; }
.breadcrumb-custom a:hover { color: var(--orange); }

/* POST HERO */
.post-hero { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%); padding: 52px 5%; position: relative; overflow: hidden; }
.post-hero::before { content: ''; position: absolute; top: -100px; right: -50px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(232,100,42,0.12) 0%, transparent 65%); border-radius: 50%; }
.post-hero-inner { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.post-cat { display: inline-block; background: rgba(232,100,42,0.15); border: 1px solid rgba(232,100,42,0.3); color: #FF9A6C; padding: 4px 12px; border-radius: 50px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.post-hero h1 { font-family: 'Sora', sans-serif; font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: white; letter-spacing: -1.5px; line-height: 1.15; margin-bottom: 16px; }
.post-hero h1 em { color: var(--orange); font-style: normal; }
.post-hero-sub { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 24px; font-weight: 300; }
.post-meta-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.post-author-wrap { display: flex; align-items: center; gap: 10px; }
.author-av { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 700; color: white; font-size: 12px; flex-shrink: 0; }
.author-info strong { display: block; font-size: 13px; color: white; }
.author-info span { font-size: 11px; color: rgba(255,255,255,0.5); }
.post-meta-item { font-size: 12px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 5px; }

/* PROGRESS BAR */
.reading-progress { position: fixed; top: 64px; left: 0; right: 0; height: 3px; background: var(--border); z-index: 190; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-dark)); width: 0%; transition: width .1s; }

/* MAIN LAYOUT */
.post-layout { max-width: 1280px; margin: 0 auto; padding: 40px 5%; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }

/* TABLE OF CONTENTS */
.toc-card { background: var(--orange-pale); border: 1.5px solid rgba(232,100,42,0.2); border-radius: var(--radius); padding: 20px; margin-bottom: 28px; }
.toc-title { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.toc-list li { display: flex; align-items: flex-start; gap: 8px; }
.toc-num { font-size: 11px; font-weight: 700; color: var(--orange); width: 18px; flex-shrink: 0; padding-top: 2px; }
.toc-list a { font-size: 13px; color: var(--text-light); text-decoration: none; line-height: 1.5; transition: color .2s; }
.toc-list a:hover { color: var(--orange); }

/* ARTICLE CONTENT */
.article-content { background: white; border-radius: var(--radius); border: 1.5px solid var(--border); padding: 40px; line-height: 1.85; }
.intro-highlight { background: var(--border-light); border-left: 4px solid var(--orange); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 18px 20px; margin-bottom: 28px; font-size: 15px; color: var(--text); line-height: 1.75; }
.intro-highlight strong { color: var(--dark); }
.article-content h2 { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -0.5px; margin: 36px 0 14px; padding-top: 8px; }
.article-content h2:first-of-type { margin-top: 0; }
.article-content h3 { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-content p { font-size: 15px; color: var(--text-light); line-height: 1.85; margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 22px; margin-bottom: 16px; }
.article-content li { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 8px; }
.article-content strong { color: var(--dark); font-weight: 600; }
.article-content a { color: var(--orange); text-decoration: none; font-weight: 500; }
.article-content a:hover { text-decoration: underline; }

/* Price table */
.price-table { width: 100%; border-collapse: collapse; margin: 20px 0 24px; border-radius: var(--radius-sm); overflow: hidden; border: 1.5px solid var(--border); }
.price-table th { background: var(--dark-2); color: white; padding: 12px 16px; font-size: 13px; font-weight: 700; text-align: left; }
.price-table td { padding: 11px 16px; font-size: 14px; color: var(--text-light); border-bottom: 1px solid var(--border-light); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--border-light); }
.price-table .price-val { font-weight: 700; color: var(--dark); }

/* Info box */
.info-box { background: var(--border-light); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0; }
.info-box.warning { background: #FEF3C7; border-color: #F59E0B; }
.info-box.tip { background: var(--orange-pale); border-color: rgba(232,100,42,0.3); }
.info-box.success { background: var(--success-light); border-color: rgba(16,185,129,0.3); }
.info-box-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; }
.info-box p { font-size: 14px; line-height: 1.7; margin: 0; }

/* CTA inline */
.inline-cta { background: linear-gradient(135deg, var(--dark), var(--dark-2)); border-radius: var(--radius); padding: 28px; margin: 28px 0; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.inline-cta-text h4 { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: white; margin-bottom: 6px; }
.inline-cta-text p { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; }
.inline-cta a { padding: 12px 24px; background: var(--orange); color: white; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: all .2s; box-shadow: 0 4px 12px rgba(232,100,42,0.35); display: inline-block; }
.inline-cta a:hover { background: var(--orange-dark); }

/* Author box */
.author-box { display: flex; gap: 20px; padding: 24px; border: 1.5px solid var(--border); border-radius: var(--radius); margin-top: 32px; align-items: flex-start; }
.author-box-av { width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, var(--orange), var(--orange-dark)); display: flex; align-items: center; justify-content: center; font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: white; flex-shrink: 0; }
.author-box-info strong { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--dark); display: block; margin-bottom: 3px; }
.author-box-info span { font-size: 12px; color: var(--orange); font-weight: 600; display: block; margin-bottom: 8px; }
.author-box-info p { font-size: 13px; color: var(--text-light); line-height: 1.7; margin: 0; }

/* Share */
.share-row { display: flex; align-items: center; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border-light); flex-wrap: wrap; }
.share-label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.share-btn { padding: 8px 16px; border-radius: 50px; border: 1.5px solid var(--border); font-size: 12px; font-weight: 600; cursor: pointer; background: white; color: var(--text-light); transition: all .2s; font-family: 'DM Sans', sans-serif; }
.share-btn:hover { border-color: var(--orange); color: var(--orange); }

/* SIDEBAR */
.post-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 90px; }
.scard { background: white; border-radius: var(--radius); border: 1.5px solid var(--border); overflow: hidden; }
.scard-hdr { font-family: 'Sora', sans-serif; font-size: 14px; font-weight: 700; color: var(--dark); padding: 16px 18px; border-bottom: 1px solid var(--border-light); }
.scard-body { padding: 18px; }
.toc-sidebar { display: flex; flex-direction: column; gap: 4px; }
.toc-s-item { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: all .2s; text-decoration: none; }
.toc-s-item:hover, .toc-s-item.active { background: var(--orange-pale); }
.toc-s-item.active .toc-s-text { color: var(--orange); font-weight: 600; }
.toc-s-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--border); flex-shrink: 0; margin-top: 6px; transition: background .2s; }
.toc-s-item.active .toc-s-dot { background: var(--orange); }
.toc-s-text { font-size: 13px; color: var(--text-light); line-height: 1.4; }
.find-cta { background: linear-gradient(135deg, var(--orange), var(--orange-dark)); border-radius: var(--radius); padding: 22px; border: none; }
.find-cta h4 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: white; margin-bottom: 8px; }
.find-cta p { font-size: 13px; color: rgba(255,255,255,0.75); margin-bottom: 16px; line-height: 1.6; }
.find-cta a { display: block; text-align: center; padding: 12px; background: white; color: var(--orange-dark); border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; text-decoration: none; transition: all .2s; }
.find-cta a:hover { background: rgba(255,255,255,0.9); }
.related-list { display: flex; flex-direction: column; }
.related-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); text-decoration: none; transition: all .2s; }
.related-item:last-child { border-bottom: none; padding-bottom: 0; }
.related-item:hover .rel-title { color: var(--orange); }
.rel-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--border-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.rel-title { font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.4; transition: color .2s; }
.rel-meta { font-size: 11px; color: var(--text-lighter); margin-top: 3px; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { position: static; }
}
@media (max-width: 640px) {
  .article-content { padding: 22px; }
  .inline-cta { flex-direction: column; gap: 14px; }
  .author-box { flex-direction: column; }
  .reading-progress { top: 56px; }
}
