/*
 * Tistory Modern Dark Theme - Hamburger Sidebar Menu & Card List V10
 * File: style.css
 */

/* ====================================
 * 1. Reset & Global Styles
 * ==================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

html { font-size: 16px; }
body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #c9d1d9; 
    line-height: 1.6;
    background-color: #0d1117; 
    margin: 0; padding: 0;
}
a { color: #8b949e; text-decoration: none; transition: 0.3s; }
a:hover { color: #58a6ff; }

.screen_out {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ====================================
 * 2. Layout & Structure
 * ==================================== */
#wrap {
    max-width: 1200px; 
    margin: 0 auto;
    background-color: #0d1117; 
    position: relative;
}

.container { padding: 40px 20px; }
#content { box-sizing: border-box; }

@media (min-width: 960px) {
    .container { padding: 60px 80px; }
}

/* ====================================
 * 3. Header & Navigation
 * ==================================== */
#header {
    background-color: #161b22; 
    padding: 20px 80px; 
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #30363d;
}
#header h1 a { color: #f0f6fc; font-size: 1.5rem; font-weight: 700; }

.search { display: flex; align-items: center; }
.search input[type="text"] {
    padding: 8px 12px; border: 1px solid #30363d; 
    border-radius: 6px 0 0 6px; background-color: #0d1117; 
    color: #fff; width: 200px;
}
.search button {
    padding: 8px 15px; background-color: #21262d; 
    color: #c9d1d9; border: 1px solid #30363d;
    border-radius: 0 6px 6px 0; cursor: pointer;
}

#header .mobile-menu {
    background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer;
}
#header .mobile-menu::before { content: "☰"; }

/* ====================================
 * 4. List Style (이 부분이 핵심 수정 사항입니다)
 * ==================================== */
.post-header {
    margin-bottom: 40px; padding-bottom: 20px;
    border-bottom: 1px solid #30363d;
}
.post-header h1 { font-size: 1.8rem; color: #f0f6fc; display: inline; }
.post-header span { color: #58a6ff; font-weight: bold; margin-left: 10px; }

/* 카드 리스트 컨테이너 */
.inner { display: flex; flex-direction: column; gap: 24px; }

/* 개별 카드 아이템 */
.post-item {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.post-item:hover {
    transform: translateY(-5px);
    border-color: #58a6ff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.post-item a { display: flex; padding: 25px; gap: 25px; }

/* 리스트 썸네일 */
.post-item .thum {
    width: 400px; height: 225px; flex-shrink: 0;
    overflow: hidden; border-radius: 8px; background-color: #0d1117;
}
.post-item .thum img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.post-item:hover .thum img { transform: scale(1.05); }

/* 리스트 텍스트 정보 */
.post-item-body { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
.post-item-body .title {
    font-size: 1.4rem; font-weight: 700; color: #f0f6fc;
    margin-bottom: 12px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.post-item-body .excerpt {
    font-size: 1rem; color: #8b949e; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

@media (max-width: 768px) {
    .post-item a { flex-direction: column; padding: 20px; }
    .post-item .thum { width: 100%; height: 200px; }
    .post-item-body .title { font-size: 1.2rem; }
}

/* ====================================
 * 5. Article Content & Sidebar & Etc
 * ==================================== */
.entry-content { color: #adbac7; font-size: 1.1rem; line-height: 1.8; }
.scv-remote-float { 
    position: fixed; top: 0; right: 0; width: 280px; height: 100%;
    background-color: #161b22; z-index: 1000; padding: 30px;
    transform: translateX(100%); transition: 0.3s; border-left: 1px solid #30363d;
}
.scv-remote-float.active { transform: translateX(0); }

/* 기존 사이드바 숨김 */
.s_sidebar_element, .s_sidebar { display: none !important; }

#footer { padding: 40px 80px; border-top: 1px solid #30363d; text-align: center; color: #8b949e; }