/* Estilos para Mi Lista de Entradas v3.4 (Solución Flexbox) */

/*
 * SOLUCIÓN DE ALTURA IGUAL:
 * Se convierte el contenedor en un contenedor Flexbox vertical.
 * Esto nos permite hacer que sus hijos crezcan y ocupen el espacio disponible.
*/
.mlp-widget-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #ffffff;
    border: none;
    padding: 0 15px;
    margin: 0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    
    /* Propiedades Flexbox añadidas */
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que la caja ocupe toda la altura de la celda de la columna */
}

/* Título de la categoría */
div.mlp-title {
    padding: 15px 0 10px 0;
    border-bottom: 1px solid #f1f1f1;
    font-weight: 700;
}

.mlp-title a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 2px;
    border-radius: 8px;
    color: inherit;
    transition: background-color 0.2s ease-in-out;
    text-decoration: none !important;
}

.mlp-title a:hover {
    background-color: transparent;
    text-decoration: none !important;
}

.mlp-title i {
    font-size: 0.9em;
    color: #d9534f;
}

/*
 * SOLUCIÓN DE ALTURA IGUAL:
 * Se le dice a la lista que "crezca" para llenar cualquier
 * espacio vertical vacío dentro de su contenedor.
*/
.mlp-post-list {
    list-style: none;
    margin: 0;
    padding: 0 0 15px 0;
    flex-grow: 1; /* ¡Esta es la propiedad mágica! */
}

/*
 * MODIFICADO: Se añade un margen inferior (margin-bottom)
 * para crear una separación o "salto" entre cada post de la lista.
*/
.mlp-widget-container ul > li.mlp-post-item {
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 8px !important; /* <--- ESTA ES LA LÍNEA QUE CONTROLA LA SEPARACIÓN */
    padding: 0 !important;
}

.mlp-post-item a {
    text-decoration: none;
    color: #e53e3e;
    font-weight: 500;
    display: block;
    padding: 0;
    line-height: 1.2;
}

.mlp-post-item a:hover {
    text-decoration: underline;
}