/*
Theme Name: 온카판 블로그
Theme URI: https://example.com
Description: 온카판 전용 블로그 테마 - 카드형 레이아웃
Author: JS
Author URI: https://example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: onkapan-blog
Tags: blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready

온카판 블로그 전용 테마입니다.
*/

/* ==========================================================================
   기본 설정
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.8;
    color: #2d3748;
    background: #ffffff;
}

/* ==========================================================================
   헤더
   ========================================================================== */

header.blog-header {
    background: #fff;
    box-shadow: 0 1px 0 0 rgba(0,0,0,0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #718096;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 0.9rem;
    letter-spacing: -0.2px;
}

nav a:hover,
nav a.active {
    color: #1a202c;
}

/* ==========================================================================
   컨테이너
   ========================================================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ==========================================================================
   Featured 섹션
   ========================================================================== */

.featured-section {
    margin-bottom: 4rem;
}

.featured-post {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    cursor: pointer;
}

.featured-image {
    width: 100%;
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-post:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #000;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: fit-content;
}

.featured-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    color: #1a202c;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.featured-excerpt {
    font-size: 1.15rem;
    color: #718096;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.featured-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #a0aec0;
}

/* ==========================================================================
   섹션 헤더
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a202c;
    letter-spacing: -0.5px;
}

/* ==========================================================================
   포스트 그리드
   ========================================================================== */

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.post-card {
    cursor: pointer;
    transition: transform 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
}

.post-image {
    width: 100%;
    height: 240px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.post-card:hover .post-image img {
    transform: scale(1.1);
}

.post-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-category.info {
    background: #ebf8ff;
    color: #2c5282;
}

.post-category.review {
    background: #fef5e7;
    color: #c05621;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: #1a202c;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.post-excerpt {
    color: #718096;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* ==========================================================================
   페이지네이션
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #2d3748;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.pagination a:hover {
    background: #e2e8f0;
}

.pagination .current {
    background: #2d3748;
    color: #fff;
    font-weight: 700;
}

/* ==========================================================================
   뷰 페이지 (개별 글)
   ========================================================================== */

.view-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.view-header {
    margin-bottom: 2rem;
}

.view-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.view-category.info {
    background: #ebf8ff;
    color: #2c5282;
}

.view-category.review {
    background: #fef5e7;
    color: #c05621;
}

.view-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.3;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.view-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.9rem;
    color: #718096;
}

.view-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.view-image {
    width: 100%;
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.view-image img {
    width: 100%;
    height: auto;
    display: block;
}

.view-content {
    font-size: 1.1rem;
    line-height: 2;
    color: #2d3748;
    margin-bottom: 3rem;
}

.view-content p {
    margin-bottom: 1.5rem;
}

.view-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.btn-list {
    background: #e2e8f0;
    color: #2d3748;
}

.btn-list:hover {
    background: #cbd5e0;
}

.view-navigation {
    margin-bottom: 3rem;
}

.nav-item {
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.nav-item:first-child {
    border-top: 1px solid #e2e8f0;
}

.nav-label {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.nav-title {
    font-size: 1rem;
    color: #2d3748;
    text-decoration: none;
    display: block;
    transition: color 0.2s;
}

.nav-title:hover {
    color: #4299e1;
}

.nav-empty {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ==========================================================================
   푸터
   ========================================================================== */

footer.blog-footer {
    background: #f7fafc;
    color: #718096;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

/* ==========================================================================
   반응형
   ========================================================================== */

@media (max-width: 968px) {
    .featured-post {
        grid-template-columns: 1fr;
    }

    .featured-title {
        font-size: 2rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .view-container {
        padding: 2rem 1rem;
    }

    .view-title {
        font-size: 1.8rem;
    }

    .view-content {
        font-size: 1rem;
    }

    .view-actions {
        flex-wrap: wrap;
    }

    .btn {
        flex: 1 1 auto;
    }
}