/* Theme Name: Modern Editorial Minimal
Version: 2.3
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700;800&display=swap');

/* 전역 박스 모델 설정: 패딩과 테두리가 너비에 포함되도록 하여 가로 넘침 방지 */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    /* 의도치 않은 가로 스크롤 방지 */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px; /* 데스크탑 기본 좌우 여백 */
    width: 100%;
}

header.site-header {
    padding: 80px 0 60px;
}

header h1 a {
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-transform: none !important;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 80px;
}

/* --- Main Category Filter Styles --- */
.main-category-filter {
    margin-bottom: 60px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.main-category-filter ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.main-category-filter li a {
    text-decoration: none;
    color: #999;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}

.main-category-filter li a:hover,
.main-category-filter li.current-cat a {
    color: #000;
}

/* --- Post List Layout --- */
.post-item.list-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 100px;
}

.post-item.list-layout .post-thumbnail {
    flex: 0 0 300px;
    height: 200x;
    overflow: hidden;
}

.post-item.list-layout .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-item.list-layout .post-content-inner {
    flex: 1;
    padding-top: 5px;
}

.post-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #000;
    margin-bottom: 15px;
    display: inline-block;
    border-bottom: 2px solid #000;
    padding-bottom: 2px;
}

.post-item.list-layout h2 {
    font-size: 2.2rem;
    margin: 0 0 20px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.post-item.list-layout h2 a {
    text-decoration: none;
    color: inherit;
}

.post-excerpt {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 30px;
    word-break: break-all;
}

.view-post-link {
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    color: #000;
    border-bottom: 1px solid #000;
    padding-bottom: 3px;
    text-transform: uppercase;
}

/* --- Sidebar & Others --- */
.widget { margin-bottom: 60px; }
.widget-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 25px; border-bottom: 1px solid #000; padding-bottom: 8px; display: inline-block; }
.widget ul { list-style: none; padding: 0; }
.widget ul li { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #f0f0f0; }
.widget a { text-decoration: none; color: #666; font-size: 0.95rem; }

/* --- Mobile Responsive Updates --- */
@media (max-width: 850px) {
    .container {
        padding: 0 20px; /* 좌우 여백을 20px로 조정하여 안정감 확보 */
    }

    header.site-header {
        padding: 40px 0 30px;
    }

    .content-wrapper { 
        grid-template-columns: 1fr; 
        gap: 0; 
    }

    /* 모바일에서 사이드바 숨기기 */
    .sidebar, 
    aside, 
    .widget-area {
        display: none !important;
    }

    .post-item.list-layout { 
        flex-direction: column; 
        margin-bottom: 60px; 
    }

    .post-item.list-layout .post-thumbnail { 
        width: 100%; 
        height: 250px; 
        flex: none; 
    }

    .post-item.list-layout h2 {
        font-size: 1.8rem; 
        margin: 15px 0 10px;
        line-height: 1.2;
    }

    .post-excerpt {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .main-category-filter {
        margin-bottom: 30px;
    }

    .main-category-filter ul {
        gap: 15px; 
    }
}
