/**
 * Jassn Popular Posts - Frontend Styles
 * Version: 1.0.6
 */

/* Container styles */
.jassnpopo-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;padding-top: 10px !important;
    padding-left: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Widget title - Reduced spacing */
.widget_jassnpopo_widget .widget-title,
.widget_jassnpopo_widget h2,
.widget_jassnpopo_widget h3 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 10px !important;
    padding-left: 10px !important;
    font-size: 18px;
    font-weight: 600;
}

.widget_jassnpopo_widget {
    margin-top: 15px !important;
    margin-bottom: 1px !important;
    padding-left: 10px !important;
    padding-bottom: 0 !important;
}

/* Post items - Image Left, Title Right */
.jassnpopo-post-item {
    display: flex;
    align-items: center;
    padding-top: 10px;
    box-sizing: border-box;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 5px;
    width: 100%;
    border-top: 1px solid #ccc;
    padding-bottom: 10px;
}

.jassnpopo-post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.jassnpopo-post-item:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.jassnpopo-post-image {
    flex: 0 0 auto;
    margin-right: 5px;
    overflow: hidden;
    border-radius: 3px;
    max-width: 40%;
}

.jassnpopo-post-image img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.jassnpopo-post-image:hover img {
    transform: scale(1.05);
}

.jassnpopo-post-content {
    flex: 1 1 auto;
    min-width: 0;
}

.jassnpopo-post-title {
    margin: 0;
    line-height: 1.4;
    font-weight: 600;
    font-size: 16px;
    word-wrap: break-word;
}

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

.jassnpopo-post-title a:hover {
    text-decoration: underline;
}

.jassnpopo-loading {
    opacity: 0.7;
    pointer-events: none;
}

.jassnpopo-post-item:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.jassnpopo-container::after {
    content: '';
    display: table;
    clear: both;
}
