/* Blog Posts Listing Widget Styles */

/* Main container */
.bpl-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
}

/* Widget Title */
.bpl-widget-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #111;
    margin: 0 0 15px 0 !important;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* List container */
.bpl-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    padding-left: 0 !important;
    scrollbar-width: thin;
    scrollbar-color: #d1d1d1 #f1f1f1;
}

/* Custom Scrollbar for Webkit */
.bpl-post-list::-webkit-scrollbar { width: 6px; }
.bpl-post-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.bpl-post-list::-webkit-scrollbar-thumb { background: #d1d1d1; border-radius: 10px; }
.bpl-post-list::-webkit-scrollbar-thumb:hover { background: #b1b1b1; }

/* Individual list item */
.bpl-post-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.bpl-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.bpl-post-item:first-child { padding-top: 5px; }

/* Post link wrapper */
.bpl-post-link {
    display: flex;
    gap: 12px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.2s ease-in-out;
}

.bpl-post-link:hover {
    transform: translateX(2px);
}

/* Thumbnail */
.bpl-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
}

.bpl-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease-in-out;
}

.bpl-post-link:hover .bpl-thumbnail img {
    transform: scale(1.05);
}

/* Content Wrapper */
.bpl-post-content {
    justify-content: space-between;
    flex-grow: 1;
    min-width: 0; /* Prevents text overflow */
}

/* Post Title */
.bpl-post-title {
    margin: 0 0 4px 0 !important;
    font-size: 1.2rem !important;  
    font-weight: 500;
    line-height: 1.3;
    color: #333;
    transition: color 0.2s ease-in-out;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bpl-post-link:hover .bpl-post-title {
    color: #7B5FB4;
}

/* Excerpt */
.bpl-excerpt {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Responsive Styles */
@media (max-width: 768px) {
    .bpl-widget-title { font-size: 1.5rem; }
    .bpl-post-title { font-size: 0.9rem; }
    .bpl-excerpt { font-size: 0.75rem; }
    .bpl-thumbnail { width: 55px; height: 40px; }
    .bpl-post-link { gap: 10px; }
}

@media (max-width: 480px) {
    .bpl-widget-container { padding: 15px; }
    .bpl-widget-title { font-size: 1.3rem; }
    .bpl-thumbnail { width: 50px; height: 35px; }
    .bpl-post-link { gap: 8px; }
    .bpl-post-title { font-size: 0.85rem; line-height: 1.2; }
    .bpl-excerpt { font-size: 0.7rem; }
} 