/* ========================================
   혜움 블로그 스타일을 적용한 아티클 페이지
   ======================================== */

/* 기본 설정 */
body {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #F7F1E9;
    color: #333333;
    line-height: 1.6;
}

/* 메인 컨테이너 */
.article-page-main {
    background-color: #F7F1E9;
    min-height: 100vh;
    padding: 0;
}

/* 상단 보더 */
.article-page-border {
    border-bottom: 3px solid #F7F1E9;
    padding: 70px 0 0 0;
}

/* 날짜 표시 */
.article-page-date { 
    display: flex
;   align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 2rem 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #666666;
}

/* 아티클 컨테이너 */
.article-page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 아티클 콘텐츠 */
.article-page-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 50px;
}

/* 아티클 콘텐츠 내 구분선 */
.article-page-content hr {
    height: 6px;
    background-color: #884513;
    border: none;
    margin: 16px 0;
    padding: 0;
}

/* 본문 스타일 */
.article-page-content {
    font-family: 'Noto Sans KR', 'Inter', sans-serif;
}

/* 제목 스타일 */
.article-page-content h1 {
    text-align: center;
    font-size: 3rem;
    font-weight: 650;
    color: #333333;
    margin: 0 0 0 0;
    line-height: 1.3;
}


.article-page-content h1 strong {
    font-weight: 700;
}

/* 부제목 스타일 */
.article-page-content .subtitle {
    text-align: center;
}

.article-page-content .subtitle span {
    color: #777777;
    font-weight: 400;
    font-size: 1.3rem;
}

/* 본문 텍스트 */
.article-page-content p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.7;
    text-align: justify;
}

/* 불릿리스트 스타일 */
.article-page-content ul {
    padding-left: 1.5rem;
    text-align: justify;
}

.article-page-content ol {
    padding-left: 1.5rem;
    text-align: justify;
}

.article-page-content li {
    font-size: 1rem;
    color: #333333;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.article-page-content ul li {
    list-style-type: disc;
}

.article-page-content ol li {
    list-style-type: decimal;
}


/* 빈 p 태그 숨기기 */
.article-page-content p:empty {
    display: none;
}

/* 섹션 제목 (h2) */
.article-page-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin: 2rem 0 1rem 0;
    line-height: 1.4;
}

.article-page-content h2 strong {
    font-weight: 700;
}

/* 강조 텍스트 */
.article-page-content strong {
    font-weight: 700;
    color: #333333;
}

/* 이미지 */
.article-page-content .simple-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
    display: block;
}

/* Comment 박스 */
.article-page-comment {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2rem 0;
}

.article-page-comment-header {
    display: flex;
    height: 80px;
    align-items: center;
    justify-content: flex-start;
    background-size: 200px 80px;
    background-position: center left;
    background-repeat: no-repeat;
    background-image: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 8px;
    position: relative;
}

.article-page-comment-title {
    margin-bottom: 1.5rem;
    margin-left: 5rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: #333333;
    position: absolute;
    left: 5rem;
    top: 50%;
    transform: translateY(-50%);
}

.article-page-comment-text {
    font-size: 1.25rem;
    color: #333333;
    line-height: 1.7;
    margin: 0;
}

/* 구독 섹션 */
.article-page-subscribe {
    text-align: center;
    margin: 2rem 0;
}

.article-page-subscribe-text {
    font-weight: 700;
    color: #333333;
    margin-bottom: 1rem;
}

.article-page-subscribe-button {
    display: inline-block;
    background-color: #3b82f6;
    color: #FAFAFA;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.article-page-subscribe-button:hover {
    background-color: #2563eb;
    color: #FAFAFA;
}

/* 공유 버튼 */
.article-page-share {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
}

.article-page-share-btn {
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-page-share-btn:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.article-page-share-btn svg {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

/* 태그 */
.article-page-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0 2rem 0;
}

.article-page-tag {
    background-color: rgba(0, 0, 0, 0.1);
    color: #374151;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.article-page-tag:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 관련 글 섹션 */
.article-page-related {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2.5rem 1.5rem;
}

.article-page-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-page-related-item {
    background: #FAFAFA;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-page-related-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.article-page-related-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-page-related-item:hover .article-page-related-image {
    transform: scale(1.05);
}

.article-page-related-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-page-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
    margin: 0;
}

.article-page-related-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.article-page-related-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #6b7280;
}

/* 반응형 디자인 */


/* 1023px 이하에서 아티클 컨텐츠 패딩 제거 */
@media (max-width: 1024px) {
    .article-page-content {
        padding: 0 25px;
    }
}

/* 데스크톱 (1024px 이상) */
@media (min-width: 1024px) {
    .article-page-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 태블릿 (768px 이상) */
@media (min-width: 768px) {
    .article-page-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .article-page-container {
        padding: 0 2rem;
    }
}

/* 모바일 최적화 */
@media (max-width: 767px) {
    .article-page-content h1 {
        font-size: 30px;
    }
    
    .article-page-content p {
        font-size: 18px;
    }
    
    .article-page-content h2 {
        font-size: 23px;
    }
    
    .article-page-related {
        padding: 0 1rem 1rem;
    }
    
    .article-page-tags {
        margin: 3rem 0 2rem 0;
    }
    
    .article-page-container {
        padding: 0 1rem;
    }
}

/* 소형 모바일 (480px 이하) */
@media (max-width: 480px) {
    .article-page-content {
        padding: 0 10px;
    }
    .article-page-content h1 {
        font-size: 1.8rem;
    }
    
    .article-page-content p,
    .article-page-content p span {
        font-size: 1rem;
    }
    
    .article-page-comment-text {
        font-size: 1rem;
    }
    
    .article-page-date {
        margin: 2rem 0 1.5rem 0;
    }
    
    .article-page-share {
        margin: 2rem 0;
    }
}
