/* ==========================================================================
   LUNA SONATA - Moonlight Edition (밝고 우아한 스타일)
   ========================================================================== */

/* 1. 컨테이너 최적화 */
#luna-home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 2. 감성적인 히어로 섹션 (달빛 그라데이션) */
.hero-section {
    text-align: center;
    padding: 100px 40px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #334155;
    border-radius: 40px;
    margin-bottom: 60px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.brand-title { 
    font-size: 3.5rem; 
    font-weight: 300; 
    letter-spacing: 12px; 
    text-transform: uppercase;
    color: #475569;
    margin: 0;
}
.brand-tagline { 
    font-size: 1.1rem; 
    color: #64748b; 
    margin-top: 20px; 
    font-style: italic;
    letter-spacing: 1px;
}

/* 3. 레이아웃 구조 */
.main-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.content-area { flex: 3; }
.sidebar { flex: 1; min-width: 280px; }

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #475569;
    font-weight: 300;
}

/* 4. 포스트 카드 디자인 (세련된 다크 그레이 타이포) */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.post-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.4s ease;
}
.post-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); 
}

.post-thumbnail img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}

/* 사진 없는 포스트 대응 */
.post-thumbnail:empty {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    font-size: 2rem;
}

.post-content { padding: 25px; }
.post-content .category { 
    font-size: 0.75rem; 
    color: #94a3b8; 
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.post-content h3 a { 
    font-size: 1.2rem; 
    margin: 12px 0; 
    line-height: 1.5; 
    color: #334155 !important; 
    text-decoration: none !important;
}

/* 5. 세련된 페이지네이션 디자인 */
.page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    margin: 0 4px;
    border-radius: 20px; /* 둥근 캡슐 형태 */
    text-decoration: none !important;
    color: #475569 !important;
    background: #f1f5f9; /* 은은한 회백색 배경 */
    transition: all 0.3s ease;
    font-weight: 500;
}

/* 마우스 올렸을 때 */
.page-numbers:hover:not(.dots) {
    background: #e2e8f0;
    color: #1e293b !important;
}

/* 현재 페이지 강조 (달빛처럼 차분한 포인트) */
span.page-numbers.current {
    background: #475569 !important; /* 루나 소나타의 무게감 있는 컬러 */
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(71, 85, 105, 0.2);
}

/* '다음' 버튼 스타일 */
.page-numbers.next {
    padding: 0 20px;
    margin-left: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

/* 6. 반응형 */
@media (max-width: 1024px) {
    .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .main-content-wrapper { flex-direction: column; }
    .post-grid { grid-template-columns: 1fr; }
}

/* 7. 필요 없는 위젯 숨기기 */
.widget_archive, .widget_categories {
    display: none !important;
}

/* Astra 간섭 방지 */
.page-template-page-home .entry-content,
.page-template-page-home .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}