/*
Theme Name: YTech Custom Theme
Author: wmyoon
Description: 방해물 없는 100% 커스텀 무결점 테마
Version: 1.0
*/
@import url('[https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css](https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css)');

/* 🔥 overflow-y: scroll; 을 추가하여 페이지 이동 시 가로 밀림 방지 */
body { margin: 0; font-family: 'Pretendard', sans-serif; background-color: #ffffff; color: #333; overflow-y: scroll; }

/* === 헤더 영역 (딱 한 줄의 밑줄) === */
.site-header { background-color: #ffffff; }

.header-inner {
    max-width: 1024px; margin: 0 auto; padding: 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.logo a { font-size: 24px; font-weight: 800; color: #1e3a8a; text-decoration: none; }

/* 검색창 호버 효과 포함 */
.search-box {
    display: flex; align-items: center; border: 1px solid #cbd5e1;
    border-radius: 8px; padding: 8px 12px; width: 260px; background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.search-box:hover, 
.search-box:focus-within {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #1e3a8a;
}
.search-box svg { stroke: #94a3b8; margin-right: 8px; flex-shrink: 0; }
.search-box input { 
    border: none !important; outline: none !important; box-shadow: none !important;
    background: transparent !important; width: 100%; font-size: 14px; color: #0f172a; 
}
.search-box input::placeholder { color: #94a3b8; }

/* === 메인 콘텐츠 영역 === */
.site-main { max-width: 860px; margin: 40px auto; padding: 0 20px; min-height: 70vh; }
.post-grid { display: flex; flex-direction: column; gap: 30px; }

/* === 가로형 게시글 카드 === */
.post-card {
    display: flex; gap: 24px; padding: 24px; border: 1px solid #e2e8f0;
    border-radius: 16px; background: #ffffff; transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; color: inherit;
}
.post-card:hover {
    transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06); border-color: #cbd5e1;
}

.post-image {
    width: 240px; height: 160px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
    background-color: #f1f5f9; display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: 14px;
}

.post-content { flex-grow: 1; display: flex; flex-direction: column; }
.post-title { font-size: 20px; font-weight: 800; margin: 0 0 12px 0; color: #0f172a; }
.post-meta { font-size: 13px; color: #64748b; margin-bottom: 12px; }

/* 🔥 요약글 서서히 사라지는 그라데이션 마스크 */
.post-summary {
    font-size: 15px; color: #475569; line-height: 1.6; margin: 0;
    max-height: 4.8em; overflow: hidden; /* 약 3줄 제한 */
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

/* 🔥 페이지네이션 디자인 (블랙 원형 및 화살표) */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 50px; font-family: sans-serif; }
.page-btn {
    background: transparent; border: none; padding: 0; cursor: pointer;
    color: #94a3b8; /* 연한 상태 기본값 지정 */
    font-weight: 500; font-size: 1.1rem; transition: all 0.2s;
    width: 36px; height: 36px; display: flex; justify-content: center; align-items: center;
    border-radius: 50%;
}
/* 선택 안 된 번호에 마우스 호버 시: 배경 변화 없이 색상과 굵기만 진하게 */
.page-btn:hover:not(:disabled):not(.dots):not(.active) { color: #000000; font-weight: 800; }
/* 현재 선택된 번호 (검은 원형, 마우스 호버 무시) */
.page-btn.active { background-color: #000000; color: #ffffff; cursor: default; }
.page-btn.dots { cursor: default; color: #94a3b8; }
.page-btn:disabled { color: #e2e8f0; cursor: not-allowed; }
.page-icon { width: 20px; height: 20px; stroke-width: 2.5; }

/* 🔥 상세 페이지 이전글 / 다음글 디자인 */
.post-navigation {
    display: flex; justify-content: space-between; align-items: stretch; gap: 20px;
    margin-top: 60px; padding-top: 40px; border-top: 1px solid #e2e8f0;
}
.nav-link {
    flex: 1; display: flex; flex-direction: column; padding: 24px;
    border: 1px solid #e2e8f0; border-radius: 12px; background: #ffffff;
    text-decoration: none; cursor: pointer; transition: all 0.2s ease;
}
.nav-link:hover { border-color: #1e3a8a; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); transform: translateY(-2px); }
#nav-prev { text-align: left; align-items: flex-start; }
#nav-next { text-align: right; align-items: flex-end; }
.nav-label { font-size: 13px; color: #64748b; font-weight: 600; margin-bottom: 8px; }
.nav-title { font-size: 16px; color: #0f172a; font-weight: 800; line-height: 1.5; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: keep-all; 
}

/* 모바일 반응형 */
@media (max-width: 640px) {
    .header-inner { flex-direction: column; gap: 16px; align-items: flex-start; }
    .search-box { width: 100%; box-sizing: border-box; }
    .post-card { flex-direction: column; }
    .post-image { width: 100%; height: 200px; }
    .post-navigation { flex-direction: column; gap: 12px; }
    .nav-link { width: 100%; box-sizing: border-box; }
}

/* 🔥 Urvanov(Crayon) Syntax Highlighter 툴바 항상 표시 강제화 */
.crayon-syntax .crayon-toolbar {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: none !important;
    z-index: 10 !important; /* 다른 요소에 가려지지 않도록 보호 */
}
