/* style.css */
/*
Theme Name: Honno Blog
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: 미니멀하고 세련된 블로그 테마
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: honno
Tags: blog, responsive-layout, custom-colors, masonry-layout, dark-theme
*/

/* ========================================
   기본 리셋 및 전역 스타일
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', 'Noto Sans KR', sans-serif;
    overflow-x: hidden;
    background: #0a0a0a;
    color: #fff;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   헤더
======================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: auto;
    padding: 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: 3px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.search_bar {
    width: 100%;
    max-width: 500px;
    height: 45px;
    position: relative;
}

.search_bar form {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0 18px;
    transition: all 0.3s ease;
}

.search_bar form:focus-within {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.search_bar input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    padding-right: 40px;
    color: white;
}

.search_bar input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search_bar button {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search_bar button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* ========================================
   메인 히어로 섹션
======================================== */
.hero-main {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.main {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.main-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
}

.main-title {
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 300;
    letter-spacing: 15px;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.main-subtitle {
    font-size: clamp(20px, 3vw, 35px);
    font-weight: 300;
    letter-spacing: 8px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    opacity: 0.7;
    z-index: 10;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   네비게이션 메뉴
======================================== */
.nav-section {
    width: 100%;
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95), rgba(30, 30, 30, 0.95));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}

.category-menu {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.category-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 15px;
}

.category-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.category-item.active {
    background: rgba(255, 255, 255, 0.1);
}

.category-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 24px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    transform: scale(1.1);
}

.category-item.active .category-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.category-name {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-item:hover .category-name,
.category-item.active .category-name {
    color: white;
}

/* ========================================
   콘텐츠 섹션
======================================== */
.content-section {
    width: 100%;
    padding: 80px 0;
    background: #0a0a0a;
}

body.home .content-section {
    padding-top: 80px;
}

body:not(.home) .content-section {
    padding-top: 120px;
}

.content-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}

/* 페이지 헤더 */
.page-header {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.page-title {
    font-size: 36px;
    font-weight: 600;
    color: white;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-title i {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.7);
}

.page-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.search-results-count {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-top: 10px;
}

/* ========================================
   페이지 콘텐츠
======================================== */
.page-content {
    max-width: 800px;
    margin: 0 auto;
}

.single-page-article {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-thumbnail {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
}

.page-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.page-entry-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.8;
}

.page-entry-content h2,
.page-entry-content h3,
.page-entry-content h4 {
    color: white;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-entry-content h2 {
    font-size: 28px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.page-entry-content h3 {
    font-size: 24px;
}

.page-entry-content h4 {
    font-size: 20px;
}

.page-entry-content p {
    margin-bottom: 20px;
}

.page-entry-content ul,
.page-entry-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.page-entry-content li {
    margin-bottom: 10px;
    list-style: disc;
}

.page-entry-content ol li {
    list-style: decimal;
}

.page-entry-content a {
    color: #667eea;
    text-decoration: underline;
}

.page-entry-content a:hover {
    color: #764ba2;
}

.page-entry-content blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.page-entry-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.page-entry-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-entry-content pre code {
    background: none;
    padding: 0;
}

.page-links {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.page-links-title {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 10px;
}

.page-links span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.page-links span:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ========================================
   포스트 그리드 (Masonry)
======================================== */
.post-grid {
    column-count: 3;
    column-gap: 30px;
}

.post-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.8));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    margin-bottom: 30px;
    break-inside: avoid;
    display: inline-block;
    width: 100%;
}

.post-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* ========================================
   포스트 이미지 (완전 수정됨)
======================================== */
.post-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 비율 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

/* ========================================
   포스트 콘텐츠
======================================== */
.post-content {
    padding: 25px;
}

.post-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.post-title {
    font-size: 19px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: white;
}

.post-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    margin-bottom: 18px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.post-read {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 게시물 없음 */
.no-posts-container {
    text-align: center;
    padding: 100px 20px;
    grid-column: 1 / -1;
}

.no-posts-container i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.no-posts {
    color: rgba(255, 255, 255, 0.6);
    font-size: 20px;
    margin-bottom: 10px;
}

.no-posts-hint {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: white;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    opacity: 1;
}

/* 페이지네이션 */
.pagination-wrapper {
    width: 100%;
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 8px;
}

.pagination .page-numbers:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    opacity: 1;
}

.pagination .page-numbers.current {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: 600;
}

.pagination .page-numbers.dots {
    background: transparent;
    border: none;
    cursor: default;
}

.pagination .page-numbers.dots:hover {
    transform: none;
}

/* ========================================
   푸터
======================================== */
.site-footer {
    width: 100%;
    padding: 50px 0;
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.95), rgba(25, 25, 25, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
}

.footer-content {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    line-height: 1.8;
}

.footer-content p {
    margin-bottom: 10px;
}

.footer-content a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: white;
    opacity: 1;
}

