/* 블로그 전용 스타일 */

/* 블로그 헤더 */
.blog-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.blog-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 블로그 포스트 카드 */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: #667eea;
}

/* 포스트 메타 정보 */
.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}

.post-date {
    color: #667eea;
    font-weight: 500;
}

.read-time {
    color: #999;
}

/* 포스트 제목 */
.blog-post-card h2 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.4;
}

.blog-post-card h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-card h2 a:hover {
    color: #667eea;
}

/* 포스트 요약 */
.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

/* 태그 */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* 블로그 포스트 페이지 스타일 */
.blog-post {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 30px;
}

.blog-post h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
    color: #666;
}

.post-content {
    line-height: 1.8;
    color: #333;
    font-size: 1.1rem;
}

.post-content h2 {
    font-size: 1.5rem;
    color: #333;
    margin: 30px 0 15px 0;
    border-left: 4px solid #667eea;
    padding-left: 15px;
}

.post-content h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 25px 0 12px 0;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    padding: 20px;
    margin: 25px 0;
    font-style: italic;
    color: #555;
}

/* 블로그 네비게이션 */
.blog-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.blog-navigation a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
    font-weight: 500;
}

.blog-navigation a:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.prev-post::before {
    content: "← ";
}

.next-post::after {
    content: " →";
}

/* 광고 인라인 스타일 */
.ad-inline {
    margin: 30px 0;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #dee2e6;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2rem;
    }
    
    .blog-post-card {
        padding: 25px;
    }
    
    .blog-post {
        padding: 25px;
    }
    
    .blog-post h1 {
        font-size: 1.6rem;
    }
    
    .post-content {
        font-size: 1rem;
    }
    
    .blog-navigation {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .blog-navigation a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .blog-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-post-card {
        padding: 20px;
    }
    
    .blog-post {
        padding: 20px;
    }
    
    .blog-post h1 {
        font-size: 1.4rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .post-tags {
        gap: 6px;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* 블로그 목록 페이지 추가 스타일 */
.blog-posts {
    margin-bottom: 40px;
}

/* 블로그 포스트 카드 호버 효과 개선 */
.blog-post-card {
    cursor: pointer;
}

.blog-post-card:hover .post-excerpt {
    color: #333;
}

/* 태그 호버 효과 */
.tag:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

/* 블로그 포스트 내부 링크 스타일 */
.post-content a {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px solid #667eea;
    transition: all 0.3s ease;
}

.post-content a:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* 블로그 포스트 내부 강조 텍스트 */
.post-content strong {
    color: #333;
    font-weight: 600;
}

.post-content em {
    color: #667eea;
    font-style: italic;
}

/* 블로그 포스트 내부 코드 블록 */
.post-content code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #e83e8c;
}

/* 블로그 포스트 내부 인용구 개선 */
.post-content blockquote {
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: #667eea;
    position: absolute;
    top: -10px;
    left: -10px;
    opacity: 0.3;
} 