/**
 * Blog Posts Widget Styles
 */

/* Grid Layout */
.cp10-blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* List Layout */
.cp10-blog-posts-list .cp10-blog-post-item {
    display: flex;
    gap: 20px;
}

.cp10-blog-posts-list .cp10-blog-post-image {
    flex: 0 0 300px;
    max-width: 300px;
}

.cp10-blog-posts-list .cp10-blog-post-content {
    flex: 1;
}

/* Post Item */
.cp10-blog-post-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Image */
.cp10-blog-post-image {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.cp10-blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.4s ease;
}

/* Image Hover Effects */
.cp10-image-hover-zoom:hover img {
    transform: scale(1.1);
}

.cp10-image-hover-grayscale img {
    filter: grayscale(100%);
}

.cp10-image-hover-grayscale:hover img {
    filter: grayscale(0%);
}

.cp10-image-hover-blur:hover img {
    filter: blur(3px);
}

/* Content */
.cp10-blog-post-content {
    padding: 20px 0;
}

/* Title */
.cp10-blog-post-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.cp10-blog-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Excerpt */
.cp10-blog-post-excerpt {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Meta */
.cp10-blog-post-meta {
    font-size: 0.875rem;
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.cp10-blog-post-meta a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.cp10-meta-separator {
    margin: 0 5px;
    opacity: 0.5;
}

/* Read More */
.cp10-blog-post-read-more {
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* No Posts */
.cp10-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

/* Responsive */
@media (max-width: 1024px) {
    .cp10-blog-posts-list .cp10-blog-post-image {
        flex: 0 0 200px;
        max-width: 200px;
    }
}

@media (max-width: 767px) {
    .cp10-blog-posts-list .cp10-blog-post-item {
        flex-direction: column;
    }
    
    .cp10-blog-posts-list .cp10-blog-post-image {
        flex: none;
        max-width: 100%;
    }
}
