
/* 헤더 */
.main-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -1px;
}

.logo span { color: #ff6b6b; }

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
}

/* 목록 헤더 */
.list-header {
    text-align: center;
    margin: 60px 0 40px;
}

.list-header h1 { font-size: 2.2rem; }

/* 카테고리 필터 */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
}

.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 리스트 아이템 스타일 */
/* .post-list {
    max-width: 800px;
    margin: 0 auto 100px;
}

.list-item {
    display: flex;
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.list-item:hover {
    padding-left: 10px;
}

.item-date {
    color: #adb5bd;
    font-size: 0.9rem;
    min-width: 90px;
    padding-top: 5px;
}

.item-content h3 { margin: 10px 0; font-size: 1.3rem; }
.item-content h3 a { text-decoration: none; color: #212529; }
.item-content h3 a:hover { color: #ff6b6b; }
.item-content p { color: #666; font-size: 0.95rem; margin: 0; } */

/* 뱃지 */
/* .badge {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
} */
.red { background: #ff6b6b; }
.blue { background: #4dadf7; }
.green { background: #51cf66; }

/* 모바일 대응 
@media (max-width: 600px) {
    .list-item { flex-direction: column; gap: 10px; }
} */
 
/* 게시글 목록 컨테이너 */
.post-list {
    max-width: 900px;
    margin: 0 auto 100px;
    display: flex;
    flex-direction: column; /* 세로로 나열 */
    gap: 20px;
}

/* 개별 리스트 아이템 */
.list-item {
    /* display: grid; */
    /* display: none; 기본적으로는 숨김, JS가 표시해줌 */
    /* grid-template-columns: 120px 1fr; 날짜 영역과 콘텐츠 영역 구분 */
    grid-template-columns: 140px 1fr;
    /* animation: fadeIn 0.4s ease; */
    align-items: start;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.list-item:hover {
    background-color: #fafafa;
}

/* 날짜 스타일 */
.item-date {
    color: #adb5bd;
    font-size: 0.9rem;
    padding-top: 5px;
}

/* 콘텐츠 스타일 */
.item-content h3 {
    margin: 10px 0;
    font-size: 1.4rem;
    line-height: 1.4;
}

.item-content h3 a {
    text-decoration: none;
    color: #212529;
}

.item-content p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* 카테고리 뱃지 */
.badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

/* 모바일 대응 */
@media (max-width: 600px) {
    .list-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
/* filter.js에서 활성화된 버튼 스타일을 위해 기존 .active 유지 */
.filter-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* 필터링 시 나타나는 효과 (선택사항) */
.list-item {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}