.yarpp-clean {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0rem;
}

.yarpp-clean-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.yarpp-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    padding: 0;
    list-style: none;
    margin: 0;
}

.yarpp-clean-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.yarpp-clean-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.yarpp-clean-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.yarpp-clean-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #142030; /* 이미지 배경색 변경 */
}

.yarpp-clean-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.yarpp-clean-item:hover .yarpp-clean-image {
    transform: scale(1.05);
}

.yarpp-clean-content {
    padding: 1.25rem;
    background: white;
}

.yarpp-clean-post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.yarpp-clean-item:hover .yarpp-clean-post-title {
    color: #3182ce;
}

.yarpp-clean-excerpt {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.6;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .yarpp-clean {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    .yarpp-clean-grid {
        grid-template-columns: repeat(2, 1fr); /* 2열 고정 */
        gap: 1rem; /* 간격 줄임 */
    }
    .yarpp-clean-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .yarpp-clean-post-title {
        font-size: 0.95rem; /* 모바일에서 제목 크기 조정 */
    }
    .yarpp-clean-excerpt {
        font-size: 0.85rem; /* 모바일에서 본문 크기 조정 */
        -webkit-line-clamp: 2;
    }
}

/* 매우 작은 화면 */
@media (max-width: 360px) {
    .yarpp-clean-grid {
        gap: 0.75rem; /* 더 작은 화면에서 간격 더 줄임 */
    }
    .yarpp-clean-post-title {
        font-size: 0.9rem;
    }
}

/* 다크모드 지원 */
@media (prefers-color-scheme: dark) {
    .yarpp-clean-item {
        background: #2d3748;
    }

    .yarpp-clean-content {
        background: #2d3748;
    }

    .yarpp-clean-post-title {
        color: #e2e8f0;
    }

    .yarpp-clean-excerpt {
        color: #a0aec0;
    }

    .yarpp-clean-item:hover .yarpp-clean-post-title {
        color: #63b3ed;
    }
}