/**
 * Custom Recent Posts Widget Styles
 */

/* Container */
.crpw-container {
    margin: 0;
    padding: 0;
}

/* Posts list */
.crpw-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* List layout */
.crpw-layout-list .crpw-post-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.crpw-layout-list .crpw-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.crpw-layout-list .crpw-thumbnail {
    flex-shrink: 0;
    margin-right: 15px;
}

.crpw-layout-list .crpw-content {
    flex: 1;
}

/* Grid layout */
.crpw-layout-grid .crpw-posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.crpw-layout-grid .crpw-post-item {
    display: flex;
    flex-direction: column;
}

.crpw-layout-grid .crpw-thumbnail {
    margin-bottom: 10px;
}

/* Thumbnail */
.crpw-thumbnail {
    overflow: hidden;
    line-height: 0;
}

.crpw-thumbnail img {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.crpw-thumbnail a:hover img {
    transform: scale(1.05);
}

/* Content */
.crpw-content {
    overflow: hidden;
}

/* Title */
.crpw-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.crpw-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.crpw-title a:hover {
    color: #0073aa;
}

/* Date */
.crpw-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

/* Excerpt */
.crpw-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .crpw-layout-grid .crpw-posts-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .crpw-layout-list .crpw-thumbnail {
        margin-right: 10px;
    }
}
