/**
 * Estilos públicos para el plugin Ilustres
 */

/* Contenedor principal del shortcode */

/*
.ilustres-shortcode-wrapper {
    width: 90%;
    max-width: 90%;
    overflow-x: visible;
		background-color:#FFCC99;
}*/
/* Ajustes de ancho para el listado de ilustres en /ilustres/ */
.ilustres-shortcode-wrapper,
.ilustres-container {
    max-width: 100%;  /* <<< Ajusta este valor al ancho que quieras (ej: 90%, 1400px, etc.) */
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Si el problema es el contenedor interno del tema, forzamos el margen */
.wrap .ilustres-archive {
    padding: 0 50px;
}


/* Wrapper de filtros */
.ilustres-filters-wrapper {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.ilustres-filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.ilustres-filter-group {
    flex: 1;
    min-width: 150px;
}

.ilustres-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.ilustres-filter-group select,
.ilustres-filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ilustres-filter-group select:focus,
.ilustres-filter-group input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.ilustres-filter-order {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ilustres-filter-order select {
    width: auto;
    min-width: 100px;
}

.ilustres-filter-buttons {
    display: flex;
    gap: 10px;
}

.ilustres-filter-buttons button,
.ilustres-filter-buttons .button {
    padding: 8px 16px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.ilustres-filter-buttons button:hover,
.ilustres-filter-buttons .button:hover {
    background: #135e96;
}

.ilustres-filter-reset {
    background: #6c757d !important;
}

.ilustres-filter-reset:hover {
    background: #5a6268 !important;
}

/* Botones de vista */
.ilustres-view-toggle {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.ilustres-view-toggle button {
    background: #f1f1f1;
    border: 1px solid #ddd;
    padding: 8px 16px;
    cursor: pointer;
    color: #333;
}

.ilustres-view-toggle button.active {
    background: #2271b1;
    color: white;
}

/* Grid */
.ilustres-container.view-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Lista */
.ilustres-container.view-list .ilustre-item {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

/* Imagen */
.ilustre-image img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Grid: centrar */
.ilustres-container.view-grid .ilustre-item {
    text-align: center;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ilustres-container.view-grid .ilustre-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ilustres-container.view-grid .ilustre-image {
    display: flex;
    justify-content: center;
}

.ilustres-container.view-grid .ilustre-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
}

/* Lista: imagen centrada, texto izquierda */
.ilustres-container.view-list .ilustre-image {
    display: flex;
    align-items: center;
}

.ilustres-container.view-list .ilustre-info {
    text-align: left;
    flex: 1;
}

.ilustres-container.view-list .ilustre-info h3 {
    margin-top: 0;
}

/* Información del ilustre */
.ilustre-info h3 {
    margin: 10px 0 5px;
}

.ilustre-info h3 a {
    text-decoration: none;
    color: #2271b1;
}

.ilustre-info h3 a:hover {
    text-decoration: underline;
}

.ilustre-lugar {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
}

.ilustre-categorias {
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.ilustre-categorias a {
    text-decoration: none;
    color: #888;
    background: #f1f1f1;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin: 2px;
}

.ilustre-categorias a:hover {
    background: #2271b1;
    color: white;
}

/* PAGINACIÓN - ANCHO 100% Y CENTRADA */
.ilustres-pagination-wrapper {
    width: 100%;
    text-align: center;
    margin: 40px 0 20px 0;
    clear: both;
}

.ilustres-pagination {
    display: inline-block;
    text-align: center;
    margin: 0 auto;
}

.ilustres-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    background: #f1f1f1;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
}

.ilustres-pagination .page-numbers.current {
    background: #2271b1;
    color: white;
}

.ilustres-pagination .page-numbers:hover {
    background: #2271b1;
    color: white;
}

/* Mensaje sin resultados */
.ilustres-no-results {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .ilustres-filters-form {
        flex-direction: column;
    }
    
    .ilustres-filter-group {
        width: 100%;
    }
    
    .ilustres-filter-order {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ilustres-filter-order select {
        width: 100%;
    }
    
    .ilustres-container.view-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ilustres-container.view-list .ilustre-item {
        flex-direction: column;
        text-align: center;
    }
    
    .ilustres-container.view-list .ilustre-image {
        justify-content: center;
    }
    
    .ilustres-container.view-list .ilustre-info {
        text-align: center;
    }
    
    .ilustres-pagination .page-numbers {
        padding: 6px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ilustres-container.view-grid {
        grid-template-columns: 1fr;
    }
    
    .ilustres-pagination .page-numbers {
        padding: 5px 8px;
        font-size: 11px;
    }
}
