/* =========================================================
   JKPARK Dev Blog 스타일 (style.css 이후에 로드)
   ========================================================= */

:root {
    --blog-text: #212529;
    --blog-muted: #6c757d;
    --blog-border: #e9ecef;
    --blog-accent: #0d6efd;
    --blog-bg: #f8f9fa;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--blog-text);
    background-color: var(--blog-bg);
    word-break: keep-all;
}

a {
    text-decoration: none;
}

/* 헤더 */
.blog-navbar .navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* 메인 소개 */
.blog-hero {
    padding: 2rem 1.75rem;
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 0.75rem;
}

.blog-hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.blog-hero-desc {
    color: var(--blog-muted);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
}

/* 글 카드 목록 */
.post-card {
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.15s;
}

.post-card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.06);
}

.post-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.post-card-category {
    font-weight: 500;
}

.post-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.post-card-title a {
    color: var(--blog-text);
}

.post-card-title a:hover {
    color: var(--blog-accent);
}

.post-card-summary {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 앱 미니 카드 */
.app-mini-card {
    display: block;
    background: #fff;
    border: 1px solid var(--blog-border);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: var(--blog-text);
}

.app-mini-card:hover {
    border-color: var(--blog-accent);
}

/* 사이드바 */
.blog-sidebar .card {
    border: 1px solid var(--blog-border);
    box-shadow: none;
}

.blog-sidebar .card-header {
    font-weight: 700;
    border-bottom: 1px solid var(--blog-border);
}

.sidebar-post-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 게시글 상세 */
.post-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    overflow-wrap: break-word;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4 {
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.post-content h2 {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--blog-border);
}

.post-content p {
    margin-bottom: 1.1rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.post-content blockquote {
    margin: 1.25rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--blog-accent);
    background: #f1f5ff;
    color: #495057;
}

.post-content code {
    padding: 0.15rem 0.35rem;
    border-radius: 0.25rem;
    background: #f1f3f5;
    color: #c7254e;
    font-size: 0.9em;
}

.post-content pre {
    padding: 1rem;
    border-radius: 0.5rem;
    background: #1e1e2e;
    color: #e6e6e6;
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.post-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin-bottom: 1.1rem;
}

.post-content th,
.post-content td {
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
}

/* 안내 페이지 (소개/개인정보처리방침/이용약관/문의) */
.site-doc .card-body {
    padding: 2rem;
    line-height: 1.8;
}

.site-doc-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-doc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.contact-box {
    text-align: center;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid var(--blog-border);
    border-radius: 0.75rem;
    background: var(--blog-bg);
}

/* 광고 영역 */
.ad-slot {
    margin: 1.5rem 0;
    min-height: 90px;
}

/* 푸터 */
.blog-footer {
    background: #212529;
    color: #adb5bd;
}

.blog-footer a {
    color: #dee2e6;
}

.blog-footer a:hover {
    color: #fff;
}

.blog-footer .footer-links li {
    margin-bottom: 0.25rem;
}

@media (max-width: 767.98px) {
    .blog-hero {
        padding: 1.5rem 1.25rem;
    }

    .post-title,
    .site-doc-title {
        font-size: 1.4rem;
    }

    .site-doc .card-body {
        padding: 1.25rem;
    }
}
