/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: GeneratePress 자식 테마입니다. 커스터마이징은 이 테마에서 진행하세요.
Author: Loword Inc
Author URI: https://loword.co.kr
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* =========================================================
   0. 디자인 토큰 + 타이포그래피(기본 글꼴 Noto Sans KR)
   ========================================================= */
:root {
    --gpc-accent: #f5821f;
    --gpc-accent-soft: #fff3e8;
    --gpc-text-muted: #6b7280;
    --gpc-border: #e5e7eb;
    --gpc-content-width: 820px;
}

body,
button,
input,
select,
optgroup,
textarea,
h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
    font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* =========================================================
   0-1. 내비게이션 / 포인트 컬러
   ========================================================= */
.main-navigation .main-nav ul li.current-menu-item > a {
    color: var(--gpc-accent);
    box-shadow: inset 0 -2px 0 var(--gpc-accent);
}

.main-navigation .main-nav ul li a:hover {
    color: var(--gpc-accent);
}

a {
    text-decoration: none;
}

.entry-content a {
    color: var(--gpc-accent);
}

/* =========================================================
   1. 컨테이너 폭: 항상 최대 1200px (full width 포함)
   ========================================================= */
.grid-container {
    max-width: 1200px;
}

/* full-width 콘텐츠 레이아웃이어도 1200px 로 제한 후 가운데 정렬 */
.full-width-content .site-content .content-area,
.full-width-content .site-content .widget-area,
.full-width-content .site-main {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* 헤더/푸터 콘텐츠 영역 모바일 기본 여백 안전장치
   (사용자 정의 값이 없을 때 모바일에서 좌우가 화면에 붙지 않도록) */
@media (max-width: 768px) {
    .inside-header,
    .inside-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .site-footer .inside-footer {
        padding-top: 30px;
        padding-bottom: 30px;
    }
}

/* =========================================================
   2. 개별 글(single) 원페이지 스타일
   구조: 헤더 → 썸네일 → 본문 → 푸터
   ========================================================= */

/* GeneratePress 기본 single 대표 이미지는 숨김(직접 출력한 썸네일 사용) */
.single .inside-article > .post-image,
.single .featured-image {
    display: none;
}

/* 읽기 좋은 가운데 컬럼 */
.single .inside-article {
    max-width: var(--gpc-content-width);
    margin-left: auto;
    margin-right: auto;
}

/* ── 헤더 ───────────────────────────────────────────── */
.single .entry-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.75rem;
}

/* 제목 위 카테고리 배지 */
.single .gpc-cat-badge {
    order: -1;
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: var(--gpc-accent-soft);
    color: var(--gpc-accent);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.single .gpc-cat-badge:hover {
    background: var(--gpc-accent);
    color: #fff;
}

.single .entry-title {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

.single .gpc-single-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.5;
    color: var(--gpc-text-muted);
    margin: 0 auto 1rem;
    max-width: 42rem;
}

.single .entry-header .entry-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

/* ── 썸네일(히어로) ─────────────────────────────────── */
.single .gpc-single-thumbnail {
    margin: 0 0 2.5rem;
}

.single .gpc-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
}

/* ── 본문 ───────────────────────────────────────────── */
.single .entry-content {
    font-size: 1.075rem;
    line-height: 1.85;
}

.single .entry-content > * + * {
    margin-top: 1.5em;
}

.single .entry-content h2,
.single .entry-content h3 {
    line-height: 1.3;
    margin-top: 2em;
}

.single .entry-content img {
    border-radius: 10px;
}

.single .entry-content blockquote {
    border-left: 4px solid currentColor;
    padding-left: 1.25rem;
    font-style: italic;
    opacity: 0.9;
}

/* ── 본문 하단 카테고리/태그 메타 숨김 ───────────────── */
.single .inside-article footer.entry-meta {
    display: none;
}

/* ── 제휴 고지 문구 ─────────────────────────────────── */
.single .gpc-affiliate-notice {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* 글 하단 내비게이션 여백 */
.single .post-navigation {
    margin-top: 2rem;
}

/* ── 반응형 ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .single .entry-content {
        font-size: 1rem;
    }

    .single .gpc-single-thumbnail {
        margin-bottom: 1.75rem;
    }
}

/* 여기에 추가 커스텀 CSS를 작성하세요. */
