/* AJAX Post Views — Estilos widget / shortcode */

.apv-most-viewed-widget{
    padding-left: 0;
    padding-right: 0;
}

.apv-most-viewed-widget h4{
    padding-left: 25px;
    padding-right: 25px;
}


/* ── Lista base ──────────────────────────────────────────────────────── */

.apv-top-list {
    /*
    list-style: decimal;
    margin: 0;
    padding: 0 0 0 1.2em;
    */
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.apv-top-item {
    /*
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    */
    display: inline-block;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.apv-top-item:last-child {
    border-bottom: none;
}

/* ── Thumbnails ──────────────────────────────────────────────────────── */

.apv-thumb {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.apv-thumb img {
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

/* Pequeña: 48×48 */
.apv-thumb-small img {
    width: 48px;
    height: 48px;
}

/* Mediana: 80×80 */
.apv-thumb-medium img {
    width: 80px;
    height: 80px;
}

/* Grande: 120×90 */
.apv-thumb-large img {
    width: 120px;
    height: 90px;
    border-radius: 5px;
}

/* Con miniatura: contenido a la derecha */
.apv-has-thumb .apv-top-item {
    flex-wrap: nowrap;
}

.apv-has-thumb .apv-item-content {
    flex: 1;
    min-width: 0;
    margin-top: 10px;
}

/* ── Contenido ───────────────────────────────────────────────────────── */

.apv-item-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    width: 100%;
}

.apv-title {
    font-size: .9em;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.apv-title:hover {
    text-decoration: underline;
}

/* Meta: fecha · autor */
.apv-meta {
    font-size: .75em;
    color: #888;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 4px;
    align-items: center;
    line-height: 1.3;
}

.apv-sep {
    color: #bbb;
}

.apv-date,
.apv-author {
    white-space: nowrap;
}

/* Extracto */
.apv-excerpt {
    font-size: .8em;
    color: #666;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Contador de vistas */
.apv-count {
    font-size: .75em;
    color: #999;
    display: block;
}

.apv-no-results {
    color: #999;
    font-size: .875em;
    margin: 8px 0;
}

/* ── Shortcode standalone ────────────────────────────────────────────── */

.apv-shortcode .apv-sc-title {
    margin-bottom: .5em;
}
