
/* 블로그 페이지 전용 스타일 */

/* 블로그 메인 콘텐츠 */
.blog-main-content {
    padding: 20px 0;
    min-height: 60vh;
}

.blog-main-content .container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    max-width: 864px;
}

.blog-main-content h2 {
    text-align: center;
    color: #333;
    font-size: 2em;
    margin-bottom: 30px;
}

/* 블로그 콘텐츠 그리드 */
.blog-content-grid {
    margin-top: 30px;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 블로그 포스트 카드 */
.blog-post-card {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    align-items: stretch;
    min-height: 180px;
    transition: background-color 0.3s ease;
}

.blog-post-card:hover {
    background-color: #f8f9fa;
}

.blog-post-card:last-child {
    border-bottom: none;
}

/* 블로그 썸네일 */
.blog-thumbnail {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

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

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

/* 블로그 카드 콘텐츠 */
.blog-card-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-post-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.blog-post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95em;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.blog-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #888;
    padding-top: 5px;
}

.post-date {
    font-weight: 500;
}

.post-views {
    color: #667eea;
}

/* 포스트 없음 메시지 */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    grid-column: 1 / -1;
}

.no-posts i {
    display: block;
    margin-bottom: 20px;
}

.no-posts p {
    font-size: 1.1em;
    margin: 0;
}

/* 페이지네이션 */
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.blog-pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.blog-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-pagination-numbers {
    display: flex;
    gap: 5px;
}

.blog-pagination-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.blog-pagination-number:hover,
.blog-pagination-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.blog-pagination a {
    text-decoration: none;
    color: inherit;
}

.blog-pagination a:hover {
    text-decoration: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .blog-main-content .container {
        margin: 0 auto;
        max-width: calc(100% - 10px);
        padding: 30px 20px;
    }

    .blog-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .blog-post-card {
        min-height: 140px;
    }

    .blog-thumbnail {
        width: 200px;
        height: 200px;
    }

    .blog-card-content {
        padding: 15px;
    }

    .blog-post-title {
        font-size: 1.1em;
    }

    .blog-post-excerpt {
        font-size: 0.85em;
    }

    .blog-post-meta {
        font-size: 0.8em;
    }

    .blog-pagination {
        flex-wrap: wrap;
        gap: 5px;
    }

    .blog-pagination-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .blog-pagination-number {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }
}
