/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */
/* ==================================================
   Estilos del Directorio de Miembros (BuddyPress/Grid)
   ================================================== */

/* Contenedor principal y cabecera de búsqueda */
#buddypress {
    max-width: 1200px;
    margin: 0 auto;
    font-family: inherit;
}

#buddypress .dir-search #search-members-form{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

#buddypress div.dir-search input[type="text"] {
    padding: 4px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    outline: none;
    width: 250px;
}

#buddypress div.dir-search input[type="submit"] {
    padding: 10px 20px;
    background-color: #00205b; /* Azul corporativo, ajusta el hex si es necesario */
    color: #ffffff;
    border: 1px solid #00205b;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

#buddypress div.dir-search input[type="submit"]:hover {
    background-color: #00153b;
}

/* Ocultar elementos de lista predeterminados y configurar Grid */
#buddypress ul.item-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    clear: both;
}

/* Tarjetas de los miembros */
#buddypress ul.item-list li {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
	width: 100% !important;
}

/* Contenedor del Avatar */
#buddypress ul.item-list li .item-avatar {
    margin-bottom: 15px;
}

#buddypress ul.item-list li .item-avatar img {
    width: 90px !important;
    height: 90px !important;
    border-radius: 50% !important;
    object-fit: cover;
    border: 3px solid #f5f5f5;
}

/* Título (Nombre del miembro) */
#buddypress ul.item-list li .item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

#buddypress ul.item-list li .item-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

#buddypress ul.item-list li .item-title a:hover {
    color: #00205b;
}

/* Meta información (Última vez activo) */
#buddypress ul.item-list li .item-meta {
    font-size: 12px;
    color: #888888;
    text-transform: capitalize;
}

/* Paginación */
#buddypress div.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-top: 1px solid #eaeaea;
    font-size: 14px;
    color: #666;
}

#buddypress div.pagination .pag-links a,
#buddypress div.pagination .pag-links span {
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

#buddypress div.pagination .pag-links span.current {
    background-color: #00205b;
    color: #fff;
    border-color: #00205b;
}