/* 포스트 페이지 스타일 */
.post {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--white);
}

.post-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 12px;
}

.post-date {
    color: var(--text-muted);
    font-weight: 500;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tag {
    background: var(--accent-primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.subcategory-tag {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: lowercase;
    border: 1px solid var(--accent-tertiary);
}

.post-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    background: var(--accent-light);
    border-radius: 8px;
}

/* 포스트 콘텐츠 스타일 */
.post-content {
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content h1 {
    font-size: 24px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.post-content h2 {
    font-size: 20px;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 0.3rem;
}

.post-content h3 {
    font-size: 18px;
}

.post-content h4 {
    font-size: 16px;
}

.post-content p {
    margin-bottom: 1.2rem;
    font-size: 14px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.4rem;
    font-size: 14px;
}

.post-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-primary);
    border-radius: 0 6px 6px 0;
}

.post-content blockquote p {
    margin: 0;
    font-style: italic;
    color: var(--text-muted);
}

/* 코드 블록 스타일 */
.post-content pre {
    background: var(--text-primary);
    color: var(--gray-100);
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 13px;
    line-height: 1.5;
}

.post-content code {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
}

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

/* 테이블 스타일 */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 13px;
}

.post-content th,
.post-content td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.post-content th {
    background: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-primary);
}

/* 이미지 스타일 */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid var(--gray-100);
}

/* 링크 스타일 */
.post-content a {
    color: var(--accent-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.post-content a:hover {
    border-bottom-color: var(--accent-primary);
}

/* 포스트 푸터 */
.post-footer {
    border-top: 1px solid var(--gray-100);
    padding-top: 2rem;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.prev-post,
.next-post {
    display: block;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.prev-post:hover,
.next-post:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
}

.next-post {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    font-weight: 500;
}

.nav-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.back-to-home {
    text-align: center;
}

.back-to-home a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.back-to-home a:hover {
    color: var(--accent-primary);
    background: var(--accent-light);
}

/* 반응형 */
@media (max-width: 768px) {
    .post {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 24px;
    }
    
    .post-meta {
        font-size: 11px;
    }
    
    .post-nav {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .next-post {
        text-align: left;
    }
    
    .post-content h1 {
        font-size: 20px;
    }
    
    .post-content h2 {
        font-size: 18px;
    }
    
    .post-content h3 {
        font-size: 16px;
    }
}