/* ==========================================
   루나소나타 블로그 본문 (single.php) 및 댓글창 디자인
========================================== */

/* 본문 레이아웃 컨테이너 중앙 정렬 */
.piano-custom-single-container {
    max-width: 800px; /* 시독성을 높이기 위한 최적화 너비 */
    margin: 60px auto;
    padding: 0 24px;
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* functions.php 연동 커스텀 헤더 타이틀 고도화 */
.custom-entry-header {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 50px !important;
}

.custom-meta-category a {
    background-color: #f7f5f0;
    color: #8c836e !important;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #e8e6e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.custom-meta-category a:hover {
    background-color: #8c836e;
    color: #fff !important;
}

.custom-entry-title {
    font-size: 2.5rem !important;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    letter-spacing: -1.2px;
    margin: 15px 0 20px 0 !important;
}

.custom-entry-meta {
    font-size: 0.88rem;
    color: #9e9a90;
    letter-spacing: 0.2px;
}

/* 기본 타이틀 디자인 정돈 */
.piano-single-header {
    text-align: center;
    margin-bottom: 40px;
}

.piano-meta-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.piano-meta-top .single-badge {
    background-color: #f7f5f0;
    color: #8c836e;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid #e8e6e1;
}

.piano-meta-top .posted-on {
    font-size: 0.88rem;
    color: #aaa;
    letter-spacing: 0.5px;
}

.piano-single-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.35;
    letter-spacing: -1px;
    margin: 0;
}

