/* Popular Post widget (mf-post-views): list layout + This Week | This Month tabs. */

/* = List
-------------------------------------------------------------- */

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

.popular-posts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 0;
    border-bottom: 1px solid #dfe5ec;
}

.popular-posts li:last-child {
    border-bottom: 0;
}

.popular-posts li a,
.popular-posts .popular-post-link {
    display: block;
    text-decoration: none;
}

.popular-posts .thumb {
    display: block;
    width: 62px;
    flex: 0 0 62px;
}

.popular-posts .thumb img {
    display: block;
    width: 62px;
    height: auto;
}

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

.popular-posts .popular-post-link {
    display: inline;
}

.popular-posts .popular-post-title {
    display: inline;
    color: #263238;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.popular-posts .popular-small {
    display: inline;
    margin: 0 0 0 6px;
    font-weight: bold;
    font-size: 11px;
    color: #4b5d73;
}

/* = Tabs: This Week | This Month
   Same look as the Popular Searches widget (search-keyword-tracker).
-------------------------------------------------------------- */

.pv-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin: 0 0 6px;
    border-bottom: 2px solid #e2e8f0;
    overflow-x: auto;
    scrollbar-width: none;
}

.pv-tabs::-webkit-scrollbar {
    display: none;
}

.pv-tab {
    flex-shrink: 0;
    margin: 0 0 -2px;
    padding: 8px 14px;
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: #64748b;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    cursor: pointer;
    transition: color .15s, border-color .15s;
}

.pv-tab:hover {
    color: #4f46e5;
}

.pv-tab.is-active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.pv-tab-panel[hidden] {
    display: none;
}

.pv-empty {
    margin: 0;
    padding: 16px 0;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 480px) {
    .pv-tab {
        padding: 8px 12px;
    }
}
