/*
Theme Name: GeneratePress Child
Description: GeneratePress 커스텀 자식 테마 - 깔끔한 블로그 레이아웃 (750px 최적화)
Author: Custom Theme
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
Tags: blog, custom-layout, responsive, korean
*/

/* ========================================
   자식 테마 기본 설정
======================================== */

/* 부모 테마 스타일 import */
@import url("../generatepress/style.css");

/* Google Fonts 로드 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;800&display=swap');

/* ========================================
   기본 글꼴 및 색상 설정
======================================== */

/* 전체 사이트 기본 폰트 설정 */
body, 
html,
.site,
.site-content {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #333333;
}

/* 제목 폰트 설정 */
h1, h2, h3, h4, h5, h6,
.page-title,
.entry-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
}

/* ========================================
   GeneratePress 기본 스타일 재정의 (750px)
======================================== */

/* 컨테이너 최대 너비 설정 - 750px로 조정 */
.container {
    max-width: 750px;
}

/* 사이트 헤더 개선 */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #f0f0f0;
}

.main-title a {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 800;
    color: #2c3e50;
    text-decoration: none;
}

.main-title a:hover {
    color: #3498db;
}

/* 네비게이션 메뉴 스타일 */
.main-navigation a {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #3498db;
}

/* ========================================
   콘텐츠 영역 기본 스타일
======================================== */

/* 메인 콘텐츠 영역 */
.site-main {
    background: #fafafa;
    min-height: 60vh;
    padding: 40px 0;
}

/* 사이드바 스타일링 */
.widget-area {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.widget-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* ========================================
   단일 포스트 페이지 스타일
======================================== */

/* 포스트 콘텐츠 */
.entry-content {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    color: #2c3e50;
    margin-top: 2em;
    margin-bottom: 1em;
}

.entry-content h2 {
    font-size: 1.8em;
    border-left: 4px solid #3498db;
    padding-left: 15px;
}

.entry-content h3 {
    font-size: 1.5em;
    color: #34495e;
}

/* 단락 스타일 */
.entry-content p {
    margin-bottom: 1.5em;
    text-align: justify;
}

/* 링크 스타일 */
.entry-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.entry-content a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* 리스트 스타일 */
.entry-content ul,
.entry-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

/* 인용구 스타일 */
.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    margin: 2em 0;
    padding: 1.5em 2em;
    font-style: italic;
    color: #555;
    border-radius: 0 8px 8px 0;
}

/* 코드 블록 스타일 */
.entry-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.entry-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2em 0;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* ========================================
   이미지 및 미디어 스타일
======================================== */

/* 이미지 스타일 */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5em 0;
}

/* 갤러리 스타일 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 2em 0;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* ========================================
   댓글 영역 스타일
======================================== */

.comments-area {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.comments-title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.comment-body {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: 600;
    color: #2c3e50;
}

.comment-content {
    margin-top: 10px;
    line-height: 1.6;
}

/* ========================================
   폼 스타일
======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea,
select {
    font-family: 'Noto Sans KR', sans-serif;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

button,
input[type="submit"],
input[type="button"] {
    font-family: 'Noto Sans KR', sans-serif;
    background: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* ========================================
   푸터 스타일
======================================== */

.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

.site-info {
    text-align: center;
    font-size: 14px;
    color: #bdc3c7;
}

.site-info a {
    color: #3498db;
    text-decoration: none;
}

.site-info a:hover {
    color: #5dade2;
}

/* ========================================
   유틸리티 클래스
======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.margin-top {
    margin-top: 2em;
}

.margin-bottom {
    margin-bottom: 2em;
}

.padding {
    padding: 1.5em;
}

/* ========================================
   반응형 디자인
======================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-main {
        padding: 20px 0;
    }
    
    .widget-area {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .entry-content {
        font-size: 15px;
    }
    
    .entry-content h2 {
        font-size: 1.5em;
    }
    
    .comments-area {
        padding: 20px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .entry-content {
        font-size: 14px;
    }
    
    .entry-content h2 {
        font-size: 1.3em;
    }
    
    .widget-area {
        padding: 15px;
    }
    
    .comments-area {
        padding: 15px;
    }
}

/* ========================================
   접근성 개선
======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* 포커스 스타일 개선 */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ========================================
   라이트모드 강제 설정
======================================== */

/* 라이트모드로 강제 고정 */
body,
.site,
.site-content {
    background: #ffffff !important;
    color: #333333 !important;
    color-scheme: light !important;
}

/* 헤더 라이트모드 고정 */
.site-header {
    background: #ffffff !important;
    color: #333333 !important;
}

.main-title a {
    color: #2c3e50 !important;
}

/* 위젯 및 댓글 영역 라이트모드 고정 */
.widget-area,
.comments-area {
    background: #ffffff !important;
    color: #333333 !important;
}

.widget-title,
.comments-title {
    color: #2c3e50 !important;
}

/* 콘텐츠 라이트모드 고정 */
.entry-content {
    color: #444444 !important;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    color: #2c3e50 !important;
}

/* ========================================
   네비게이션 버튼 전역 지원
======================================== */

/* 모든 가상 요소 버튼 제거 */
*::before,
*::after {
    z-index: 1 !important;
}

/* 네비게이션 버튼 우선순위 확보 */
.nav-home-btn,
.nav-top-btn {
    z-index: 999999 !important;
    position: fixed !important;
}

/* 버튼용 하단 여백 */
body.single,
body.home,
body.blog,
body.archive {
    padding-bottom: 0 !important;
}

body.single .site-main,
body.home .site-main,
body.blog .site-main,
body.archive .site-main {
    padding-bottom: 120px !important;
}

/* PC에서 버튼 크기 조정 */
@media (min-width: 769px) {
    body.single .site-main,
    body.home .site-main,
    body.blog .site-main,
    body.archive .site-main {
        padding-bottom: 140px !important;
    }
}