/* 대표 이미지(Featured Image) 스타일 정의 */
.piano-single-featured-image {
    width: 100%;
    margin-bottom: 50px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.piano-single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 본문 텍스트 타이포그래피 (가독성 극대화 최적화) */
.piano-single-content,
.single-post .entry-content {
    font-size: 1.12rem !important;
    line-height: 1.95 !important;
    color: #2c2a27 !important; /* 가독성에 좋은 다크 브라운 계열 그레이 */
    letter-spacing: -0.015em !important;
}

.piano-single-content p,
.single-post .entry-content p {
    margin-bottom: 32px !important;
}

/* 본문 내 주요 소제목 (H2 태그) 시그니처 라인 포인트 */
.piano-single-content h2,
.single-post .entry-content h2 {
    font-size: 1.85rem !important;
    font-weight: 700 !important;
    color: #111 !important;
    margin-top: 60px !important;
    margin-bottom: 24px !important;
    padding-left: 16px !important;
    border-left: 5px solid #8c836e !important; /* 왼쪽 포인트 세로선 */
    border-bottom: none !important;
}

/* 본문 내 H3 태그 스타일 */
.piano-single-content h3,
.single-post .entry-content h3 {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin-top: 45px !important;
    margin-bottom: 20px !important;
}

/* 인용구(Blockquote) 스타일 웅장하게 커스텀 */
.piano-single-content blockquote,
.single-post .entry-content blockquote {
    margin: 45px 0 !important;
    padding: 32px 38px !important;
    background-color: #fcfbf9 !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    border-left: 4px solid #222 !important;
    border-radius: 0 16px 16px 0 !important;
}

.piano-single-content blockquote p,
.single-post .entry-content blockquote p {
    margin: 0 !important;
    font-style: italic !important;
    color: #555 !important;
    font-size: 1.1rem !important;
    line-height: 1.8 !important;
}

/* 본문 내 주입된 이미지 라운딩 및 그림자 */
.piano-single-content img,
.single-post .entry-content img {
    border-radius: 14px !important;
    margin: 40px auto !important;
    box-shadow: 0 6px 25px rgba(0,0,0,0.03) !important;
}

/* 하단 이전글 / 다음글 내비게이션 조절 */
.piano-single-footer {
    margin-top: 80px;
    border-top: 1px solid #e8e6e1;
    padding-top: 40px;
}

.piano-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.piano-post-navigation .nav-box {
    width: 48%;
}

.piano-post-navigation .nav-box a {
    display: block;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #f2eee6;
    border-radius: 12px;
    text-decoration: none;
    color: #888;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.piano-post-navigation .nav-box a span {
    display: block;
    font-size: 0.98rem;
    font-weight: 600;
    color: #222;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 말줄임표 처리 */
}

/* 내비게이션 박스 호버 이펙트 */
.piano-post-navigation .nav-box a:hover {
    background: #f7f5f0;
    border-color: #c5bfae;
    transform: translateY(-3px);
}

.piano-post-navigation .nav-previous { text-align: left; }
.piano-post-navigation .nav-next { text-align: right; }

/* 글 보기 화면 아스트라 기본 레이아웃 투명화 오버라이드 */
.piano-custom-single-container,
.piano-custom-single-container .site-main,
.piano-single-post,
.ast-single-post-layout-1 .site-content .site-main {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.single-post {
    background-color: #ffffff !important; 
}

/* 댓글 영역(Comments Area) 미니멀리즘 커스텀 패키지 */
.piano-comments-wrapper {
    max-width: 800px;
    margin: 50px auto 0 auto;
    padding-top: 40px;
    border-top: 1px solid #e8e6e1;
    font-family: 'Noto Sans KR', sans-serif;
}

.piano-comments-wrapper .comments-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.piano-comments-wrapper .comment-respond {
    background: #fdfdfd;
    border: 1px solid #f2eee6;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.01);
}

.piano-comments-wrapper .comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px;
    display: block;
}

/* 댓글 입력 필드 스타일링 */
.piano-comments-wrapper .comment-form textarea,
.piano-comments-wrapper .comment-form input[type="text"],
.piano-comments-wrapper .comment-form input[type="email"] {
    width: 100%;
    background-color: #fff;
    border: 1px solid #e8e6e1;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* 입력 필드 포커스 시 브라운 포인트 변화 */
.piano-comments-wrapper .comment-form textarea:focus,
.piano-comments-wrapper .comment-form input[type="text"]:focus,
.piano-comments-wrapper .comment-form input[type="email"]:focus {
    border-color: #8c836e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(140, 131, 110, 0.1);
}

/* 댓글 등록 버튼 디자인 */
.piano-comments-wrapper .comment-form .submit {
    background-color: #222 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    font-size: 0.92rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.piano-comments-wrapper .comment-form .submit:hover {
    background-color: #8c836e !important;
    box-shadow: 0 4px 15px rgba(140, 131, 110, 0.3);
}

.piano-comments-wrapper .comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.piano-comments-wrapper .comment-list .comment-body {
    padding: 25px 0;
    border-bottom: 1px solid #f5f3ef;
}

.piano-comments-wrapper .comment-meta .fn {
    font-style: normal;
    font-weight: 600;
    color: #222;
    font-size: 0.98rem;
}

.piano-comments-wrapper .comment-meta a {
    font-size: 0.82rem;
    color: #bbb;
    text-decoration: none;
    margin-left: 10px;
}

.piano-comments-wrapper .comment-content {
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

/* 댓글 영역 기본 태그 및 푸터 가리기 조절 */
.piano-single-post .entry-footer,
.piano-single-post .post-meta-flat,
.ast-single-post .entry-footer,
.single-post .site-main .entry-footer {
    display: none !important;
    border: none !important;
}

.piano-comments-wrapper a {
    color: #8c836e !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.piano-comments-wrapper a:hover {
    color: #222222 !important;
    text-decoration: underline !important;
}

.piano-comments-wrapper .comment-meta a,
.piano-comments-wrapper .comment-awaiting-moderation {
    color: #aaa !important;
}

.piano-comments-wrapper .comment-meta a:hover {
    color: #8c836e !important;
}

/* 댓글 답글(Reply) 버튼 스타일 고도화 버튼화 교체 */
#comments .comment-list .reply a.comment-reply-link,
body .piano-comments-wrapper .comment-list .reply a,
body .piano-comments-wrapper a.comment-reply-link,
.ast-comment-reply-link a {
    display: inline-block !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    padding: 8px 20px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    text-decoration: none !important;
    margin-top: 10px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border: none !important;
}

#comments .comment-list .reply a.comment-reply-link:hover,
body .piano-comments-wrapper .comment-list .reply a:hover,
body .piano-comments-wrapper a.comment-reply-link:hover,
.ast-comment-reply-link a:hover {
    background-color: #8c836e !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(140, 131, 110, 0.3) !important;
    transform: translateY(-2px) !important;
    text-decoration: none !important;
}

/* 상단 독서 진행 상황바 그림자 */
.reading-progress-bar {
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.2);
}

/* 모바일 모드 반응형 스케일 다운 */
@media (max-width: 640px) {
    .piano-custom-single-container { 
        margin: 30px auto; 
        padding: 0 20px;
    }
    .custom-entry-title,
    .piano-single-title { 
        font-size: 1.9rem !important; 
    }
    .piano-single-content,
    .single-post .entry-content {
        font-size: 1.05rem !important;
        line-height: 1.85 !important;
    }
    .piano-post-navigation {
        flex-direction: column;
        gap: 12px;
    }
    .piano-post-navigation .nav-box { width: 100%; }
}