/* =========================================================
   Single Post (post.css) - Revised
   - GeneratePress(특히 separate-containers) 기본 박스/패딩 제거
   - 상단 썸네일: 배너형 히어로
   - 본문: readable 폭 + 다크 톤 가독성
   - 하단: CTA(옵션) + 이전/다음 글 내비
========================================================= */

/* ---------------------------------------------------------
   0) GP 기본 “흰 박스” 리셋 (가장 중요)
--------------------------------------------------------- */
body.single-post.separate-containers .site-content,
body.single-post.separate-containers .inside-article,
body.single-post.separate-containers .page-header,
body.single-post.separate-containers .comments-area{
  background: transparent !important;
}

body.single-post.separate-containers .inside-article{
  padding: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* GP가 content-area 주변에 주는 여백이 있으면 통일 */
body.single-post .content-area{
  width: 100%;
  margin: 0;
  padding: 0;
}

/* 페이지 전체 배경 톤 고정 */
body.single-post .site-content{
  background: var(--bg);
}

/* ---------------------------------------------------------
   1) 상단 썸네일(Featured Image) 히어로
   - GP 기본: .post-thumbnail
--------------------------------------------------------- */
body.single-post .post-thumbnail{
  margin: 0 !important;
  width: 100%;
  background: #0b0b10;
  border-bottom: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

body.single-post .post-thumbnail img{
  width: 100%;
  height: clamp(260px, 52vh, 560px);
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  filter: saturate(1.05) contrast(1.05);
}

/* 썸네일 위에 살짝 어둡게(텍스트 올릴 때 대비) */
body.single-post .post-thumbnail{
  position: relative;
}
body.single-post .post-thumbnail:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.42));
}

/* ---------------------------------------------------------
   2) 글 제목/메타 영역
--------------------------------------------------------- */
body.single-post .entry-header{
  max-width: var(--readable);
  margin: 0 auto;
  padding: clamp(18px, 2.8vw, 44px) var(--pad-x) 8px;
}

body.single-post .entry-title{
  margin: 0;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

body.single-post .entry-meta{
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-size: 13px;
}

/* ---------------------------------------------------------
   3) 본문 영역(가독성)
--------------------------------------------------------- */
body.single-post .entry-content{
  max-width: var(--readable);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(18px, 3.2vw, 34px);
}

/* 기본 문단 */
body.single-post .entry-content p{
  margin: 0 0 1.05em;
  color: rgba(255,255,255,.86);
}

/* 헤딩 */
body.single-post .entry-content h2{
  margin: 1.6em 0 .6em;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

body.single-post .entry-content h3{
  margin: 1.2em 0 .55em;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* 리스트 */
body.single-post .entry-content ul,
body.single-post .entry-content ol{
  margin: 0 0 1.1em 1.2em;
  color: rgba(255,255,255,.86);
}

body.single-post .entry-content li{
  margin: .35em 0;
}

/* 링크 */
body.single-post .entry-content a{
  color: rgba(255,255,255,.92);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post .entry-content a:hover{
  opacity: .9;
}

/* 구분선 */
body.single-post .entry-content hr{
  border: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  margin: 1.6em 0;
}

/* 인용 */
body.single-post .entry-content blockquote{
  margin: 1.2em 0;
  padding: 14px 16px;
  border-left: 3px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.05);
  border-radius: 14px;
  color: rgba(255,255,255,.86);
}

/* 코드 */
body.single-post .entry-content code{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 2px 6px;
  border-radius: 10px;
  color: rgba(255,255,255,.92);
}

body.single-post .entry-content pre{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px 16px;
  overflow: auto;
  margin: 1.2em 0;
}

body.single-post .entry-content pre code{
  background: transparent;
  border: 0;
  padding: 0;
}

/* 테이블 */
body.single-post .entry-content table{
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
}

body.single-post .entry-content th,
body.single-post .entry-content td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.86);
}

body.single-post .entry-content th{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

/* 이미지/미디어 */
body.single-post .entry-content img,
body.single-post .entry-content video,
body.single-post .entry-content iframe{
  max-width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
}

body.single-post .entry-content figure{
  margin: 1.2em 0;
}

/* 큰 이미지(가끔 풀폭 느낌 주고 싶을 때)
   - WP 에디터에서 wide/full 정렬을 사용하면 대응 */
body.single-post .alignwide{
  max-width: min(1200px, calc(100% - (var(--pad-x) * 2)));
  margin-left: auto;
  margin-right: auto;
}

body.single-post .alignfull{
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

body.single-post .alignfull img{
  border-radius: 0;
}

/* ---------------------------------------------------------
   4) 하단 CTA (옵션)
   - 템플릿/훅에서 아래 구조를 넣었을 때만 사용됨
   <section class="post-bottom-cta">
     <div class="cta-box">
       <h3 class="cta-title">...</h3>
       <p class="cta-desc">...</p>
       <div class="cta-actions">...</div>
     </div>
   </section>
--------------------------------------------------------- */
.post-bottom-cta{
  margin: clamp(22px, 3.2vw, 52px) auto 0;
  max-width: var(--readable);
  padding: 0 var(--pad-x);
}

.post-bottom-cta .cta-box{
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(900px 520px at 20% 30%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 600px at 80% 20%, rgba(124,92,255,.16), transparent 60%),
    rgba(255,255,255,.04);
  padding: clamp(18px, 3.2vw, 34px);
}

.post-bottom-cta .cta-title{
  margin: 0 0 10px;
  font-size: clamp(18px, 2.6vw, 28px);
  letter-spacing: -0.02em;
}

.post-bottom-cta .cta-desc{
  margin: 0 0 14px;
  color: var(--muted);
}

.post-bottom-cta .cta-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------
   5) 이전/다음 글 내비게이션
--------------------------------------------------------- */
body.single-post .post-navigation{
  margin: clamp(26px, 3.6vw, 60px) 0 0;
  padding: 0 var(--pad-x) clamp(26px, 4vw, 64px);
}

body.single-post .post-navigation .nav-links{
  max-width: var(--readable);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.single-post .post-navigation a{
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  padding: 14px 14px;
  min-height: 78px;
}

body.single-post .post-navigation a:hover{
  background: rgba(255,255,255,.08);
}

body.single-post .post-navigation .nav-subtitle{
  color: rgba(255,255,255,.62);
  font-size: 12px;
  letter-spacing: .14em;
}

body.single-post .post-navigation .nav-title{
  color: rgba(255,255,255,.92);
  font-weight: 900;
  line-height: 1.25;
}

/* ---------------------------------------------------------
   6) 댓글 영역(쓴다면)
--------------------------------------------------------- */
body.single-post .comments-area{
  max-width: var(--readable);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(28px, 4vw, 70px);
  color: rgba(255,255,255,.86);
}

body.single-post .comment-reply-title,
body.single-post .comments-title{
  color: rgba(255,255,255,.92);
}

/* ---------------------------------------------------------
   7) Mobile
--------------------------------------------------------- */
@media (max-width: 720px){
  body.single-post .post-navigation .nav-links{
    grid-template-columns: 1fr;
  }

  body.single-post .entry-header{
    padding-top: 18px;
  }
}
