/* 네이버 블로그 호출 플러그인 스타일 */
.naver-blog-container {
    width: 100%;
}

.naver-blog-loading {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
}

.naver-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-m);
}

.naver-blog-item {
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.naver-blog-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #00c73c;
}

.naver-blog-thumbnail {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
}

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

.naver-blog-item:hover .naver-blog-thumbnail img {
    transform: scale(1.02);
}

.naver-blog-content {
    padding: 7px 15px 15px;
}

.naver-blog-title {
    font-size: var(--h6);
    font-weight: 500;
    line-height: 1.4;
    color: #171717;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
}

.naver-blog-category {
    font-size: 11px;
    color: #03c75a;
    background: #e8f5e8;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 8px;
    font-weight: 500;
}

.naver-blog-date {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .naver-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    
    .naver-blog-title {
        font-size: var(--text-l);
    }
}

@media (max-width: 480px) {
    .naver-blog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
	}}
    

/* 로딩 애니메이션 */
.naver-blog-loading::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #00c73c;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 에러 메시지 */
.naver-blog-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

/* 카테고리 필터링 스타일 */
.naver-blog-category-filter {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.category-filter-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #495057;
    font-size: 14px;
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #6c757d;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: #03c75a;
    color: #03c75a;
    transform: translateY(-1px);
}

.category-btn.active {
    background: #03c75a;
    border-color: #03c75a;
    color: white;
}

.category-btn.active:hover {
    background: #02b350;
    border-color: #02b350;
    color: white;
}

/* 카테고리별 아이템 표시/숨김 */
.naver-blog-item[data-category] {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.naver-blog-item.category-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    visibility: hidden;
}

/* 반응형 - 카테고리 필터 */
@media (max-width: 768px) {
    .category-filter-buttons {
        gap: 6px;
    }
    
    .category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* 페이지네이션 스타일 */
.naver-blog-pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination-info {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}
.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 60px;
}

.pagination-btn:hover:not(:disabled) {
    background: #03c75a;
    border-color: #03c75a;
    color: white;
}

.pagination-btn:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-number {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination-number:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.pagination-number.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
    font-weight: 600;
}

.pagination-ellipsis {
    padding: 8px 4px;
    color: #6c757d;
    font-size: 14px;
}

/* 반응형 - 페이지네이션 */
@media (max-width: 768px) {
    .pagination-buttons {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 50px;
    }
    
    .pagination-number {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 35px;
    }
    
    .pagination-info {
        font-size: 13px;
    }
}

/* 네이버 브랜드 컬러 강조 */
.naver-blog-item:hover {
    border-color: #03c75a;
}

.naver-blog-loading::after {
    border-top-color: #03c75a;
} 