/* ======================================================= */
/* CSS OPTIMIZADO - LISTADO DE COLECCIÓN (Ranking List) */
/* ======================================================= */

/* ESTILOS BASE: LISTADO DE COLECCIÓN (Mobile First) */

.coleccion-ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.coleccion-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    /* Mapeo: #eee -> --color-border-light */
    border-bottom: 1px solid var(--color-border-light);
}

/* 1. CONTADOR DE ORDEN (El número 1, 2, 3...) */
.ranking-position {
    min-width: 40px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    /* Mapeo: #444 (Color oscuro) -> --color-text-dark */
    color: var(--color-text-dark);
    margin-right: 15px;
    flex-shrink: 0;
}

/* 2. CONTENEDOR DEL CONTENIDO (Imagen y Título) */
.item-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Imagen y Overlay */
.coleccion-item .post-image {
    width: 100%;
    margin-bottom: 10px;
    position: relative;
}

.coleccion-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Estilo del Título */
.coleccion-item .entry-title {
    margin-top: 0;
}

/* MEDIAS QUERIES: Tablet/Escritorio (Diseño en Fila) */
@media (min-width: 768px) {

    .item-content-wrapper {
        flex-direction: row;
        align-items: center;
    }

    .coleccion-item .post-image {
        width: 180px;
        flex-shrink: 0;
        margin-right: 20px;
        margin-bottom: 0;
    }
}