/* Plugin Blog Sample Styles - Matching Image Design */

.pbs-posts-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    /* Mobile default */
    gap: 1.5rem;
    padding: 1rem 0;
    width: 100%;
}

/* Desktop: 3 columns */
@media (min-width: 992px) {
    .pbs-posts-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
    }
}

/* Tablet: 2 columns */
@media (min-width: 600px) and (max-width: 991px) {
    .pbs-posts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Post Card Styles */
.pbs-post-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: none;
}

.pbs-post-card:hover {
    transform: translateY(-5px);
}

.pbs-post-thumbnail {
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    border-radius: 12px;
    /* Rounded corners like the image */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Subtle shadow for the image itself */
    margin-bottom: 1rem;
}

.pbs-post-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pbs-no-thumbnail {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.pbs-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    width: 40px;
    height: 40px;
}

.pbs-post-content {
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Category Badge Styles */
.pbs-category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    background: #fef3c7;
    /* Light Amber/Orange fallback */
    color: #92400e;
}

/* Color variations based on category (can be expanded) */
.pbs-category-badge.pbs-cat-news,
.pbs-category-badge.pbs-cat-updates {
    background: #fff7ed;
    color: #c2410c;
}

.pbs-category-badge.pbs-cat-growth,
.pbs-category-badge.pbs-cat-sales {
    background: #f0f9ff;
    color: #0369a1;
}

.pbs-post-title {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 800;
    /* Extra bold like the image */
}

.pbs-post-title a {
    color: #000000;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.pbs-post-title a:hover {
    opacity: 0.7;
}

.pbs-no-posts {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
}