/* =========================================
 * Blog Dark Luxury Skin (GeneratePress)
 * Applies to: blog archive + single posts
 * File: /assets/css/blog-dark.css
 * ======================================= */

:root {
  --gyg-blog-bg: #050509;
  --gyg-blog-card: rgba(16, 16, 24, 0.82);
  --gyg-blog-card-2: rgba(7, 7, 12, 0.72);
  --gyg-blog-border: rgba(255, 255, 255, 0.10);
  --gyg-blog-text: rgba(255, 255, 255, 0.92);
  --gyg-blog-muted: rgba(255, 255, 255, 0.70);
  --gyg-blog-soft: rgba(255, 255, 255, 0.12);
  --gyg-blog-accent: #f4c15d;
}

/* 전체 배경 */
body.blog,
body.single-post,
body.archive,
body.category,
body.tag,
body.search {
  background:
    radial-gradient(circle at top, rgba(20, 20, 36, 0.65), transparent 58%),
    radial-gradient(circle at bottom right, rgba(244, 193, 93, 0.08), transparent 55%),
    var(--gyg-blog-bg);
  color: var(--gyg-blog-text);
}

/* GeneratePress 기본 흰 배경/그림자 제거 + 중앙 카드 구성 */
body.blog .site-main,
body.single-post .site-main,
body.archive .site-main,
body.category .site-main,
body.tag .site-main,
body.search .site-main {
  padding: 84px 16px 96px;
}

body.blog .inside-article,
body.single-post .inside-article,
body.archive .inside-article,
body.category .inside-article,
body.tag .inside-article,
body.search .inside-article {
  max-width: 1040px;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

/* 글(포스트) 본문 카드 */
body.single-post .entry-content,
body.blog .inside-article,
body.archive .inside-article,
body.category .inside-article,
body.tag .inside-article,
body.search .inside-article {
  color: var(--gyg-blog-text);
}

/* 싱글 글에서만 "본문 카드" 만들기 */
body.single-post .inside-article {
  border-radius: 24px;
  padding: 46px 34px 54px;
  background:
    radial-gradient(circle at top left, rgba(244, 193, 93, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(244, 193, 93, 0.04), transparent 55%),
    linear-gradient(to bottom, rgba(16, 16, 24, 0.92), rgba(5, 5, 9, 0.92));
  border: 1px solid var(--gyg-blog-border);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.70);
}

/* 모바일 패딩 */
@media (max-width: 768px) {
  body.single-post .inside-article {
    padding: 34px 18px 42px;
    border-radius: 18px;
  }
}

/* 타이틀 */
body.single-post .entry-title {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
}

/* 메타(작성일/카테고리 등) */
body.single-post .entry-meta,
body.blog .entry-meta,
body.archive .entry-meta {
  color: var(--gyg-blog-muted);
  font-size: 13px;
  opacity: 0.9;
}

body.single-post .entry-meta a,
body.blog .entry-meta a,
body.archive .entry-meta a {
  color: rgba(244, 193, 93, 0.92);
  text-decoration: none;
}
body.single-post .entry-meta a:hover { text-decoration: underline; }

/* 본문 타이포 */
.entry-content {
  font-size: 15px;
  line-height: 1.95;
  color: var(--gyg-blog-text);
}

.entry-content p {
  margin: 0 0 14px;
  color: var(--gyg-blog-text);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: #fff;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 34px 0 14px;
}

.entry-content h2 {
  font-size: clamp(20px, 2.5vw, 26px);
  padding-top: 10px;
  position: relative;
}
.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 64px;
  height: 2px;
  border-radius: 999px;
  background: rgba(244, 193, 93, 0.85);
}

.entry-content h3 { font-size: clamp(18px, 2.2vw, 22px); }
.entry-content h4 { font-size: 16px; color: rgba(255,255,255,0.92); }

/* 링크 */
.entry-content a {
  color: rgba(244, 193, 93, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(244, 193, 93, 0.35);
}
.entry-content a:hover {
  border-bottom-color: rgba(244, 193, 93, 0.85);
}

/* 리스트 */
.entry-content ul,
.entry-content ol {
  margin: 0 0 16px 18px;
  color: var(--gyg-blog-text);
}
.entry-content li { margin: 6px 0; }

/* 인용구 */
.entry-content blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(244, 193, 93, 0.10), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(244, 193, 93, 0.22);
  color: rgba(255, 255, 255, 0.88);
}
.entry-content blockquote p { margin: 0; }

/* 구분선 */
.entry-content hr {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.10);
  margin: 28px 0;
}

/* 이미지/캡션 */
.entry-content figure,
.entry-content img {
  border-radius: 16px;
}
.wp-caption-text,
figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gyg-blog-muted);
}

/* 표 */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
}
.entry-content th,
.entry-content td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
}
.entry-content th {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* 코드 블록 */
.entry-content pre,
.entry-content code {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: rgba(255,255,255,0.92);
}
.entry-content pre { padding: 14px; overflow: auto; }

/* 아카이브 카드(목록)도 어두운 카드로 */
body.blog .post,
body.archive .post,
body.category .post,
body.tag .post,
body.search .post {
  border-radius: 22px;
  padding: 22px 22px;
  background: linear-gradient(to bottom, var(--gyg-blog-card), var(--gyg-blog-card-2));
  border: 1px solid var(--gyg-blog-border);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  margin-bottom: 18px;
}

body.blog .post .entry-title a,
body.archive .post .entry-title a,
body.category .post .entry-title a,
body.tag .post .entry-title a,
body.search .post .entry-title a {
  color: #fff;
  text-decoration: none;
  border: 0;
}
body.blog .post .entry-title a:hover { text-decoration: underline; }