/* ========================================
   로딩 및 무한 스크롤
======================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
    color: white;
}

.loading-spinner i {
    font-size: 50px;
    margin-bottom: 20px;
}

.loading-spinner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.infinite-scroll-loader {
    width: 100%;
    padding: 60px 0;
    text-align: center;
}

.scroll-loading-spinner {
    color: rgba(255, 255, 255, 0.7);
}

.scroll-loading-spinner i {
    font-size: 40px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.5);
}

.scroll-loading-spinner p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.no-more-posts {
    width: 100%;
    padding: 40px 0;
    text-align: center;
}

.no-more-posts p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    display: inline-block;
}

.post-card {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   반응형 디자인
======================================== */

/* 태블릿 */
@media (max-width: 1024px) {
    .header {
        padding: 0 30px;
    }
    
    .nav-container,
    .content-container,
    .footer-container {
        padding: 0 30px;
    }
    
    .category-menu {
        gap: 35px;
    }
    
    .category-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    .post-grid {
        column-count: 2;
        column-gap: 25px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .single-page-article {
        padding: 40px;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    header {
        height: auto;
        min-height: 60px;
        padding: 15px 0;
    }
    
    .header {
        flex-direction: column;
        padding: 10px 20px;
        gap: 15px;
    }
    
    .logo {
        font-size: 18px;
        letter-spacing: 2px;
    }
    
    .search_bar {
        width: 100%;
        max-width: 100%;
        height: 42px;
    }
    
    .search_bar input {
        font-size: 13px;
    }
    
    body:not(.home) .content-section {
        padding-top: 150px;
    }
    
    body.home .content-section {
        padding-top: 50px;
    }
    
    .nav-section {
        padding: 40px 0;
    }
    
    .nav-container,
    .content-container,
    .footer-container {
        padding: 0 20px;
    }
    
    .category-menu {
        gap: 20px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-item {
        padding: 10px;
        min-width: 70px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .category-name {
        font-size: 11px;
        white-space: nowrap;
    }
    
    .page-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title i {
        font-size: 24px;
    }
    
    .single-page-article {
        padding: 30px 20px;
    }
    
    .page-entry-content {
        font-size: 15px;
    }
    
    .page-entry-content h2 {
        font-size: 24px;
    }
    
    .page-entry-content h3 {
        font-size: 20px;
    }
    
    .post-grid {
        column-count: 1;
        column-gap: 0;
    }
    
    .post-card {
        margin-bottom: 20px;
    }
    
    .no-posts-container {
        padding: 60px 20px;
    }
    
    .no-posts-container i {
        font-size: 60px;
    }
    
    .scroll-indicator {
        bottom: 30px;
        font-size: 20px;
    }
    
    .pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
    }
    
    .scroll-loading-spinner i {
        font-size: 32px;
    }
    
    .scroll-loading-spinner p {
        font-size: 14px;
    }
    
    .no-more-posts p {
        font-size: 14px;
        padding: 15px;
    }
}

/* 소형 모바일 */
@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }
    
    .search_bar {
        height: 38px;
    }
    
    .search_bar input {
        font-size: 12px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .category-name {
        font-size: 10px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .post-title {
        font-size: 17px;
    }
    
    .pagination .page-numbers {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 12px;
    }
    
    .pagination .page-numbers i {
        display: none;
    }
}

/* 가로 스크롤바 스타일 */
.category-menu::-webkit-scrollbar {
    height: 6px;
}

.category-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.category-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.category-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 프린트 스타일 */
@media print {
    header,
    .nav-section,
    .scroll-indicator,
    .pagination,
    .site-footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .post-card {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}
/* 단일 게시글 페이지 */
.single-post {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
    background: #fff;
}

.entry-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.entry-title {
    font-size: 2.5em;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #222;
    font-weight: 700;
}

.entry-meta {
    color: #666;
    font-size: 0.95em;
}

.entry-meta span {
    margin-right: 20px;
}

.post-thumbnail {
    margin-bottom: 40px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
    margin-bottom: 50px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #222;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.entry-content li {
    margin-bottom: 0.5em;
}

.entry-footer {
    padding: 30px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.categories,
.tags {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.categories a,
.tags a {
    display: inline-block;
    padding: 5px 12px;
    margin-right: 8px;
    background: #f5f5f5;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.categories a:hover,
.tags a:hover {
    background: #0073aa;
    color: #fff;
}

/* 이전/다음 네비게이션 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 50px 0;
    padding: 30px 0;
    border-top: 2px solid #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
}

.post-navigation a:hover {
    background: #0073aa;
    color: #fff;
}

.nav-previous a {
    align-items: flex-start;
}

.nav-next a {
    align-items: flex-end;
    text-align: right;
}

.nav-subtitle {
    font-size: 0.85em;
    color: #999;
    margin-bottom: 8px;
}

.post-navigation a:hover .nav-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.nav-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
}

.post-navigation a:hover .nav-title {
    color: #fff;
}

/* 관련 게시글 */
.related-posts {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
}

.related-posts h3 {
    margin: 0 0 25px 0;
    font-size: 1.8em;
    color: #222;
}

.related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-posts li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.related-posts li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-size: 1.2em;
    color: #0073aa;
    font-weight: bold;
}

.related-posts a {
    color: #222;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s;
    display: inline-block;
}

.related-posts a:hover {
    color: #0073aa;
    transform: translateX(5px);
}

/* 반응형 */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.8em;
    }
    
    .post-navigation {
        flex-direction: column;
    }
    
    .related-posts {
        padding: 25px;
    }
}
/* ========================================
   단일 게시글 페이지 (다크 테마)
======================================== */
.single-post-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.single-article {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.single-entry-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.single-entry-title {
    font-size: 2.5em;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
}

.single-entry-meta {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95em;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.single-entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-entry-meta i {
    color: rgba(255, 255, 255, 0.5);
}

.single-entry-meta a {
    color: #667eea;
    transition: color 0.3s ease;
}

.single-entry-meta a:hover {
    color: #764ba2;
}

.single-post-thumbnail {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-entry-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.single-entry-content p {
    margin-bottom: 1.5em;
}

.single-entry-content h2,
.single-entry-content h3,
.single-entry-content h4 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #fff;
}

.single-entry-content h2 {
    font-size: 2em;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.single-entry-content h3 {
    font-size: 1.6em;
}

.single-entry-content h4 {
    font-size: 1.3em;
}

.single-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 30px 0;
}

.single-entry-content ul,
.single-entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 2em;
}

.single-entry-content li {
    margin-bottom: 0.5em;
}

.single-entry-content a {
    color: #667eea;
    text-decoration: underline;
}

.single-entry-content a:hover {
    color: #764ba2;
}

.single-entry-content blockquote {
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.single-entry-content code {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #fff;
}

.single-entry-content pre {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-entry-content pre code {
    background: none;
    padding: 0;
}

.single-entry-footer {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.single-categories,
.single-tags {
    margin-bottom: 15px;
    font-size: 0.95em;
}

.single-categories strong,
.single-tags strong {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 10px;
}

.single-categories a,
.single-tags a {
    display: inline-block;
    padding: 6px 14px;
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s;
    font-size: 13px;
}

.single-categories a:hover,
.single-tags a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* 이전/다음 네비게이션 */
.single-post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    flex: 1;
}

.single-post-navigation a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.nav-previous a {
    align-items: flex-start;
}

.nav-next a {
    align-items: flex-end;
    text-align: right;
}

.nav-subtitle {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
}

.nav-title {
    font-size: 1.1em;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.single-post-navigation a:hover .nav-title {
    color: #fff;
}

/* 관련 게시글 */
.single-related-posts {
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-related-posts h3 {
    margin: 0 0 25px 0;
    font-size: 1.8em;
    color: #fff;
}

.single-related-posts ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-related-posts li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.single-related-posts li:before {
    content: "→";
    position: absolute;
    left: 0;
    font-size: 1.2em;
    color: #667eea;
    font-weight: bold;
}

.single-related-posts a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1em;
    transition: all 0.3s;
    display: inline-block;
}

.single-related-posts a:hover {
    color: #fff;
    transform: translateX(5px);
}

/* 반응형 */
@media (max-width: 768px) {
    .single-article {
        padding: 30px 20px;
    }
    
    .single-entry-title {
        font-size: 1.8em;
    }
    
    .single-post-navigation {
        flex-direction: column;
        padding: 20px;
    }
    
    .single-related-posts {
        padding: 25px 20px;
    }
    
    .single-entry-content {
        font-size: 1em;
    }
}