/* ============================================
   글(Post) 페이지 전용 스타일
   ============================================ */

/* Breadcrumb (글 위치 표시) */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: clamp(15px, 3vw, 20px) 0;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--brand-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--text-light);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 500;
}

/* 글 상세 페이지 */
.single-post-content {
    padding: clamp(15px, 3vw, 30px) 0;
}

.single-post {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: clamp(20px, 4vw, 40px);
    box-shadow: var(--shadow);
    margin-bottom: clamp(20px, 4vw, 40px);
}

.post-header {
    text-align: center;
    padding-bottom: clamp(15px, 3vw, 25px);
    border-bottom: 2px solid var(--brand-primary);
    margin-bottom: clamp(20px, 4vw, 30px);
}

.post-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: clamp(10px, 2vw, 15px);
    line-height: 1.3;
}

.post-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.post-category {
    display: inline-block;
    padding: 6px 15px;
    background: var(--brand-primary);
    color: var(--text-dark);
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

.post-thumbnail {
    margin-bottom: clamp(20px, 4vw, 30px);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--brand-primary);
}

.post-content {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: clamp(20px, 4vw, 30px);
}

.post-content p {
    margin-bottom: 1.2em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: var(--text-dark);
    font-weight: 700;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5em 0;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: clamp(15px, 3vw, 20px);
    border-top: 1px solid rgba(51, 51, 51, 0.1);
}

.tags-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-right: 5px;
}

.post-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(186, 210, 237, 0.3);
    color: var(--text-dark);
    border-radius: 15px;
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tag:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

/* 이전/다음 글 네비게이션 */
.post-navigation {
    margin-bottom: clamp(20px, 4vw, 40px);
}

.nav-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(10px, 2vw, 20px);
}

.nav-previous,
.nav-next {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: clamp(15px, 3vw, 20px);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.nav-previous a,
.nav-next a {
    text-decoration: none;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-subtitle {
    font-size: clamp(0.75rem, 1.5vw, 0.85rem);
    color: var(--brand-secondary);
    font-weight: 600;
}

.nav-title {
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 500;
    line-height: 1.4;
}

/* 글 목록 페이지 */
.archive-content {
    padding: clamp(15px, 3vw, 30px) 0;
}

.archive-header {
    text-align: center;
    padding: clamp(20px, 4vw, 40px) 0;
    margin-bottom: clamp(20px, 4vw, 30px);
}

.archive-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.archive-description {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 글 목록 그리드 - 썸네일 스타일 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: clamp(15px, 3vw, 25px);
    margin-bottom: clamp(30px, 5vw, 50px);
}

.post-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card .post-thumbnail {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card-content {
    padding: clamp(15px, 3vw, 20px);
}

.post-card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.post-card-category {
    display: inline-block;
    padding: 4px 10px;
    background: var(--brand-primary);
    color: var(--text-dark);
    border-radius: 12px;
    font-size: clamp(0.7rem, 1.3vw, 0.75rem);
}

.post-excerpt {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-posts {
    text-align: center;
    padding: clamp(60px, 10vw, 100px) 20px;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.no-posts p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: clamp(12px, 2.5vw, 20px);
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
}
