/* Posts Showcase Plugin CSS - assets/css/posts-showcase.css */

.posts-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.posts-showcase.posts-grid {
    justify-content: center;
}

.posts-showcase.posts-carousel {
    overflow: hidden;
}

.post-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.posts-grid-item {
    width: 29%;
    min-width: 400px;
}

.post-item:hover {
    transform: scale(1.05);
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    max-width: 400px;
}

.post-thumbnail-only {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-thumbnail-only img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.4;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #007bff;
}

.post-title-image-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2));
    height: 100%;
    margin: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    font-size: 1.3em;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.post-title-image-hover a {
    color: white;
    text-decoration: none;
}

.post-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.post-title-container {
    /* Add any specific styles for title container */
}

.read-more {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    background-color: #0056b3;
    color: white;
}

.posts-grid-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

/* Carousel specific styles */
.posts-carousel-wrapper {
    position: relative;
    overflow: hidden;
}

.swiper-container {
    overflow: hidden;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: #007bff;
}

.swiper-pagination-bullet-active {
    background-color: #007bff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .posts-grid-item {
        width: 45%;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .posts-showcase {
        gap: 15px;
    }
    
    .post-item {
        width: 100%;
        max-width: 350px;
    }
    
    .posts-grid-item {
        width: 100%;
        min-width: unset;
    }
    
    .posts-grid-wrapper {
        gap: 15px;
    }
    
    .post-title-image-hover {
        padding: 15px;
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .post-content {
        padding: 12px;
    }
    
    .post-title {
        font-size: 1.1em;
    }
    
    .post-title-image-hover {
        padding: 12px;
        font-size: 1em;
    }
    
    .read-more {
        padding: 6px 12px;
        font-size: 13px;
    }
}