/**
 * PSL Popular Posts Frontend Styles
 * 
 * @package PSL_Popular_Posts
 * @version 1.1.1
 * 
 * Matches theme template structure for popular posts
 */

.popular-posts {
    list-style: none;
    margin: 0;
    padding: 0 !important;
}

.popular-posts__item {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.popular-posts__item:last-child {
    margin-bottom: 0;
}

.popular-posts__link {
    display: block;
    color: inherit;
    flex: 1;
}

.popular-posts__link--thumbnail {
    box-shadow: -3px 3px 0px 0px #AFAFAF;
}

.popular-posts__thumbnail {
    width: 100%;
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
    background: #f9f9f9;
    box-shadow: -3px 3px 0px 0px #AFAFAF;
}

.popular-posts__thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.popular-posts__placeholder {
    width: 100%;
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.popular-posts__details {
    padding: 0;
}

.popular-posts__title {
    font-size: 14px;
    line-height: 1.16;
    color: #000;
    padding: 0;
}

.popular-posts__title a {
    color: #000;
    font-weight: 400 !important;
    font-size: 14px;
}

.popular-posts__title a:hover {
    /* color: #000; */
    /* text-decoration: underline; */
}

/* Speaker icon styling for audio plugin compatibility */
.popular-posts__title img.psl-speaker {
    height: 18px !important;
    width: auto !important;
    display: inline-block !important;
    margin-right: 5px !important;
    vertical-align: -2px !important;
    max-width: 18px !important;
}

.popular-posts__author a {
    color: #50adb5;
    font-weight: 400 !important;
}

.popular-posts__author, 
.popular-posts__date {
    font-size: 0.7em;
}

.popular-posts__views {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
}

.popular-posts__rank {
    font-weight: bold;
    font-size: 0.9em;
    color: #50adb5;
    margin-right: 12px;
    min-width: 20px;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Responsive design */
@media (max-width: 768px) {
    .popular-posts__item {
        margin-bottom: 30px;
    }
    
    .popular-posts__thumbnail {
        margin-bottom: 30px;
    }
    
    .popular-posts__placeholder {
        height: 120px;
        font-size: 12px;
    }
    
    .popular-posts__title {
        margin-bottom: 4px;
    }

    .popular-posts__title a {
        font-size: 16px !important;
    }
    
    .popular-posts__author,
    .popular-posts__date {
        font-size: 0.85em;
    }
    
    .popular-posts__rank {
        margin-right: 10px;
    }
} 