/* 모바일 우선 레이아웃 CSS */

/* 기본 리셋 및 컨테이너 설정 */
.site-container {
    max-width: 600px !important;
    margin: 0 auto;
    padding: 0 8px;
}

/* 사이트 제목과 화면 상단 간격 줄이기 */
.mobile-header {
    background: #fff;
    border-bottom: none;
    padding: 5px 0 5px 0;
    /* position: sticky;
    top: 0; */
    position: relative;
    z-index: 100;
}

.site-branding {
    text-align: center;
    /* margin-bottom: 15px; */
    margin-bottom: 8px;
}

.site-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #2c3e50;
}

.site-title a {
    text-decoration: none;
    color: inherit;
}

/* 검색창 스타일 */
.header-search {
    /* margin-bottom: 15px; */
    margin-bottom: 0px;
}

.header-search form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 25px;
    overflow: hidden;
    background: #f8f9fa;
}
/* 검색창 플레이스홀더 제거 */
.header-search input[type="search"]::placeholder {
    color: transparent;
}
.header-search input[type="search"] {
    flex: 1;
    padding: 8px 18px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

/* .header-search button {
    padding: 12px 20px;
    background: #007cba;
    color: white;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
} */

/* 검색 버튼 돋보기 아이콘 */
.header-search button {
    padding: 8px 15px;
    background: #007cba;
    color: white;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

/* .header-search button::before {} */
.header-search button:hover {
    background: #005a87;
}

/* 정렬 메뉴 스타일
.sort-menu {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
} */
/* 정렬 메뉴 배경 제거 */
.sort-menu {
    background: transparent;
    border-bottom: none;
    padding: 5px 0;
}

.sort-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.sort-btn {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
}

.sort-btn.active,
.sort-btn:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* 포스트 리스트 스타일 */
.post-item {
    display: flex;
    padding: 8px 0;
    /* border-bottom: 1px solid #f0f0f0; */
    border-bottom: none;
    gap: 15px;
}

.post-item:last-child {
    border-bottom: none;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
        /* 80px에서 60px로 변경 */    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
    
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 12px;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-category {
    display: none;
}

.post-title {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 8px 0;
    line-height: 1.3;
    
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
}

.post-title a:hover {
    color: #007cba;
}

.post-excerpt {
    display: none;
}

.post-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
}

.post-meta span {
    display: flex;
    align-items: center;
}

.post-tag {
    font-size: 11px;
    color: #007cba !important;
    font-weight: bold;
}

/* 데스크탑 스타일 (1.5-2배 확대) */
@media (min-width: 768px) {
    .site-container {
        max-width: 900px !important;
        padding: 0 15px;
    }

    .mobile-header {
        /* padding: 25px 0; */
        padding: 8px 0 8px 0;
    }

    .site-title {
        font-size: 36px;
        margin-bottom: 5px;
    }

    .header-search {
        /* margin-bottom: 25px; */
        margin-bottom: 5px;
    }

    .header-search input[type="search"] {
        padding: 12px 27px;
        font-size: 16px;
    }

    /* .header-search button {
        padding: 18px 30px;
        font-size: 16px;
    } */

    .sort-menu {
        padding: 15px 0;
    }

    .sort-buttons {
        gap: 25px;
    }

    .sort-btn {
        padding: 12px 24px;
        font-size: 16px;
    }

    .post-item {
        padding: 18px 0;
            /* 25px에서 18px로 변경 */        gap: 25px;
    }
         .post-thumbnail {
        width: 90px;
        height: 90px;
            /* 120px에서 90px로 변경 */    }

    .post-category {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .post-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .post-meta {
        gap: 18px;
        font-size: 14px;
    }

    .post-tag {
        font-size: 14px !important;
    }
}

/* 기존 GeneratePress 스타일 오버라이드 */
.site-header {
    display: none !important;
}

.main-navigation {
    display: none !important;
}

.content-area {
    width: 100% !important;
    float: none !important;
}

#secondary {
    display: none !important;
}

.site-main {
    margin: 0 !important;
}

/* 블로그 페이지 전용 스타일 */
body.blog .site-main,
body.archive .site-main {
    padding: 0;
}

body.blog .hentry,
body.archive .hentry {
    margin: 0;
    padding: 0;
    border: none;
}

body.blog .entry-header,
body.archive .entry-header,
body.blog .entry-content,
body.archive .entry-content,
body.blog .entry-meta,
body.archive .entry-meta {
    display: none;
}

/* 페이지네이션 스타일 */
.pagination {
    text-align: center;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #666;
}

.pagination a:hover,
.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

@media (min-width: 768px) {
    .pagination {
        padding: 45px 0;
    }

    .pagination a,
    .pagination span {
        padding: 15px 22px;
        margin: 0 8px;
    }
}

/* GeneratePress 기본 패딩 오버라이드 */
@media (max-width: 768px) {

    .separate-containers .inside-article,
    .separate-containers .comments-area,
    .separate-containers .page-header,
    .separate-containers .paging-navigation,
    .one-container .site-content,
    .inside-page-header {
        padding: 8px !important;
    }
}
.site-container {
    max-width: 600px !important;
    margin: 0 !important;
    padding: 0 8px;
}

@media (min-width: 768px) {
    .site-container {
        max-width: 900px !important;
        margin: 0 !important;
        padding: 0 15px;
    }
}

.single .entry-title {
    font-size: 20px !important;
    font-weight: 600 !important;
}
#right-sidebar {
    display: none;
}
